Hi there,
So, I had a problem witth my server’s IP being added frequently to Spamhaus.
I could even see somethings very strange, at below:
Aug 6 00:00:04 box postfix/submission/smtpd[1814046]: connect from unknown[46.148.40.152]
Aug 6 00:00:07 box postfix/submission/smtpd[1812495]: warning: unknown[46.148.40.77]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Aug 6 00:00:10 box postfix/submission/smtpd[1812495]: lost connection after AUTH from unknown[46.148.40.77]
Aug 6 00:00:10 box postfix/submission/smtpd[1812495]: disconnect from unknown[46.148.40.77] ehlo=1 auth=0/1 rset=1 commands=2/3
Aug 6 00:00:18 box postfix/submission/smtpd[1814046]: warning: unknown[46.148.40.152]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Aug 6 00:00:20 box postfix/submission/smtpd[1814046]: lost connection after AUTH from unknown[46.148.40.152]
Aug 6 00:00:20 box postfix/submission/smtpd[1814046]: disconnect from unknown[46.148.40.152] ehlo=1 auth=0/1 rset=1 commands=2/3
Aug 6 00:00:28 box postfix/submission/smtpd[1820366]: connect from unknown[46.148.40.63]
Aug 6 00:00:32 box postfix/submission/smtpd[1820365]: connect from unknown[46.148.40.87]
Aug 6 00:00:34 box postfix/submission/smtpd[1816689]: connect from unknown[46.148.40.70]
Aug 6 00:00:42 box postfix/submission/smtpd[1820366]: warning: unknown[46.148.40.63]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Well, I have even checked the above IPs, and they were coming from “very strange” places.
Today I ran two commands at UFW, after read a Spamhaus guide in order to secure port 25:
Secure your firewall to not allow any packets outbound on port 25, except those coming from any email server(s) on your local network. Remote sending of email to servers or printers on the Internet will still work if web-based, or correctly configured to use port 587 using SMTP-AUTH.
I have so blocked the port 25 (outbound) and allowed only from localhost:
sudo ufw deny out to any port 25
sudo ufw allow out from 127.0.0.1 to any port 25
Well, now I made some tests and noticed I am able to receive e-mails, but I can’t send.
Anyone has some idea about what I could do to solve this?
Also, MIAB is displaying a warning at admin dashboard, is this warning OK (Outbound mail (SMTP port 25) seems to be blocked by your network. You will not be able to send any mail. Many residential networks block port 25 to prevent hijacked machines from being able to send spam. A quick connection test to Google’s mail server on port 25 failed.)?