![]() |
cp /usr/local/contrib/autoreply ~/usr/bin/autoreply
chmod 755 ~/usr/bin/autoreply
pico ~/.autoreply (pico is an easy-to-use editor)
info: NAME@DOMAIN_NAME, "|/usr/bin/autoreply -f info-reply -a info"
By the way, you can use the "-m" option to specify a different message file (i.e. "autoreply -m /etc/mymessage"). Be sure you use the full path from your virtual server's root directory.
The "-f" allows you to change who the autoreply message will be from (in the example above the "From:" field the customer gets will read "info-reply@DOMAIN_NAME"). The "-a" specifies who autoreply can reply for; this should be the same as what is in front of the ":" in the "aliases" file.
Note that in the example above mail sent to "info@DOMAIN_NAME" will also be sent to "NAME@DOMAIN_NAME". Without the "NAME@DOMAIN_NAME", the mail from the customer would not be seen.