postfix cannot send email

Posted by AKLP on Server Fault See other posts from Server Fault or by AKLP
Published on 2012-10-16T22:24:27Z Indexed on 2012/10/16 23:02 UTC
Read the original article Hit count: 227

Filed under:
|
|

I'd like to mention that im really new to this so please bear with me. I'm trying to setup a forum software to send emails via postfix but I think my server has the port 25 blocked. I tried running these:

works:

ping alt2.gmail-smtp-in.l.google.com

don't work:

telnet alt2.gmail-smtp-in.l.google.com 25
telnet 66.249.93.114 25

tried flushing iptables and then using these rules but didn't work either:

sudo iptables --flush

sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -F
sudo iptables -X

doing a telnet on 25 port to localhost url works but nothing when telnet'ing in none local urls.

mail.log:

Oct 17 01:20:24 webhost postfix/smtp[3642]: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:400e:c03::1a]:25: Connection timed out

Oct 17 01:20:24 webhost postfix/smtp[3643]: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:400e:c03::1a]:25: Connection timed out

Oct 17 01:20:24 webhost postfix/smtp[3642]: 4744380032: to=<[email protected]>, relay=none, delay=2892, delays=2741/0.03/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2607:f$

© Server Fault or respective owner

Related posts about email

Related posts about postfix