On Tue, 2010-02-16 at 17:11 -1000, Alexandre Chapellon wrote: > Yes but most of the time (here) undeliverable mails are undeliverable > because of recipient over quota, wrong mx records on dst domain or > things like this... I can explain this to my customer. By cons I > cannot tell him we silently droped your mail this morning cause it > looked like spam... at least I don't feel confortable with this. > So redirect it back to him as an attachment to a spam report.
I'd do that by having Postfix initially redirect to a local spam handling mailbox. The program reading that mailbox, probably based round JavaMail because that makes mail handling very easy, would first check whether the sender is one of your legitimate users. If not, the sender is forged and the mail can be discarded. If the sender is legit, the program creates a covering form letter, attaches the spammy message and sends it to the user. Such a program would check its mail every 5 - 10 minutes. Martin