SPF and multiple IPs

Discussion in 'Installation/Configuration' started by Spaetzle, Jan 2, 2008.

  1. Spaetzle

    Spaetzle Member HowtoForge Supporter


    I have a little problem with SPF and multiple IPs on my Server.
    First my Config.

    • Debian Etch installed with the perfect Setup.
    • FQDN of Server: host1.mydomain.tld, IP:
    • Some more domains on the Server
    • more IPs: - 19

    As long as I only used one IP ( there were no problems sending mails to hosts checking SPF (For example gmx.de).
    After I added more IPs (10-19). All mails send were marked as spam. Looking into the Header I found that postfix started using the highest IP available on the server. When SPF is checked the receiving server sees the wrong IP.
    Does anybody know how to create an SPF working with this. I think it is not a good choice adding the highest IP to the record as there might come more IPs in the future. So all SPFs on the server needed to be changed anytime a new IP is added.

    At the Moment i just added a line
    smtp_bind_address = <main IP>
    to /etc/postfix/main.cf

    This seems to work for now. I hope that no other problems will arise from this.

    Does anybody know a better way?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The smtp_bind_address variable in main.cf is the correct solution for the problem.
  3. Spaetzle

    Spaetzle Member HowtoForge Supporter

    OK. This solution works for me. But what if you want to create a customer Domain with its own IP that should use its own IP for sending emails.
    Is there a solution to? Any Idea welcome ;-)
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you will have to use multiple servers or at least multiple instances of postfix, ech with its own configuration.

Share This Page