[Mimedefang] quarantine confusion

Jason Englander jason at englanders.cc
Mon Aug 25 14:53:01 EDT 2003


On Fri, 22 Aug 2003, Adam Rosenthal (Web Hosting Logic Support) wrote:

> I need to make some adjustments to MIMEDefang in order for SpamAssassin
> to be able to access the 'user_prefs' file in each users home dir.  Have
> you done this before?  Do you know where MIMEDefang actually runs the
> SpamAssassin?

You may already know that, but it doesn't actually run SpamAssassin.  It
calls the SpamAssassin functions directly (SpamAssassin is a set of perl
modules: spamd is a perl script, spamassassin is a perl script).  Read
through 'man mimedefang-filter' and check out the spam_assassin_*
functions.  You'll see that you can pass a configuration file to them.
I've set it up several different ways, but the one I'm using here at
home is set to read them out of /etc/mail/spamassassin/domain/username,
because only users with shell accounts have a home directory.  Keep in
mind that you'll probably need to use stream_by_recipient() or something
like that.  I wrote a stream_by_saconfig() that resends a message so
there is one copy for recipients that don't have a SA configuration,
and one copy for each one that does.  ...and I wrote something to
open an SA object for each config file when a slave starts.

To avoid pissing off the people that pay me to set up this sort of thing
for them (several of which read this list), I'll leave it as an exercise
for the user. :-)

  Jason

-- 
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA




More information about the MIMEDefang mailing list