Home Miscellaneous Re-Route SMTP Via IP Tables

Re-Route SMTP Via IP Tables

by SupportPRO Admin

Consider a situation where the email server ip gets blacklisted in a server with any email server like exim or qmail, we can reroute the smtp via another IP using IP Tables.

For routing the SMTP via xxx.xxx.xx.xx, issue the following command:

iptables -t nat -A POSTROUTING -o eth0 -p tcp dport 25 -j SNAT to xxx.xxx.xx.xx

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Comment