How to coordinate with sendmail?

Help
Guy Matz
2002-10-19
2002-10-21
  • Guy Matz
    Guy Matz
    2002-10-19

    hello,
    does anyone out there have a good plan for corrdinating bmf with a MTA (sendmail?) for a "site-wide" configuration?

    thanks a lot,
    guy

     
    • Tom Marshall
      Tom Marshall
      2002-10-19

      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.

       
    • Guy Matz
      Guy Matz
      2002-10-19

      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 spam@domain.name 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. :-\

      thanks,
      guy

       
    • Tom Marshall
      Tom Marshall
      2002-10-21

      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:

      http://www.impsec.org/email-tools/procmail-on-gateway.txt

      Or you might want to use one of the rulesets described in this link (maybe check_compat):

      http://www.sendmail.org/~ca/email/check.html