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
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/
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.
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
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.