7 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Vacation and virt...
FromSent OnAttachments
Jesper LangkjærFeb 23, 2006 11:11 pm 
Larry MooreFeb 24, 2006 1:02 am 
Jesper LangkjærFeb 26, 2006 11:12 pm 
Jeff JansenFeb 27, 2006 5:25 am 
Jesper LangkjærFeb 27, 2006 11:44 pm 
Jeff JansenFeb 28, 2006 2:26 am 
Bryan IrvineJun 22, 2006 12:51 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Vacation and virtual mailboxesActions...
From:Jeff Jansen (ivb_@sil.org)
Date:Feb 27, 2006 5:25:48 am
List:net.sourceforge.lists.courier-users

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Jesper Langkjær wrote:

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

What do you mean when you say that it appears to come from companyA? Do you mean that the From: header shows the wrong name? Is the recipient *really* user1@companyB or is that an alias and the mail is actually being delivered to a different account?

Assuming that the problem is the From: header and that user1@companyB is the actual recipient, then you need to add the proper From: header to the vacation message before you mail it.

to "| ( cat - ; echo "From: $RECIPIENT"; echo ''; cat vacation.msg) | $SENDMAIL -f $RECIPIENT"

(That should all be on one line, of course, in your maildrop script.)

HTH

iD8DBQFEAv2rZxtYeNk78A8RAnvnAKC8RdRaMuTheVmSejhDAxVohhTaMwCfbqSj duaaiwBEhX+NQdiyUEDyBeU= =cY9/ -----END PGP SIGNATURE-----