procmail
[Top] [All Lists]

procmail / formail - changing the From address?

2010-11-11 00:06:24
Hi All

Self-confessed procmail newbie.

I am using a simple procmail recipe to send an auto-reply when one of my
customers employees is away from the office.

Here it is:

:0 h c
* !^FROM_DAEMON
* !^X-Loop: your(_at_)own(_dot_)mail(_dot_)address
* ? /usr/bin/test -f $HOME/vacation_msg
| (formail -r -I"Precedence: junk" -A"X-Loop: 
your(_at_)own(_dot_)mail(_dot_)address" ;
cat $HOME/vacation_msg) | $SENDMAIL -t


I'm getting bounces from servers that look like this:

*****************************************************
The original message was received at Thu, 11 Nov 2010 11:47:10 +1100
from localhost.localdomain [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<recipient(_at_)destination(_dot_)tld>
    (reason: 550 5.1.0 <billc(_at_)server(_dot_)mydomain(_dot_)tld> sender 
rejected -
sender domain has no MX/A record)

   ----- Transcript of session follows -----
... while talking to mx1.bne.server-mail.com.:

MAIL From:<<billc(_at_)server(_dot_)mydomain(_dot_)tld>> SIZE=1701
<<< 550 5.1.0 <<billc(_at_)server(_dot_)mydomain(_dot_)tld>> sender rejected - 
sender
domain has no MX/A record
554 5.0.0 Service unavailable
******************************************************

I assume it's because we're not getting masquerading done for some
reason - my invocation of sendmail perhaps?

"Normal" email (Thunderbird / Sendmail) works perfectly.

Please note that I have (obviously) modified the actual domains for
anonymity.

Any pointers on where I can search for enlightenment please? I need to
ensure that any emails going out of here go from mydomain.tld and NOT
from server.mydomain.tld.

Thanks and Regards

Nigel.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail