dkim keys removed from /etc/amavisd.conf

Discussion in 'Installation/Configuration' started by Steffan, Jun 29, 2017.

  1. Steffan

    Steffan Member

    After every update if ispconfig all dkim key lines are removed from /etc/amavisd.conf

    The last line of the file is
    @dkim_signature_options_bysender_maps = (
    { '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
    1; # insure a defined return

    All lines after that are gone
    Why is this happening... and how to prevent this :)

    Centos 7.3 mailserver only
     
  2. Taleman

    Taleman Member

    I found old snippet about how to store custom settings so that upgrading ispconfig does not remove them:
    That is from this thread: https://www.howtoforge.com/community/threads/custom-dovecot-settings.65438/
     
  3. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    You should not add the dkim-keys to a conf-custom (or update this file every time you change / create dkim-keys). I'm pretty sure, that there is a "non-used" amavis-config somewhere on the cent-os server. IIRC they made sme changes on centos a while ago and changed the location / configs for amavis.
     
  4. Steffan

    Steffan Member

    I just followed the standard instruction.
    But today after update to 3.1.6 again the keys ware wiped from teh config :-(

    [[email protected] etc]# locate amavisd
    /etc/amavisd
    /etc/amavisd.conf
    /etc/amavisd.conf.back
    /etc/amavisd/amavisd.conf -> /etc/amavisd.conf
    /etc/clamd.d/amavisd.conf
    /etc/systemd/system/multi-user.target.wants/amavisd.service
    /etc/systemd/system/timers.target.wants/amavisd-clean-quarantine.timer
    /etc/systemd/system/timers.target.wants/amavisd-clean-tmp.timer
    /usr/bin/amavisd-agent
    /usr/bin/amavisd-nanny
    /usr/bin/amavisd-release
    /usr/bin/amavisd-signer
    /usr/bin/amavisd-submit
    /usr/lib/systemd/system/amavisd-clean-quarantine.service
    /usr/lib/systemd/system/amavisd-clean-quarantine.timer
    /usr/lib/systemd/system/amavisd-clean-tmp.service
    /usr/lib/systemd/system/amavisd-clean-tmp.timer
    /usr/lib/systemd/system/amavisd.service
    /usr/lib/tmpfiles.d/amavisd-new.conf
    /usr/sbin/amavisd
     
  5. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Did you reconfigure the mail-services during the update?
     
  6. Steffan

    Steffan Member

    Yes
    That was the default
     
  7. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    I think, we need a workaround for systems running one config for amavis. You can use the resync-tool to add the keys the config again or restore the amavis-config from your backup.
     
  8. Steffan

    Steffan Member

    Yes That is what i do
     

Share This Page