[Postfix/smtp] 25 connection refused / connection timed out
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[Postfix/smtp] 25 connection refused / connection timed out
Hello, I had setup a vps with the CentOS Apache installed.
I am facing a problem with postfix, I can send & receive emails without problem but I got the bounced back emails in mail log.
Quote:
CB2EB3CCB 23311 Fri Dec 19 17:31:32 xxxx@xxxx.com
(connect to 163mx02.mxmail.netease.com[220.181.14.146]:25: Connection timed out) xxxx@xxxx.com
922B82832 4699 Fri Dec 19 03:22:48 MAILER-DAEMON
(connect to xxxx.com[83.121.8.78]:25: Connection refused) xxxx@xxx.com
ABDD23CB5 16744 Fri Dec 19 14:11:38 xxxx@gmail.com
(connect to mx.mail.ym.163.com[123.58.178.51]:25: Connection timed out) xxxx@xxxx.com
For your information, I have the port 25,110,587,993,995 opened on firewall and I also could telnet the host like google, yahoo on port 25. PTR & rDNS also been set and I had checked my IP at mxtoolbar.com, it is not being blacklisted.
The error messages refer to outbound connections. For some reason, the mail servers in the log have all rejected at least one connection attempt from your server.
There could be several reasons for this. The IP address of your VPS may previously have been used by a spammer, or may be listed as belonging to an IP range that gets blacklisted by default. You should check here to see if your address is listed.
If could also be that your server is actually generating or relaying spam, and is then dynamically blacklisted and perhaps even reported by the receiving servers. The first IP address in the log definitely belongs to a spam-filtering gateway.
Do you know why your server is attempting to send mail to or through these other servers?
The error messages refer to outbound connections. For some reason, the mail servers in the log have all rejected at least one connection attempt from your server.
There could be several reasons for this. The IP address of your VPS may previously have been used by a spammer, or may be listed as belonging to an IP range that gets blacklisted by default. You should check here to see if your address is listed.
If could also be that your server is actually generating or relaying spam, and is then dynamically blacklisted and perhaps even reported by the receiving servers. The first IP address in the log definitely belongs to a spam-filtering gateway.
Hi, thank you for your advise.
I had checked my IP & domain name on spamhaus.org, both are not listed in the SBL, PBL, XBL, DBL thou.
Also did the smtp test at mxtoolbox.com, no open relay.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.