Qmail Autoresponder

Installation

 $ make
 # ./installer
 # ./instshow
 # vi /etc/vmailmgr/vdeliver-postdeliver

And make sure it contains:

 #!/bin/sh
 if test -s $MAILDIR/autoresponse/message.txt
 then
   qmail-autoresponder $MAILDIR/autoresponse/message.txt $MAILDIR/autoresponse
 fi

Then

 # /etc/vmailmgr/vdeliver-predeliver

and make sure it contains:

 #!/bin/sh
 /usr/local/bin/vcheckquota

Then

 # chmod a+x /etc/vmailmgr/*

Usage

Put

 |qmail-autoresponder MESSAGE_FILE DIRECTORY

into your

 .qmail

file before other delivery instructions. MESSAGE_FILE is a pre-formatted response, including headers, and DIRECTORY is the directory into which rate-limiting information will be stored. Any instance of “%S” in MESSAGE_FILE will be replaced with the original subject.

Follow these instructions from the vautoresponder file:

  1. set MAILDIR to the (virtual) user’s mail directory
  2. create a directory “autoresponse” within the user’s mail directory
  3. create a file “message.txt” within the users autoresponse directory
This entry was posted in AIX, Hosting Support, Linux, OpenBSD and tagged . Bookmark the permalink.

NewPush has solutions to fit your business needs.  For more than a decade, our focus has been to take on the technical challenges that are the hardest and most time-consumming.  Our goal is to free up your resources to focus on the core activities of your business and to drive your business performance.  Please visit our main site at newpush.com for more information or call us at +1-303-423-4500.