List Info

Thread: /etc/procmailrc / Autoresponder




/etc/procmailrc / Autoresponder
country flaguser name
United States
2007-07-11 11:49:15
Does anyone know how to change the code in /etc/procmailrc
to use the
email address from the "To:" field instead of the
$LOGNAME when using
the autoresponder?

If someone emails one of my virtual domain users that has
the
autoresponder enabled, I want it to reply using the virtual
domain
instead of the default domain.

It sure seems to me that procmail could grab the address
from the
"To:" header and use that value after the -f
instead of the local
LOGNAME.

Here's what I currently have in my /etc/procmailrc:

USER_HOME=/etc/virt_users/$LOGNAME
AR_MSG=$USER_HOME/.__msgfile__
:0 Whc: vacation.lock
* ? test -s $AR_MSG
* !^FROM_DAEMON
* !^X-Loop: $
|/sbin/autoresponder.cache.sh $LOGNAME
:0 ehc
| ( formail -r -I Subject: -A"X-Loop: $"
| head -n -1; 
               cat $AR_MSG )  | $SENDMAIL
-C/etc/mail/sendmail.cf -oi
-t -f "$"


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )