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.

Default values of DKIM and SPF records

Discussion in 'E-mail Discussions' 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:
    187
    Likes Received:
    1
    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 Forums Analyst
    Staff Member

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

Share This Page