amavisd.conf not written with dkim_key

Discussion in 'Installation/Configuration' started by pvanthony, Oct 26, 2016.

  1. pvanthony

    pvanthony Active Member HowtoForge Supporter

    Centos 7.2
    ispconfig 3.1.1
    upgraded from ispconfig 3.0.5 to 3.1 then 3.1.1
    Ran cron /usr/local/ispconfig/server/server.sh and no errors displayed.
    Here are the steps done.
    1. email domain created.
    2. DKIM enabled
    3. Create DKIM private key
    4. saved
    5. key file was successfully created at /var/lib/amavis/dkim/
    6. amavisd testkey is successful
    7. there is no dkim_key line in amavisd.conf
    So the emails are not signed with dkim.
    When the dkim line is manually placed in amavisd.conf, the emails are signed and all is ok.
    What did I miss out that prevents the amavisd.conf from being updated by ispconfig?
    P.V.Anthony
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    The files for the dkim-keys are
    '/etc/amavisd.conf/50-user',
    '/etc/amavis/conf.d/50-user',
    '/etc/amavisd.conf',
    '/etc/amavisd/amavisd.conf'


    if one of the files is found (in this order), the key is stored in this file. if the file is 50-user, 60-dkim will be used.

    maybe you have an older config from centos on your server
     
    pvanthony likes this.
  3. pvanthony

    pvanthony Active Member HowtoForge Supporter

    You are completely correct.
    There was a config file at /etc/amavisd.conf and that file was being updated. The wrong config file has been renamed and now the correct config file /etc/amavisd/amavisd.conf is being update with dkim_key line.
    Thank you very much for helping me out. It has saved me much headache and time.
    Thank you once again for sharing the knowledge.
     

Share This Page