MailScanner 4.50.15 not picking up new rules from sa-update

Adri Koppes adrik at salesmanager.nl
Thu Apr 6 11:53:08 IST 2006


Martin,

Your MailScanner.conf Advanced SpamAssassin Settings looks the same as
mine.
No option for the SA 3.1.1 LOCAL_STATE_DIR, which should have a default
of '/var/lib'.
Adding options to MailScanner.conf alone isn't going to work, since they
also need to be read and passed on to SpamAssassin in SA.pm.
I reported this to the list, since I think Julian has to add it to the
next version of MailScanner.

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:47
> To: 'MailScanner discussion'
> Subject: RE: MailScanner 4.50.15 not picking up new rules 
> from sa-update
> 
> Adri
> 
> >From my MailScanner.conf...
> 
> # Advanced SpamAssassin Settings
> # ------------------------------
> #
> # If you are using Postfix you may well need to use some of 
> the settings # below, as the home directory for the "postfix" 
> user cannot be written # to by the "postfix" user.
> # You may also need to use these if you have installed 
> SpamAssassin # somewhere other than the default location.
> #
> 
> # The per-user files (bayes, auto-whitelist, user_prefs) are 
> looked # for here and in ~/.spamassassin/. Note the files are mutable.
> # If this is unset then no extra places are searched for.
> # If using Postfix, you probably want to set this as shown in 
> the example # line at the end of this comment, and do
> #      mkdir /var/spool/MailScanner/spamassassin
> #      chown postfix.postfix /var/spool/MailScanner/spamassassin
> # NOTE: SpamAssassin is always called from MailScanner as the 
> same user,
> #       and that is the "Run As" user specified above. So you can only
> #       have 1 set of "per-user" files, it's just that you 
> might possibly
> #       need to modify this location.
> #       You should not normally need to set this at all.
> #SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
> SpamAssassin User State Dir = /var/spool/spamassassin
> 
> # This setting is useful if SpamAssassin is installed in an 
> unusual place, # e.g. /opt/MailScanner. The install prefix is 
> used to find some fallback # directories if neither of the 
> following two settings work.
> # If this is set then it adds to the list of places that are 
> searched; # otherwise it has no effect.
> #SpamAssassin Install Prefix = /opt/MailScanner SpamAssassin 
> Install Prefix = /opt/MailScanner
> 
> # The site rules are searched for here.
> # The per-user files (bayes, auto-whitelist, user_prefs) are 
> looked # for here and in ~/.spamassassin/. Note the files are mutable.
> # If this is unset then no extra places are searched for.
> # If using Postfix, you probably want to set this as shown in 
> the example # line at the end of this comment, and do
> #      mkdir /var/spool/MailScanner/spamassassin
> #      chown postfix.postfix /var/spool/MailScanner/spamassassin
> # NOTE: SpamAssassin is always called from MailScanner as the 
> same user,
> #       and that is the "Run As" user specified above. So you can only
> #       have 1 set of "per-user" files, it's just that you 
> might possibly
> #       need to modify this location.
> #       You should not normally need to set this at all.
> #SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
> SpamAssassin User State Dir = /var/spool/spamassassin
> 
> # This setting is useful if SpamAssassin is installed in an 
> unusual place, # e.g. /opt/MailScanner. The install prefix is 
> used to find some fallback # directories if neither of the 
> following two settings work.
> # If this is set then it adds to the list of places that are 
> searched; # otherwise it has no effect.
> #SpamAssassin Install Prefix = /opt/MailScanner SpamAssassin 
> Install Prefix = /opt/MailScanner
> 
> # The site rules are searched for here.
> # Normal location on most systems is /etc/mail/spamassassin.
> SpamAssassin Site Rules Dir = /etc/mail/spamassassin
> 
> # The site-local rules are searched for here, and in 
> prefix/etc/spamassassin, # prefix/etc/mail/spamassassin, 
> /usr/local/etc/spamassassin, /etc/spamassassin, # 
> /etc/mail/spamassassin, and maybe others.
> # Be careful of setting this: it may mean the 
> spam.assassin.prefs.conf file # is missed out, you will need 
> to insert a soft-link with "ln -s" to link # the file into 
> mailscanner.cf in the new directory.
> # If this is set then it replaces the list of places that are 
> searched; # otherwise it has no effect.
> #SpamAssassin Local Rules Dir = /opt/MailScanner/etc/mail/spamassassin
> SpamAssassin Local Rules Dir =
> 
> # The default rules are searched for here, and in 
> prefix/share/spamassassin, # /usr/local/share/spamassassin, 
> /usr/share/spamassassin, and maybe others.
> # If this is set then it adds to the list of places that are 
> searched; # otherwise it has no effect.
> #SpamAssassin Default Rules Dir = /opt/MailScanner/share/spamassassin
> SpamAssassin Default Rules Dir =
> 
> 
> --
> 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:31
> > To: MailScanner discussion
> > Subject: RE: MailScanner 4.50.15 not picking up new rules from 
> > sa-update
> > 
> > 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!
> > >
> > --
> > 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