I'm trying to get vacation messages working. It semi-works, it does
indeed send an auto-reply back to the send with the contents of my
vacation.msg file.  The only problem I'm having is that it sends the
message as the "vmail" user, and from the actual machine name.

so a message to [EMAIL PROTECTED], bounces back as
[EMAIL PROTECTED]

I'm sure I'm jsut missing some flags, perhaps in reformail?  The man
page speaks of a -f0 and -f1, which *look* like they might to the
trick.


my .mailfilter file:

cc $DEFAULT
xfilter "reformail -r -t"
/^To:.*/
getaddr($MATCH) =~ /^.*/;

MATCH=tolower($MATCH)
flock "vacation.lock" {
        `fgrep -iqx "$MATCH" vacation.lst 2>/dev/null || { \
                  echo "$MATCH" >>vacation.lst ; \
                  exit 1 ; \
              } `
}
if ( $RETURNCODE == 0 )
   exit
to "| ( cat - ; echo ''; cat vacation.msg) | $SENDMAIL -t $MATCH"


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to