Plesk for Linux
kb: technical
ABT: Group A
Applicable to:
- Plesk for Linux
How to configure Qmail to use a specific IP address for outgoing email in Plesk?
Resolution
Note: Plesk GUI provides the option to configure the outgoing IP address for the email when Postfix is installed instead of Qmail. Check Plesk documentation for more details.
-
Connect to the server via SSH
-
Create the file
/var/qmail/control/outgoingip
and add the IP address:# cat /var/qmail/control/outgoingip
203.0.113.2 -
Restart QMail service:
# service qmail restart
Comments
4 comments
/var/qmail/control/outgoingip not work.
Hi @Luis Zubeldia, did the alternative way help?
For those that run across this, here is a solution to setting the outgoing IP Address for Qmail on a Plesk server that does not support the /var/qmail/control/outgoingip file.
Use iptables instead !
https://www.nixtree.com/blog/change-outgoing-ip-address-for-smtp-using-iptables/
You will probably need to change the script /etc/rc.d/init.d/psa-firewall to add this in the "start" section because when Plesk restarts the firewall it will bump the rule out you added manually.
Hello, Mike K!
I have added this information to the article.
Thank you very much for your effort and the feedback!
Please sign in to leave a comment.