response

介紹:

https://code.google.com/p/response/

program: python

response limits per recipient

components:

A LMTP-daemon
handle incoming messages, validate sender, recipient, and headers.

The Notifier.(Cron)
* It can use any custom SMTP relay to send the responses.

Cleanup component
* It takes care of disabling expired autoresponse configurations
* removing obsolete response records.

INSTALL

Debian:

aptitude install python python-{mysqldb,sqlalchemy}

Centos:

python-sqlalchemy
yum install MySQL-python

 

useradd --system --home-dir /nonexistant --shell /bin/false response

ln -s /opt/response-0.8/ response

cd /opt/response

cp response.cfg /etc/

mkdir -p /var/run/response

chown response:response /etc/response.cfg /var/run/response

chmod 600 /etc/response.cfg

chmod 700 /var/run/response

cp examples/debian-initscript /etc/init.d/response-lmtpd

chmod 755 /etc/init.d/response-lmtpd

 

設定

response.cfg

# Credentials
USERNAME = response
PASSWORD = FIXME
DATABASE = response

# How many seconds must pass before we send a successive response from the
# same sender to the same recipient? (default: 1 week)
# 1 天
REQUIRED_TIMEDELTA = 86400

 

最後 start 它

/etc/init.d/response-lmtpd start

 

If everything is fine, go configure Postfix. See :ref:`postfix`

Edit the init script and drop --debug, then restart it.

cp examples/crontab /etc/cron.d/response

Creative Commons license icon Creative Commons license icon