MailScanner 4.50.15 not picking up new rules from sa-update

Adri Koppes adrik at salesmanager.nl
Thu Apr 6 11:31:20 IST 2006


Martin,

This was an upgrade from 4.49, but the MailScanner.conf has been updated
also.
My MailScanner.conf has the following entries:

MailScanner Version Number = 4.50.15
SpamAssassin User State Dir = /usr/local/etc/mail/spamassassin
SpamAssassin Install Prefix =
SpamAssassin Site Rules Dir = /usr/local/etc/mail/spamassassin
SpamAssassin Local Rules Dir =
SpamAssassin Default Rules Dir =

I do NOT see anything for the LOCAL_STATE_DIR in either MailScanner.conf
or SA.pm!
Since the option is not in SA.pm, it won't matter if I add it to
MailScanner.conf!

I have manually set the option in SA.pm and now the updated rules are
recognised and used.
Here's a context diff:

*** SA.pm       Thu Apr  6 12:29:42 2006
--- SA.pm.orig  Thu Apr  6 12:30:12 2006
***************
*** 106,112 ****
      $settings{LOCAL_RULES_DIR} = $val if $val ne "";
      $val = MailScanner::Config::Value('spamassassindefaultrulesdir');
      $settings{DEF_RULES_DIR} = $val if $val ne "";
-     $settings{LOCAL_STATE_DIR} = "/var/lib";
      $val = MailScanner::Config::Value('spamassassininstallprefix');

      # For version 3 onwards, shouldn't cause problems with earlier
code
--- 106,111 ----

Adri.



> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Martin Hepworth
> Sent: donderdag 6 april 2006 12:18
> To: 'MailScanner discussion'
> Subject: RE: MailScanner 4.50.15 not picking up new rules 
> from sa-update
> 
> Adri
> 
> Should be in MailScanner.conf in the Advanced SpamAssassin 
> section - its around line 1850 in my setup.
> 
> 
> Was this a fresh install of 4.50.15 or did you upgrade from 
> an earlier version???
> 
> 
> --
> Martin Hepworth
> Snr Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
> 
> > -----Original Message-----
> > From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner- 
> > bounces at lists.mailscanner.info] On Behalf Of Adri Koppes
> > Sent: 06 April 2006 11:11
> > To: MailScanner discussion
> > Subject: RE: MailScanner 4.50.15 not picking up new rules from 
> > sa-update
> > 
> > Martin,
> > 
> > Using MailScanner 4.50.15 from www.freebsd.ord/ports.
> > SpamAssassin 3.1.1 from www.freebsd.org/ports.
> > 
> > Which setting should I look for in MailScanner.conf or SA.pm for 
> > setting the SpamAssassin LOCAL_STATE_DIR?
> > 
> > Adri.
> > 
> > 
> > > -----Original Message-----
> > > From: mailscanner-bounces at lists.mailscanner.info
> > > [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of 
> > > Martin Hepworth
> > > Sent: donderdag 6 april 2006 12:00
> > > To: 'MailScanner discussion'
> > > Subject: RE: MailScanner 4.50.15 not picking up new rules from 
> > > sa-update
> > >
> > > Adri
> > >
> > > Hmm what version of MS is this???? "mailscanner -v"
> > >
> > > Freshports shows the latest is 4.50.1 which should have these 
> > > settings.
> > >
> > > You may have to upgrade your ports tree..
> > >
> > > --
> > > Martin Hepworth
> > > Snr Systems Administrator
> > > Solid State Logic
> > > Tel: +44 (0)1865 842300
> > >
> > > > -----Original Message-----
> > > > From: mailscanner-bounces at lists.mailscanner.info
> > > [mailto:mailscanner-
> > > > bounces at lists.mailscanner.info] On Behalf Of Adri Koppes
> > > > Sent: 06 April 2006 10:52
> > > > To: MailScanner discussion
> > > > Subject: RE: MailScanner 4.50.15 not picking up new rules from 
> > > > sa-update
> > > >
> > > > Martin,
> > > >
> > > > The Advanced SpamAssassin Section does not have an 
> option for the 
> > > > SpamAssassin LOCAL_STATE_DIR option.
> > > > Also in SA.pm, there is no place where this option is read
> > > or passed
> > > > on to SpamAssassin.
> > > > I think the LOCAL_STATE_DIR option is new for SA 3.1.1, to
> > > work with
> > > > sa-update.
> > > >
> > > > I am restarting MailScanner after making config changes, before 
> > > > checking if they function properly.
> > > > I think Julian probably has to add the option to SA.pm and the 
> > > > Advanced SpamAssassin Section in MailScanner.conf.
> > > >
> > > > Adri.
> > > >
> > > > > -----Original Message-----
> > > > > From: mailscanner-bounces at lists.mailscanner.info
> > > > > [mailto:mailscanner-bounces at lists.mailscanner.info] 
> On Behalf Of 
> > > > > Martin Hepworth
> > > > > Sent: donderdag 6 april 2006 10:35
> > > > > To: 'MailScanner discussion'
> > > > > Subject: RE: MailScanner 4.50.15 not picking up new 
> rules from 
> > > > > sa-update
> > > > >
> > > > > Adri
> > > > >
> > > > > Have a look in MailScanner.conf and the Advanced SpamAssassin 
> > > > > Settings section. You can put extra things into the SA rules 
> > > > > path there,
> > > > >
> > > > > Also I presume you're restarting MS after the update and not 
> > > > > just waiting for the children to die?
> > > > >
> > > > > --
> > > > > Martin Hepworth
> > > > > Snr Systems Administrator
> > > > > Solid State Logic
> > > > > Tel: +44 (0)1865 842300
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: mailscanner-bounces at lists.mailscanner.info
> > > > > [mailto:mailscanner-
> > > > > > bounces at lists.mailscanner.info] On Behalf Of Adri Koppes
> > > > > > Sent: 06 April 2006 09:03
> > > > > > To: mailscanner at lists.mailscanner.info
> > > > > > Subject: MailScanner 4.50.15 not picking up new rules from 
> > > > > > sa-update
> > > > > >
> > > > > > I am running the MailScanner port on FreeBSD 5.4 with
> > > > > sendmail as my
> > > > > > MTA and SpamAssassin 3.1.1.
> > > > > > I recently ran the 'sa-update' program included in
> > > SpamAssassin to
> > > > > > pick up newly added and changed rules.
> > > > > > The sa-update program correctly downloads the updated
> > > rules to the
> > > > > > default location of
> > > > > >
> > > '/var/lib/spamassassin/3.001001/updates_spamassassin_org' and when
> > > > > > running spamassassin -D --lint, I can see the new rules
> > > being used.
> > > > > > However the new rules are NOT being used by SpamAssassin
> > > > > when called
> > > > > > from inside MailScanner.
> > > > > > I believe this is due to an omission in SA.pm when
> > > creating a new
> > > > > > instance of Mail::SpamAssassin.
> > > > > > The LOCAL_STATE_DIR config option, which is normally
> > > > > '/var/lib' is not
> > > > > > included in the $settings.
> > > > > >
> > > > > > Adri.
> > > > > > --
> > > > > > MailScanner mailing list
> > > > > > mailscanner at lists.mailscanner.info
> > > > > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > > > > >
> > > > > > Before posting, read http://wiki.mailscanner.info/posting
> > > > > >
> > > > > > Support MailScanner development - buy the book off 
> the website!
> > > > >
> > > > >
> > > > >
> > > 
> ********************************************************************
> > > > > **
> > > > >
> > > > > This email and any files transmitted with it are confidential 
> > > > > and intended solely for the use of the individual or entity
> > > to whom they
> > > > > are addressed. If you have received this email in 
> error please 
> > > > > notify the system manager.
> > > > >
> > > > > This footnote confirms that this email message has been swept 
> > > > > for the presence of computer viruses and is believed 
> to be clean.
> > > > >
> > > > >
> > > 
> ********************************************************************
> > > > > **
> > > > >
> > > > > --
> > > > > MailScanner mailing list
> > > > > mailscanner at lists.mailscanner.info
> > > > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > > > >
> > > > > Before posting, read http://wiki.mailscanner.info/posting
> > > > >
> > > > > Support MailScanner development - buy the book off 
> the website!
> > > > >
> > > > --
> > > > MailScanner mailing list
> > > > mailscanner at lists.mailscanner.info
> > > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > > >
> > > > Before posting, read http://wiki.mailscanner.info/posting
> > > >
> > > > Support MailScanner development - buy the book off the website!
> > >
> > >
> > > 
> ********************************************************************
> > > **
> > >
> > > This email and any files transmitted with it are confidential and 
> > > intended solely for the use of the individual or entity 
> to whom they 
> > > are addressed. If you have received this email in error please 
> > > notify the system manager.
> > >
> > > This footnote confirms that this email message has been swept for 
> > > the presence of computer viruses and is believed to be clean.
> > >
> > > 
> ********************************************************************
> > > **
> > >
> > > --
> > > MailScanner mailing list
> > > mailscanner at lists.mailscanner.info
> > > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > >
> > > Before posting, read http://wiki.mailscanner.info/posting
> > >
> > > Support MailScanner development - buy the book off the website!
> > >
> > --
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > 
> > Before posting, read http://wiki.mailscanner.info/posting
> > 
> > Support MailScanner development - buy the book off the website!
> 
> 
> **********************************************************************
> 
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity 
> to whom they are addressed. If you have received this email 
> in error please notify the system manager.
> 
> This footnote confirms that this email message has been swept
> for the presence of computer viruses and is believed to be clean.	
> 
> **********************************************************************
> 
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website! 
> 


More information about the MailScanner mailing list