0

The Postfix configuration has been changed to add a DKIM header when sending a mail.

But Postfix is currently in the stop status, and mailq shows that new mails have been queuing in the meantime.

Will postfix start make Postfix add the DKIM header to these queued messages, or are these already processed and will be sent without the new DKIM header?

Déjà vu
  • 5,546
  • 9
  • 36
  • 55

1 Answers1

1

opendkim interacts with postfix through Milter interface and Milter interactions happen before a message is queued. See MILTER_README.

AlexD
  • 8,747
  • 2
  • 29
  • 38
  • Is there any way to have postfix "replay" the queue to add the DKIM header? – Déjà vu Dec 23 '21 at 18:54
  • 1
    Possible but complicated. You can send all messages to another temporary postfix instance and then back to the original postfix instance. But you'll need to check for mail loop protection. Probably it deserves a separate question. – AlexD Dec 23 '21 at 19:01
  • Ok thanks, my only fear is that the few mails queued (~10) will not pass other MTAs and trigger a spam listing, even if DMARC is set to "none" action(?). – Déjà vu Dec 23 '21 at 19:11
  • 1
    I wouldn't expect a message to be classified as spam just because it doesn't have a DKIM signature. For example, Spamassassin score for DMARC_NONE is 0.1 – AlexD Dec 23 '21 at 19:18