Title: 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. [EMAIL PROTECTED] make an vacation message
2. [EMAIL PROTECTED] sends an e-mail to [EMAIL PROTECTED]
3. The vacation messages that comes back to [EMAIL PROTECTED] got it from [EMAIL PROTECTED]

How can I fix it so that [EMAIL PROTECTED] will get it from [EMAIL PROTECTED] ??

Kind Regards

Jesper Langkjær

Reply via email to