On a server, if outgoing email is being blocked by spam filters, I can sometimes get around the problem by using an IPTables rule to force the email out through a different IP address like this:
|
1 |
/sbin/iptables -t nat -A POSTROUTING -p tcp --dport 25 -j SNAT --to-source w.x.y.x |





2 Responses
This rule is EXACTLY what I needed. I scoured google looking for a way to change the outbound IP for qmail, then I thought of using iptables to do it. Thanks man! Saved me having to figure it out. 🙂
Thanks man, I used this last day and it worked like a charm 🙂 Thanks much.