On Wed, Feb 05, 2003 at 08:39:50PM -0800, Ask Bjoern Hansen wrote: > On Wed, 5 Feb 2003, Gavin Carr wrote: > > I've been thinking about per-user/domain plugin configurability > > and am not sure how best to handle multiple recipient emails where > > there are conflicting configurations required. Is there an easy > > way of exploding emails to multiple recipients into multiple > > single-recipient emails? (or perhaps non-conflict sets, at least) > > Any suggestions of good ways to approach this issue? > > I just updated the item in "STATUS" related to this: > > Methods to create a bounce message easily; partly so we can accept a > mail for one user but bounce it right away for another RCPT'er. > > The data_post hook should be able to put in the notes what addresses > should go through, bounce and get rejected respectively, and qpsmtpd > should just do the right thing. See also > http://nntp.perl.org/group/perl.qpsmtpd/170
This would be nice, but I'm also thinking about plugins like spamassassin that can actually modify the mail message. If you allow per-user or per-domain configurability here then you might actually want the message to go through for all recipients, but then need to munge the message in slightly different ways for each one (domain X wants the subject modified for spam, domain Y wants only headers added, domain Z wants all spam directed to a special address, etc.) Any bright ideas? Is a per-recipient data/qmail-queue loop totally ugly? And yes, MTAs shouldn't really do this kind of thing. :-) Cheers, Gavin
