Outgoing connections on port 25 => refused, postfix?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Outgoing connections on port 25 => refused, postfix?
Hello all.
I recently tried to upgrade my mailserver with some greylisting functionality, however, since yesterday I cannot send mails to any external mailserver on port 25.
Once I shutdown my firewall => everything works.
My /var/log/mail.log says the following:
Code:
Jan 24 12:07:03 deepthought postfix/smtp[23827]: connect to mx0.gmx.de[213.165.64.100]: Connection timed out (port 25)
Jan 24 12:07:03 deepthought postfix/smtp[23827]: 2D03F3A4107: to=<xxxxxxx@gmx.de>, relay=none, delay=60, status=deferred (connect to mx0.gmx.de[213.165.64.100]: Connection timed out)
without firewall active, the mail gets through though...
I know that my ISP doesn't block port 25.
My Iptables rule for Port 25 config looks like this:
well your second line says that no new connections to port 25 are allowed to be established outbound. that rule appears to really do *nothing* other than create the problem you are having... why did you add it?
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Those two rules only deal with inbound connections. Mail sent outbound by Postfix is going to source from an ephemeral port and have a destination of 25/tcp. What are the rest of your firewall rules?
thanks for the tip! I rechecked my rules and now it's working the way it should be.
strange thing is that I didn't change the rules in the first place...
however, this doesn't directly make me a moron, does it?
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Quote:
Originally Posted by kingfisher
thanks for the tip! I rechecked my rules and now it's working the way it should be.
strange thing is that I didn't change the rules in the first place...
Great.
Quote:
however, this doesn't directly make me a moron, does it?
I don't want to put words in his mouth, but I'm pretty sure that comment was self-referrential.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.