How do I keep a copy of all incoming and outgoing mail messages?
I cant believe that this has not been answered, but it seems a bit of an old chestnut!
So i went digging and found the below,
which refers to the use of a file extra.h which is NOT in the SME qmail.
I dont know where qmail is compiled or how the below can be made to happen or if there is a better way, but include it hoping that someone will know and can hel me progress!
(I also note that amavis/clam scans all in/outbound mail, so the queue can be 'interferred with').
My skills arent up to solving this, but are for testing.
season's greetings, and GOOD-ON-THE-NEW-GROUP
Robert
Answer: Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in extra.h. Recompile qmail. Put ./msg-log into ~alias/.qmail-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.
[%sig%]