procmail
[Top] [All Lists]

Re: Auto-replies work, except...

2001-02-08 03:37:02

On  7 Feb, METAgency wrote:
Some auto responses generate an error message saying:
  "<email(_at_)machine(_dot_)myserver(_dot_)com>...Sender domain must exist". 
I suspect 
that this is the sendmail "-t" switch not putting the correct email 
"From:" address from the auto response.  I have tried using a pipe to
"sendmail -f email(_at_)host(_dot_)com" but it doesn't work. Anyone have an 
idea 
or something that will work?

here's the recipe i'm using:

LOGFILE=$HOME/.procmail-log

:0 h c
* !^FROM_DAEMON
* !^X-Loop: email(_at_)myserver(_dot_)com
| (formail -r -I"Precedence: junk" \
-A"X-Loop: email(_at_)myserver(_dot_)com" ; \
echo "Your email was received.")| $SENDMAIL -t

Try and add the field "From:" when you invoke formail:

:0 h c
* !^FROM_DAEMON
* !^X-Loop: email(_at_)myserver(_dot_)com
| (formail -r -I"Precedence: junk" \
        -I"From: user(_at_)yourserver(_dot_)com" \
        -A"X-Loop: email(_at_)myserver(_dot_)com" ; \
        echo "Your email was received.")| $SENDMAIL -t

Moreover, you could consider including a few more conditions before
auto-replying.

--Rui

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>