- Plesk 11.x for Linux
- Plesk 12.0 for Linux
How to configure Qmail to use specific IP address for outgoing email?
Specify the IP in
/var/qmail/control/outgoingip and restart
It is also possible to configure routing rules via
iptables, for example (replace 203.0.113.2 with the actual IP):
# iptables -t nat -A POSTROUTING -p tcp --dport 25 -j SNAT --to-source 203.0.113.2
Note: In case Plesk Firewall is used, the rule will be overwritten with any other rule added via Plesk Firewall.