J Thomas Hancock wrote:

> How do I set up DBMail with a per-address auto-responder/vacation message?

Dbmail currently support per-user (not per-address) auto-reply. I
consider this severely broken because there's no loop-detection in there
whatsoever.

Last year I wrote a temporary stop-gap solution in python which I'm
attaching. It will send replies from/to the same addresses only every
TIMEOUT seconds.

1. install this in i.e. /usr/local/bin/autoreplier.py
2. #>install -d -o dbmail -g dbmail -m 2770 /var/cache/dbmail
3. Add a reply message

cat >> /var/cache/dbmail/paul-autoreply.eml << EOM
From: [EMAIL PROTECTED]
Subject: vacation

I'm yonder.
---
#CU
EOM

4. Install the forward for a delivery address of your choosing,

dbmail-users -x [EMAIL PROTECTED] -t '|/usr/local/bin/autoreplier.py -u paul
-a [EMAIL PROTECTED] -m /var/cache/dbmail/paul-autoreply.eml'


Et voila.

5. As you return don't forget to disable this:

dbmail-users -x [EMAIL PROTECTED] -T '|/usr/local/bin/autoreplier.py -u paul
-a [EMAIL PROTECTED] -m /var/cache/dbmail/paul-autoreply.eml'


---
  ________________________________________________________________
  Paul Stevens                                         [EMAIL PROTECTED]
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands_______________________________________www.nfg.nl

Attachment: autoreplier.py
Description: application/python

Reply via email to