Difference between revisions of "Autoresponders"

From HE FAQ
Jump to: navigation, search
(Changed to our recommended recipient identification format.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Autoresponders ==
+
{{1 prefix}}
  
The following covers how to use [[Procmail]] to do your autoresponding.
+
The following covers how to use [[Procmail]] to do your autoresponding. An easier method is through <nowiki>https://(your server name).he.net/cgi-bin/email-config.cgi</nowiki> .  Log in using your email address and email password and click on "Vacation."
  
Create a plain text file in your home directory called:
+
To use Procmail instead, create a plain text file in your home directory called:
  
 
''.procmailrc''
 
''.procmailrc''
Line 25: Line 25:
  
 
:0
 
:0
* ^To:.*info@yourdomain.com
+
* $DEFAULT ?? ^/var/mail/yourdomain.com/info(/|$)
 
* !^FROM_DAEMON
 
* !^FROM_DAEMON
 
* !^X-Loop: info@yourdomain.com
 
* !^X-Loop: info@yourdomain.com
Line 42: Line 42:
  
 
}</pre>
 
}</pre>
 +
 +
If you are already using Procmail, e.g. for email forwarding or Spam Assassin, you can just add everything from the # downward to the end of the file.
 +
 +
 +
[[Category:Webhosting]]

Latest revision as of 12:59, 27 August 2013

This information only pertains to Hurricane Electric's Shared Web Hosting package. There may be different information in our other categories.

The following covers how to use Procmail to do your autoresponding. An easier method is through https://(your server name).he.net/cgi-bin/email-config.cgi . Log in using your email address and email password and click on "Vacation."

To use Procmail instead, create a plain text file in your home directory called:

.procmailrc

Make sure it starts with a period and has no extention such as ".txt". If you create the file offline, it will need to be uploaded in text or ASCII mode. The contents of the file should look like this:

PATH=/usr/bin:/usr/local/bin
MAILDIR=/var/spool/mail/yourdomain.com
LOGFILE=$HOME/procmail.log
VERBOSE=no
COMSAT=no

#
# A Sample autoresponder to send info when someone sends a message to
# info@yourdomain.com
#
# Create a file in your home directory called emailinfo.txt
# put what you want sent out in there.
#


:0
* $DEFAULT ?? ^/var/mail/yourdomain.com/info(/|$)
* !^FROM_DAEMON
* !^X-Loop: info@yourdomain.com
{
        :0 h c
        | (formail -t -r -A"X-Loop: info@yourdomain.com " ; \
        cat $HOME/emailinfo.txt ) | \
        /usr/bin/sendmail -t

#
# And send a copy to me too!
#

        :0 
        !someoneelse@anotherdomain.com

}

If you are already using Procmail, e.g. for email forwarding or Spam Assassin, you can just add everything from the # downward to the end of the file.