For the archives.

I got it working with a revision of the script listed here:
http://www.courier-mta.org/?maildropex.html


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] $MATCH"

On 9/16/05, Sam Varshavchik <[EMAIL PROTECTED]> wrote:
> Bryan Irvine writes:
> 
> > 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.
> 
> Mail scripting with virtual mail accounts is tricky.  reformail really does
> not know anything about the virtual mail accounts, it assumes that it's
> invoked from a garden-variety system account.
> 
> What you need to do is grab the environment variables (see the dot-courier
> man pages), which give you the mail account's parameters -- then take the
> output of reformail and fix it accordingly.
> 
> 
> 
>


-------------------------------------------------------
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