qmail FAQ †
http://cr.yp.to/qmail/faq
⤷ tar ֤Ρ FAQ (text )ե롣
8.2 How do I keep a copy of all incoming and outgoing mail messages?
ʥФΥԡˤϤɤ餤
Answer: Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in extra.h.
qmail Υ extra.h Խ
#define QUEUE_EXTRA "Tlog\0"
#define QUEUE_EXTRALEN 5
Recompile qmail. Put ./msg-log into ~alias/.qmail-log.
qmail ƥѥ뤷~alias/.qmail-log ե ./msg-log Ҥ
You can also use QUEUE_EXTRA to, e.g., record the Message-ID of every message: run
| awk '/^$/ { exit } /^[mM][eE][sS][sS][aA][gG][eE]-/ { print }'
from ~alias/.qmail-log.
QUEUE_EXTRA ȤȤƤϡ Message-ID Ф㡣 ~alias/.qmail-log ˵Ҥ