Robert Penz wrote:

if couier gets a mail via smtp from outside, it should insert the the from and to's into a database table. an send the other user a temp error. with the from and to in the table there should be also a time stamp. if the other server tries to send the mail again look into the table and check if X min have past. if so, accept the mail and deliver it, and remove the entry. if we don't get a resend for X days remove the entry from the table.

Wild. I had just written a filter that does almost exactly that. You can find it here:


http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/

You want courier-pythonfilter-0.2.tar.gz. Three filters are in that package, one of them is incomplete. Real quick, until I write an INSTALL document, the process is like this:

python setup.py install --without-filter ratelimit.py
ln -s /usr/bin/pythonfilter /usr/lib/courier/libexec/filters/
mkdir /var/state/pythonfilter
chown daemon /var/state/pythonfilter
filterctl start pythonfilter

You can also install "--without-filter dialback.py" if the filter you describe is the only one you want.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to