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.

Enable DKIM behind NAT with smarthost

Discussion in 'E-mail Discussions' started by BeSafe, Mar 12, 2014.

  1. BeSafe

    BeSafe Registered

    Joined:
    Mar 12, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hello guys,
    I want to enable DKIM but I have a question..

    1) My Cpanel machine is behind NAT
    2) Every zone/user has a mx record that point to a smarthost (antispam relay)

    If I try to use the "Email Authentication" It seems that all the keys and all the DNS stuff were generated starting with the DNS records pointing to the public ip of the cpanel and not to the MX. Is this correct ?

    Many thanks in advance.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    The SPF record should contain the IP that email is being sent from. This may or many not be the same as the MX record (MX records only apply to incoming email, not outgoing). If you're not sure, send an email from one of these accounts and check the headers to see what IP it was sent from. Whoever your SMTP provider is should be able to provide you with the correct SPF records.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You mentioned setting up a smart host through the DNS Zone. Have you also setup a smart host using the option provided under the "Mail" tab in the "Exim Configuration Manager"? The following post might be helpful if attempting to enable DKIM with your smart host configuration:

    DKIM with Smart Host

    Thank you.
     
  4. BeSafe

    BeSafe Registered

    Joined:
    Mar 12, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    NO,I've modified the file exim.conf.local

    cat exim.conf.local
    @ROUTERSTART@
    smart_route:
    driver = manualroute
    domains = !+local_domains
    transport = remote_smtp
    route_list = * xxx.xxx.xxx.xxx

    Where xxx is the Ip of the smarthost.

    Nice ! But if I change the transport from "remote_smtp" to "dkim_remote_smtp" I will encounter problems with domains that haven't the DKIM setup ?

    Many thanks in advance !
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you elaborate on what type of problems? Do you mean that not all of your domain names use DKIM?

    Thank you.
     
Loading...

Share This Page