Multiserver SPF1 which ip

Discussion in 'Installation/Configuration' started by senormedia, May 6, 2022.

  1. senormedia

    senormedia Member HowtoForge Supporter

    I have two servers and both are connect

    Do i need to put both ips in the spf, since the site is hosted on one server and email on another or just the ip where the mail is coming from
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think it should just use the IP from the email server that is authorized to send email on behalf of the domains.
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    It depends how you intend to send mail from the web server, it would be better to have all websites send authenticated through your mail server (which will/can perform dkim signing as well) and you only add the email server as @ahrasis said. If you allow websites to send mail directly to destinations (you know, exactly like a compromised website typically does sending spam) you will need to add the web server's addr to the spf records as well, or those could get blocked, and also the web server will not dkim sign any of that mail.
     

Share This Page