Score:0

Does Postfix add the DKIM header before or after a message is queued?

eg flag

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?

Score:1
jp flag

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

eg flag
Is there any way to have postfix "replay" the queue to add the DKIM header?
jp flag
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.
eg flag
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(?).
jp flag
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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.