[Mimedefang] SpamAssassin 3.3.0-rc1
David F. Skoll
dfs at roaringpenguin.com
Wed Dec 30 10:16:09 EST 2009
Jason Bertoch wrote:
> Has anyone tried SA 3.3.0-rc1 yet?
Yes, and it worked for us. However, we specifically set a user_dir.
SA 3.3.0-rc1 dies if it can't create the user state directory
(See Mail::SpamAssassin->get_and_create_userstate_dir())
As a workaround until we fix MIMEDefang, you need to create your
own $SASpamTester in your filter, supplying an appropriate userstate_dir:
# Put this somewhere in your filter....
use vars qw($SASpamTester);
$SASpamTester = Mail::SpamAssassin::new({
local_tests_only => 1, # or 0 depending on what you want
dont_copy_prefs => 1,
userprefs_filename => '/etc/mail/sa-mimedefang.cf', # or whatever
user_dir => '/some/path});
The directory '/some/path' will be used as the "home" directory for
SpamAssassin's purposes; it must be readable/writable/searchable by
the "defang" user. A good choice might be /var/spool/MIMEDefang.
Regards,
David.
More information about the MIMEDefang
mailing list