Zbigniew Szalbot wrote:
Hello,
I am debugging a faulty operation of dkim-filter and have been asked
whether I can "capture/quarantine the message(s) which are in progress
at the time of the crash".
Is this possible with postifx? I looked at the main.cf parameters but
have not seen anything relating to capturing messages.
Many thanks!
Zbigniew Szlabot
access maps, header_checks, and body_checks have a HOLD action
which will keep mail in the "hold" queue rather than
delivering it.
The always_bcc, recipient_bcc_maps, and sender_bcc_maps
parameters send a copy of a message to a specified recipient.
Development snapshots also have a BCC action for access maps.
For an extreme case, you can use dont_remove, which moves each
queue file to the "saved" queue rather than deleting it when
postfix is done processing it.
Maybe one of those will do what you need.
http://www.postfix.org/postconf.5.html
http://www.postfix.org/documentation.html
Although if the mail is deferred I'm not sure any of these
will help. You might need to use tcpdump to record the
network traffic as it arrives.
--
Noel Jones