does anyone out there have a good plan for corrdinating bmf with a MTA (sendmail?) for a "site-wide" configuration?
thanks a lot,
Can you pass the email through a program and use the return code? That is
all you really need. bmf returns 0 for spam and 1 for non-spam. bmf works
best if the databases for each user are kept separate. This could be done
with the -d option (which is currently broken but will be fixed in 0.9.4),
but this would probably leave the databases owned by root. It would be much
better to add an option to switch uid at startup.
what i'm really looking for is an existing way for non mbox clients (e.g. POP, IMAP) to use bmf without having to get to a shell; maybe a global procmail would work best, accepting mail to email@example.com and filtering out the user it came from and running a script to add the spam to that user's db. anyone got something like this going? i'm not so good at the procmail recipes. :-\
From searching the web, it would appear that you can filter mail through an arbitrary program in sendmail.cf. However, having not used sendmail for ages, and sendmail.cf being so incredibly obfuscated, I cannot provide an example for you.
You might try looking around in "class P", as explained here:
Or you might want to use one of the rulesets described in this link (maybe check_compat):