Is there a reason why DKIM signs every mail twice [closed]

Solution 1:

to disable milter processing after amavis, add to your master.cf in the after-amavis section

127.0.0.1:10025 inet    n       -       -       -       -       smtpd
[....]
-o smtpd_milters=

if you want to run the milter after amavis, set the smtpd_milters= configuration option in main.cf to an empty string and add the inet:localhost:8891 configuration to master.cf instead:

-o smtpd_milters=inet:localhost:8891