Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I’m running an email server using qmail.

I want to transparently add a BCC to each email that is sent through the server, for particular accounts. This would have the effect of saving every sent email to a separate mailbox for archival and legal purposes.

What’s the best way to go about doing this?

share|improve this question

I'm not a qmail user, but this is the answer from the qmail FAQ:

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

More at the bottom of - but I must admit this is completely arcane to me!

share|improve this answer
Thanks, we’ll give this a try! – Abraham Vegh Jan 12 '11 at 11:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.