Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I set up autoreply for specific account on sendmail?

Status
Not open for further replies.

martintu

MIS
Dec 4, 2002
1
US
I have sendmail server running on the RedHat Linux. Does it have a way to set up out of office autoreply for specific user?

Thanks in advance for the help!!
 
You can do what you are asking with procmail. Follow this link for explination on how to set it up...
Here's a copy of my \etc\procmailrc file:
LOGFILE=/var/log/pm.log
LOG="
"
VERBOSE=yes

# Remove ## when debugging; set to no if you want minimal logging
LOGABSTRACT=all

MAILDIR=$HOME/mail

#Recipe 1
:0 Whc: user.lock
# Check to see if the mail was addressed to user
* $^To:.*jennifer.user
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
* !^X-Loop: jennifer.user@mydomain.net
| formail -rD 8192 user.cache
:0c eh # if the name was not in the cache
| (formail -rI&quot;Precedence: junk&quot; -I&quot;From: Auto Replier <autoreplier@mydomain.net>&quot; ; -A&quot;X-Loop: jennifer.user@mydomain.net &quot; ; echo &quot;I received your mail,&quot; ; echo &quot;however I will be out of the office &quot; ; echo &quot;through March 6th. If you have an issue &quot; ; echo &quot;that must be dealt with immediately, please &quot; ; echo &quot;send your email to: info@mydomain.net &quot; ; echo &quot;Thanks very much. &quot; ; echo &quot; Jennifer User &quot; ; echo &quot;-- jennifer.user@mydomain.net&quot; ) | $SENDMAIL -oi -t

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top