Setting Auto Reply Mail on Linux
9:44 pm in CentOS, Debian, Fedora, Linux by emran
Enable Auto-Reply
Go to users home folder (here we want to create auto-reply for “user” account)
cd /home/user
create .forward file
vi .forward (add the following line)
|/usr/bin/procmail
create .procmailrc
vi .procmailrc (add the following lines)
SHELL=/bin/sh :0 h c * !^FROM_DAEMON * !^X-Loop: user@example.com | (formail -r -I”Precedence:junk” \ -A”X-Loop: user@example.com ” ; \ cat $HOME/message; \ ) | $SENDMAIL -oi -t :0
create a file message-
vi message
hi, I will be leave on ………… (here you add your message which will be sent to the sender during your vacation)
Disable Auto-Reply
Go to users home folder (here we want to remove auto-reply settings of “user” account)
cd /home/user
mv .forward forward
mv .procmailrc procmailrc





Wow…..
I truly appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again! “That which does not kill us makes us stronger.” by Friedrich Nietzsche….