Re: Conditionally capture all outgoing mail

2001-06-20 Thread Chris Johnson

On Thu, Jun 21, 2001 at 11:30:07AM +0800, Martin Kong wrote:
> BUT how can I do it conditionally, i.e. forward the email to different
> addresses based on different conditions, or even forget about the
> forwarding if a certain condition is met.

man condredirect

Chris

 PGP signature


Conditionally capture all outgoing mail

2001-06-20 Thread Martin Kong

Hi, I'm going to use the QUEUE_EXTRA feature to capture all outgoing
mails.  I think the .qmail-log file will look something like this:

| if echo $SENDER | grep "@abc.com" > /dev/null 2>&1; then exit 0; else
exit 99; fi
&[EMAIL PROTECTED]

This will forward a copy of the outgoing mail to [EMAIL PROTECTED] if the
sender is from abc.com.  

BUT how can I do it conditionally, i.e. forward the email to different
addresses based on different conditions, or even forget about the
forwarding if a certain condition is met.

Any help is appreciated.  

Thanks and Regards,



Conditionally capture all outgoing mail

2001-06-20 Thread Martin Kong

Hi, I'm going to use the QUEUE_EXTRA feature to capture all outgoing
mails.  I think the .qmail-log file will look something like this:

| if echo $SENDER | grep "@abc.com" > /dev/null 2>&1; then exit 0; else
exit 99; fi
&[EMAIL PROTECTED]

This will forward a copy of the outgoing mail to [EMAIL PROTECTED] if the
sender is from abc.com.  

BUT how can I do it conditionally, i.e. forward the email to different
addresses based on different conditions, or even forget about the
forwarding if a certain condition is met.

Any help is appreciated.  Thanks and Regards,