You could try
to "| ( cat - ; echo ''; cat vacation.msg) | $SENDMAIL -f $RECIPIENT"
Sorry for the top posting!
Larry.
----- Original Message -----
From: "Jesper Langkjær" <jl...@MINISOFT.DK>
To: <cour...@lists.sourceforge.net>
Sent: Friday, February 24, 2006 3:11 PM
Subject: [courier-users] Vacation and virtual mailboxes
Hi.
I've been using the maildrop script at
http://www.courier-mta.org/maildrop/?maildropfilter.html~patmatch for vacation
messages.
åØå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"
But now the server got another mail domain (companyB) and whenever sombody from
CompanyB create an vacation messages and it got send it seems like it coming
from CompanyA.
Eg.
1. user1@companyB make an vacation message
2. sombody@somwhere sends an e-mail to user1@companyB
3. The vacation messages that comes back to sombody@somewhere got it from
user1@companyA
How can I fix it so that sombody@somewhere will get it from user1@companyB ??
Kind Regards