This email will probably serve more purpose in the mailing list archive :).

I just wrote a perl script (qmail_misdirect) that can used to ease the 
management of a catch-all
account.
It changes the subject line of emails to show the email address that the 
emails were send to, ie:
"Subject: Misdirected email sent to: [EMAIL PROTECTED] [Subject was: I 
seek your advice.]"

It works such as:
.qmail-default =  |forward catch-all
.qmail-catch = | /path/qmail_misdirect
It will then write the email to $HOME/Maildir or you can tell it where 
via the command line, ie:
"| /path/to/qmail_misdirect /home/users/kenny/Maildir"

I intend to take this a further, checking the sender or recipient 
against a database and perhaps
trashing or bounce the message.  The database could be maintained by 
forwarding the offending
email to a certain account, etc.  If there is actually interest here 
please let me know, I think that
this would be a much easy way to allow clients server side filtering 
then say, maildrop.

Oh.. the url :)
http://muspellsheim.net/software/qmail_misdirect/index.html

kenny
[EMAIL PROTECTED]


Reply via email to