[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have some question about QUEUE_EXTRA feature.
> 
> I compiled qmail with this option and everithing work perfectly (all messages
> was logged) . But i need log/store only all OUTGOING messages not any
> INCOMING.
> 
> It's that possible?

Yes.  But you'll have to do it yourself.  If, for example, you've set
QUEUE_EXTRA to send an extra copy of every message to "msglog", and have
an ~alias/.qmail-msglog file which contains the single line:

        |/path/to/my/script

Then you can write your script to check whether a message is incoming or
outgoing.  As an example, check the envelope recipient against the hosts in
rcpthosts; if it's not in there, it's an outgoing message.  Then record it or
parts of it as you see fit.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to