Skip to main content

SPF checker in WHM

Comments

8 comments

  • cPanelMichael
    Hello, This is answered on the following thread: How to add a Exim SPF Check Exception Thanks!
    0
  • Azim
    So disabling this option will turn off the SPF checker and I need to keep exception only for a single domain however that domain uses many IP's for sending emails in SPF. Please suggest. You can look for the example.tld SPF. Thanks.
    0
  • cPanelMichael
    So disabling this option will turn off the SPF checker and I need to keep exception only for a single domain however that domain uses many IP's for sending emails in SPF. Please suggest. You can look for the example.tld SPF. Thanks.

    You can use the domain name instead of the IP address if you follow the instructions on the following comment at the feature request page: Exclude Backup MX hosts from SPF validation checks Once implemented, you simply add the host you want to whitelist to the "Backup MX hosts" access list under the "Access Lists" tab in "WHM >> Exim Configuration Manager >> Basic Editor". Thank you.
    0
  • Azim
    So as per your suggestion, I have done below things and would be a help if you could suggest whether this is correct or not, 1. I have uncheck spf_bl (Reject SPF failures) 2.I have addded below lines in "custom_begin_mailauth" deny message = SPF: $sender_host_address is not allowed to send mail from $sender_address_domain !condition = ${if match_ip{$sender_host_address}{iplsearch;/etc/trustedmailhosts}{1}{0}} spf = fail 3. I have added the example.com IP in this file /etc/trustedmailhosts Please confirm if I left something. Thanks so much for your help
    0
  • cPanelMichael
    . I have added the example.com IP in this file /etc/trustedmailhosts

    You should add the hostname instead of the IP address.
    .I have addded below lines in "custom_begin_mailauth"

    Could you elaborate on why you made changes from the example in the comments section of that feature request? Thank you.
    0
  • Azim
    Hello, I have added example.com now and all emails are coming now :) I am sorry if i did something wrong but there was written to use that codes in the section, so I just copy and paste that code in the given box and now all emails are coming from example.com Please suggest if you need me to do some changes. Thanks so much for your help.
    0
  • cPanelMichael
    Hello, I'm happy to see the workaround is working well. I don't suggest making any changes if it's working as intended. Thank you.
    0
  • Azim
    Thank you :-)
    0

Please sign in to leave a comment.