Hi! Am 08.02.2010 21:47, schrieb Shane Williams: > I think you're both misunderstanding what the -b option does, and > reading the man page, I can see how it could be more explicit. > > In any case, the -b option is used to send rejected mail to a > specified email address (in case you want to inspect it). Someone can
As I understand the manual page, the "-b" option is not about rejected mails but about tagged mails. Tagged mails usually are a superset of rejected mails (i.e. if the "reject" score is larger than the "tag" score) A rejected mail will always be a tagged mail, but a tagged mail not necessarily is a rejected mail. So the question is (logically): should the handling of the "-b" option include the whole set of tagged mails or the set of tagged mails minus the set of rejected mails? I (and I guess Christoph, too) want the "-b" option only to handle the set of tagged mails reduced by the set of rejected mails but it looks like it currently applies to the whole set of tagged mails. The "reject" thing currently is just an additional feature, independent of the "redirect" feature. > correct me if I'm wrong, but I think what you're looking to do can't > be done in spamass-milter. I would recommend a procmail recipe to do > that instead. > Hm, I don't really like the procmail approach. It would add an additional component in the chain. I'd rather rely on the sendmail & milter components. I just checked the source code of spamass-milter and it looks like it does some extra steps just to provide a behaviour I don't like... Look at spamass-milter.cpp around line 450: [...] if (do_reject) { debug(D_MISC, "Rejecting"); smfi_setreply(ctx, "550", "5.7.1", "Blocked by SpamAssassin"); if (flag_bucket) { /* If we also want a copy of the spam, shell out to sendmail and send another copy. The milter API will not let you send the message AND return a failure code to the sender, so this is the only way to do it. */ [...] And then it continues with a popen() call just to start sendmail on order to send the previously rejected mail to the recipient given with the "-b" option. (This also explains why in case of rejected mails the sendmail logfiles look differently regarding the handling of headers) I think I'm going to add another option to spamass-milter just to tell it not to send a copy of the rejected mail. It shouldn't be that hard to implement something working the way I like, it might be harder to implement someting the spamass-milter maintainer (and the community) likes. Comments? - andreas -- Andreas Haumer | mailto:andr...@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71