Roger Merchberger writes:

> I know that you can log *all* SMTP messages, but I only wish to log this
> one account, and then email those messages back to her personal account,
> which her son does not have the password to...
> 
> Is this possible to do? I'm a decent enough perl programmer, and can kludge
> around in C, but don't know enough about the qmail internals to just start
> hacking 'er up...

Well, you have to know how to identify whether an E-mail message originates
from this account.  This is something that only you know.  Presumably, the
client uses some Windblows box, relaying through your server.

You will have to write the code to examine each incoming connection's IP
address, and for the ones coming from your local IP address space do
whatever is necessary to identify, in real time, the account that's
relaying the mail.  Once you have pegged the account, you can do things
like setting RELAYCLIENT to "@foobar", then set up control/virtualdomains
to forward all mail to foobar to some shell script that forwards the mail
to the original message envelope recipient, BCCing the separate account.

-- 
Sam

Reply via email to