I've configured my postfix/amavisd-new/spam-assassin setup after this tutorial https://help.ubuntu.com/community/Postfix/DKIM. But now the problem is that all mails I send are double signed with two DKMI Headers, one before and one after the mail is sent to amavisd-new. How can I prevent this behavior?

  • Possible problem is using opendkim and rspamd, when rspamd enables the dkim-signing module ... :( happened to me
    – tanascius
    Apr 2, 2020 at 20:44

1 Answer 1


to disable milter processing after amavis, add to your master.cf in the after-amavis section 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
  • Should this solution also work with spamassassin? (asking because it failed on my server)
    – Lexib0y
    Sep 23, 2016 at 14:34
  • Which is best practice? After Amavis? @Lexib0y - spamassassin is run via amavis(-new), normally. So, the answer is yes. Try 'after amavis is run' in this answer. Works for me, anyway.
    – B. Shea
    May 22, 2018 at 17:06

Not the answer you're looking for? Browse other questions tagged .