How to configure Qmail to use specific IP address for outgoing email?




  • Avatar
    Luis Zubeldia

    /var/qmail/control/outgoingip not work.

  • Avatar
    Lev Iurev

    Hi @Luis Zubeldia, did the alternative way help?

  • Avatar
    Mike K

    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 !

    iptables -t nat -A POSTROUTING -p tcp --dport 25 -j SNAT --to-source xx.xx.xx.xx

    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.


  • Avatar
    Alexandr Redikultsev

    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.

Have more questions? Submit a request