Question Locked

Autoresponse/Reply

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to set up an auto-response/reply(vacation reply) on my gentoo gateway server so that when users receive email while away from the office the messagae will be generated automatically and sent to senders

can anybody point me to step by step site or possibly tell me how you can do this with the vacation command.

Derick

2 replies

by bob_steel

Put this into your user's .procmailrc file, create a file called 'replyfile' that is the body of the mail you want to reply with, and '.signature' that is the signature file.

Full version of this script and instructions at: http://sial.org/howto/procmail/procmailrc-vacation

CACHEFILE=$HOME/.pm-vacation.cache
REPLYFILE=$HOME/replyfile
SENDMAIL=[your sendmail path]
:0 Whc:
* !^FROM_DAEMON
* !^X-Loop: ${LOGNAME}@${DOMAIN}
| formail -rD 8192 ${CACHEFILE}

:0 ehc
| (formail -rI"Precedence: junk" \
-A"X-Loop: ${LOGNAME}@${DOMAIN}" ; \
cat ${REPLYFILE} ; \
echo ""; \
cat ${HOME}/.signature \
) | $SENDMAIL -oi -t

....added....

This is supposed to be a forum for techs.. who thinks it's a smart idea to replace colon-zero with a stupid smiley! pleeeeeeeze.

This discussion is closed to new replies.