1 message in net.sourceforge.lists.courier-maildrop[maildropl] Mail AutoResponder in PHP...
FromSent OnAttachments
Julian PawlowskiJul 10, 2003 5:11 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Mail AutoResponder in PHP for MaildropActions...
From:Julian Pawlowski (lis@jp-solution.net)
Date:Jul 10, 2003 5:11:49 pm
List:net.sourceforge.lists.courier-maildrop

Hi there,

I just made up the first release of my mail autoresponder script for maildrop.

The script works with a mysql database so your users can configure it through it (on/off, replytext). The mail is handed over through maildrop's /etc/maildroprc:

cc "| /usr/local/php/current/bin/php \ -q /h/paw/lib/autoresponder.php 2>&1 >/dev/null"

The php script takes the mail through a pipe and gets the final recipient and the sender address from the mailheader. If the autoresponder is activated for this final recipient in the database, the deposited answer will be sent and the sender address is being marked as locked for further responses (-> mailloop!). If you deactivate the autoresponder of course you should delte those entries from your database so that senders will be notified again if the responder is reactivated.

The script has been written for my database. But there shouldn't be any problems to make the necessary changes to another database. The script should also work fine with procmail instead of using maildrop.

For those people who are interested in the script and my database structure, please have a look to http://doc.thepenguin.de/postfix-mysql/courier-maildrop/

Greetings from munich

Julian