Index of /coding/autoresponder
Name Last modified Size Description
Parent Directory -
installer/ 2023-12-08 10:48 -
autoresponder-0.1.run 2008-10-02 15:35 18K
autoresponder-0.2.run 2012-04-03 14:53 18K
autoresponder-0.3.run 2016-06-15 13:17 20K
autoresponder-0.4.run 2020-10-12 15:30 20K
autoresponder-0.5.run 2021-01-14 13:37 26K
autoresponder-0.6.pl 2023-12-08 10:46 16K
autoresponder-0.6.run 2023-12-08 10:55 27K
autoresponder-0.6.sql 2023-12-08 10:55 885
autoresponder-latest.run 2023-12-08 10:55 27K
Autoresponder - Enhanced autoresponder for Parallels Confixx 3.0.0 and above
INTRODUCTION
============
Enhanced autoresponder is an one-by-one replacment for autoresponder shipped
with Parallels Confixx. Beside the fact that Confixx autoresponder is badly
coded, it's not storing recipients who have already received an email. This
can cause and actually caused mail loops several times.
Enhanced autoresponder is using a database table for storing this recipients.
After a recipient has been added all additional incoming mails from the same
recipient will be dropped for a period of time. This period is 1 day per default
and can be changed in the configuration section of the script.
Additional enhanced autoresponder checks headers and mail addresses for common
strings, such as mailing-lists, spam, other autoresponders, etc. And of course
it's RFC5230 (Sieve Email Filtering: Vacation Extension) compliant.
REQUIREMENTS
============
perl (already required by Confixx)
MailTools (already required by Confixx)
Time::HiRes
INSTALLATION
============
Automatic installer (autoresponder-X.Y.run):
sh ./autoresponder.run /path/to/confixx_main.conf
sh ./autoresponder.run -- [-y] [-d] [-nb] /path/to/confixx_main.conf
Options:
-y, --yes enter yes to all questions
-nb, --nobackup don't do any backups
-d, --debug enable debug messages
Manual installation:
* Download the autoresponder + the corresponding sql-file
* Update your confixx database using the sql-file
* Replace the configuration placeholders at the top of the script
* Replace the old autoresponder
NOTES FOR SENDMAIL
==================
Sendmail is not passing the envelope sender (also known as the value of header
"Return-Path") to the executable. Although it won't be a fatal error, the header
should be checked to detect bounces more easily.
In order to let sendmail pass the header, you need to modify your sendmail config
(sendmail.cf) and add the char "P" to the field "F" in line "prog".
e.g from:
Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, ....
to
Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9P, S=EnvFromL/HdrFromL, ....
"P" should already be defined as "HP?Return-Path: <$g>" (in sendmail.cf too).
Don't forget to restart sendmail afterwards.
CONFIGURATION
=============
Configuration can be modified/viewed at the top of the script.
All configuration options have comments to explain their use.
COMMANDLINE PARAMETERS
======================
...like Confixx autoresponder
Usage: autoresponder.pl <ident> [ -l logfile ] [ -d debuglevel ] [ -v ]
Options:
<ident>
-i number, --ident=number The autoresponders ident number.
-l logfile, --log=logfile Path to logfile. Default is stderr
-d debuglevel, --debug=debuglevel Specify debug level. Default is 0=off
-v, --version Print version number and exit.
-h, --help Print help message.
HISTORY
=======
2020-01-14 (0.5)
* add support for start/end time
2017-05-04 (0.4)
* only mime encode email address phrases
2016-06-15 (0.3)
* convert emailtext BLOB column to TEXT
2012-04-03 (0.2)
* send all messages in UTF-8
since the underlying database is still latin and the body
a blob we just convert the data
* use MIME::Lite to generate the mime object
2008-10-02 (0.1 BETA)