Hello, I got postfix/smtp[9837]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

So, not an ansible issue.

As for the problem itself, this is either that email is being seen as spam and the connection is being rejected, or the port is being blocked. You’ll need to do some troubleshooting in your logs. Mail servers are very easy to leave “open” which gets you blocked by a ton of domains.

A quick search shows:
https://www.google.com/?gws_rd=ssl#q=postfix+10024

That’s a lot of things that won’t necessarily be applicable to you, but there’s not a lot to work off-of with that error. Your postfix or smtp logs should have more, though figuring which path to go down is pretty involved.

Submit an Answer