The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SPF checker in WHM

Discussion in 'E-mail Discussions' started by Azim, Aug 3, 2016.

Tags:
  1. Azim

    Azim Active Member

    Joined:
    Oct 16, 2015
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hello,

    I need some help regarding SPF checker. There is one of the domain called example.com which does not have a correct SPF record and my server rejecting all of his emails because of invalid SPF record. They are not going to change their SPF record and I need to receive their emails.

    Somebody suggested me to disable SPF check for that particular domain then you would received that email.

    However I am not sure how to do that. Please help me for this :-(

    I am using WHM/Cpanel and exim configuration.
     
    #1 Azim, Aug 3, 2016
    Last edited by a moderator: Aug 3, 2016
  2. Azim

    Azim Active Member

    Joined:
    Oct 16, 2015
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    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.
     
    #3 Azim, Aug 4, 2016
    Last edited by a moderator: Aug 4, 2016
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. Azim

    Azim Active Member

    Joined:
    Oct 16, 2015
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    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
     
    #5 Azim, Aug 10, 2016
    Last edited by a moderator: Aug 16, 2016
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You should add the hostname instead of the IP address.

    Could you elaborate on why you made changes from the example in the comments section of that feature request?

    Thank you.
     
    #6 cPanelMichael, Aug 15, 2016
    Last edited by a moderator: Aug 16, 2016
  6. Azim

    Azim Active Member

    Joined:
    Oct 16, 2015
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    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.
     
    #7 Azim, Aug 16, 2016
    Last edited by a moderator: Aug 16, 2016
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. Azim

    Azim Active Member

    Joined:
    Oct 16, 2015
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    Thank you :)
     
Loading...

Share This Page