Bryan Irvine writes:

Here's the mailfilter I have now.  It sends the vacation message and
delivers locally but does not forward.

cc $DEFAULT
xfilter "reformail -r -t -I 'From: [EMAIL PROTECTED]"
/^To:.*/
getaddr($MATCH) =~ /^.*/;

MATCH=tolower($MATCH)
flock "vacation.lock" {
        `fgrep -iqx "$MATCH" vacation.txt 2>/dev/null || { \
                echo "$MATCH" >> vacation.txt ; \
                exit 1 ; \
        } `
}
if ( $RETURNCODE == 0 )
        exit
to "| ( cat - ; echo ''; cat vacation.msg) | /usr/sbin/sendmail -F [EMAIL 
PROTECTED]
ltest.domain.tld -r [EMAIL PROTECTED] -f webma
[EMAIL PROTECTED] $MATCH"
cc "[EMAIL PROTECTED]"

Move this last cc up top, right below the first cc.

Attachment: pgpEovUYpi7cg.pgp
Description: PGP signature

Reply via email to