-----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. [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] 
> ??

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* [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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

Jeff Jansen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to