Deactivating an Autoresponder

To deactivate an autoreply, edit the /etc/mail/aliases file and place a pound sign (#) before both the responder and reply aliases for your autoresponder. Remember to run the mailctl restart command when you are finished.

Example:

Suppose you created an autoresponder called "info" as described in the Setting Up an Autoresponder section. To deactivate the autoresponder, you would follow these steps:

  1. Open the /etc/mail/aliases file in a text editor such as pico:

> pico /etc/mail/aliases

  1. Locate the responder and reply aliases:

info: user2,"|/usr/local/bin/autoreply -f info-reply@domain.com -a info@domain.com -m /etc/mail/replies/info"

info-reply: user2

  1. Comment out both aliases by placing a pound sign (#) at the beginning of their respective lines:

#info: user2,"|/usr/local/bin/autoreply -f info-reply@domain.com -a info@domain.com -m /etc/mail/replies/info"

#info-reply: user2

  1. Close the file and enter the mailctl restart command:

> mailctl restart

The autoresponder is now deactivated.