Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Default values of DKIM and SPF records

Discussion in 'E-mail Discussion' started by the_jefffff, Mar 11, 2015.

  1. the_jefffff

    the_jefffff Registered

    Joined:
    Oct 10, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We configured Exim to send mail through Maindrillapp.com for our server. We started using this to fix IP reputation issue that we had after an email sent SPAM without being detected. All emails sent by the server was being flagged as SPAM and all other solutions weren’t effective quickly.

    In addition to changing the Exim config, Mandrill recommends adding SPF and DKIM keys for them. We did it for all the current domains hosted on the server and the delivery works great so far.

    We are trying to find a way to get the SPF and DKIM custom Mandrill key implemented by default when creating an account. This way we won’t have to manually add and check that the values are there for new accounts.

    The entries created in the DNS zone for the app looks like:

    Key: mandrill._domainkey.domain.com
    TTL : xx
    value : v=DKIM1; k=rsa; p=xxxxxx;

    and

    Key : domain.com.
    TTL : xx
    value : v=spf1 +a +mx +ip4:xxx.xxx.xxx.xxx include:spf.mandrillapp.com ~all

    How could this be implemented, is it possible to add these automatically on account creation?

    Thanks
     
  2. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    206
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can run below commands on server:

    Install SPF for specific user:
    /usr/local/cpanel/bin/spf_installer username
    Install DKIM for specific user:
    /usr/local/cpanel/bin/dkim_keys_install username


    It'll automatically add in dns zone.
    You can also check the DKIM and SPF from whm.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice