Discussion:
Hey Guys need some help
Philip Parsons
2014-05-21 02:07:34 UTC
Permalink
So I upgraded spamassassin to 3.4.0 and it all seems to be working except it does not seem to be reading the mailscanner.cf file in the /etc/mail/spamassassin/ as it looks like the local rules dir is set =/root/perl5/etc/mail/spamassassin as below and I cannot find a way to change it does anyone know of one ?



[root at changeme Mail-SpamAssassin-3.4.0]# spamassassin -D --lint
May 20 18:45:43.244 [25041] dbg: logger: adding facilities: all
May 20 18:45:43.244 [25041] dbg: logger: logging level is DBG
May 20 18:45:43.244 [25041] dbg: generic: SpamAssassin version 3.4.0
May 20 18:45:43.244 [25041] dbg: generic: Perl 5.014004, PREFIX=/root/perl5, DEF_RULES_DIR=/root/perl5/share/spamassassin, LOCAL_RULES_DIR=/root/perl5/etc/mail/spamassassin, LOCAL_STATE_DIR=/root/perl5/var/spamassassin

Thank you.
Philip Parsons


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140521/d49b4b0d/attachment.html
Richard Mealing
2014-05-21 11:47:05 UTC
Permalink
Hi Philip,

I think you can change this.

grep LOCAL_STATE_DIR `which spamassassin`

The option is in your /bin/spamassassin file, or where ever you have it installed. Mine is /usr/local/bin/spamassassin as I am on freebsd.

Thanks,
Rich

From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Philip Parsons
Sent: 21 May 2014 03:08
To: MailScanner discussion
Subject: Hey Guys need some help

So I upgraded spamassassin to 3.4.0 and it all seems to be working except it does not seem to be reading the mailscanner.cf file in the /etc/mail/spamassassin/ as it looks like the local rules dir is set =/root/perl5/etc/mail/spamassassin as below and I cannot find a way to change it does anyone know of one ?



[root at changeme Mail-SpamAssassin-3.4.0]# spamassassin -D --lint
May 20 18:45:43.244 [25041] dbg: logger: adding facilities: all
May 20 18:45:43.244 [25041] dbg: logger: logging level is DBG
May 20 18:45:43.244 [25041] dbg: generic: SpamAssassin version 3.4.0
May 20 18:45:43.244 [25041] dbg: generic: Perl 5.014004, PREFIX=/root/perl5, DEF_RULES_DIR=/root/perl5/share/spamassassin, LOCAL_RULES_DIR=/root/perl5/etc/mail/spamassassin, LOCAL_STATE_DIR=/root/perl5/var/spamassassin

Thank you.
Philip Parsons

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140521/f561d9c6/attachment.html
Mark Sapiro
2014-05-21 14:30:25 UTC
Permalink
Post by Richard Mealing
I think you can change this.
grep LOCAL_STATE_DIR `which spamassassin`
I think what the OP wants to change is LOCAL_RULES_DIR. I.e.,

my $LOCAL_RULES_DIR = '/etc/mail/spamassassin';
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
Philip Parsons
2014-05-21 15:49:04 UTC
Permalink
So I have changed that in the file do I need to do something else before it works ? because after the change I run the --lint and it still shows the old location...

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Mark Sapiro
Sent: May-21-14 7:30 AM
To: mailscanner at lists.mailscanner.info
Subject: Re: Hey Guys need some help
Post by Richard Mealing
I think you can change this.
grep LOCAL_STATE_DIR `which spamassassin`
I think what the OP wants to change is LOCAL_RULES_DIR. I.e.,

my $LOCAL_RULES_DIR = '/etc/mail/spamassassin';
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
--
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 message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mark Sapiro
2014-05-21 16:14:10 UTC
Permalink
Post by Philip Parsons
So I have changed that in the file do I need to do something else before it works ? because after the change I run the --lint and it still shows the old location...
Rather than making that file change, why not just create a symlink

/root/perl5/etc/mail/spamassassin -> /etc/mail/spamassassin
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
Philip Parsons
2014-05-21 18:33:59 UTC
Permalink
It is not the spamassassin file that is the problem it is that it does not find the mailscanner.cf file within the folders...

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Mark Sapiro
Sent: May-21-14 9:14 AM
To: mailscanner at lists.mailscanner.info
Subject: Re: Hey Guys need some help
Post by Philip Parsons
So I have changed that in the file do I need to do something else before it works ? because after the change I run the --lint and it still shows the old location...
Rather than making that file change, why not just create a symlink

/root/perl5/etc/mail/spamassassin -> /etc/mail/spamassassin
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
--
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 message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Philip Parsons
2014-05-21 16:51:32 UTC
Permalink
Figured it out I changed the wrong file...

-----Original Message-----
From: Philip Parsons
Sent: May-21-14 8:50 AM
To: mailscanner at lists.mailscanner.info
Subject: RE: Hey Guys need some help

So I have changed that in the file do I need to do something else before it works ? because after the change I run the --lint and it still shows the old location...

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Mark Sapiro
Sent: May-21-14 7:30 AM
To: mailscanner at lists.mailscanner.info
Subject: Re: Hey Guys need some help
Post by Richard Mealing
I think you can change this.
grep LOCAL_STATE_DIR `which spamassassin`
I think what the OP wants to change is LOCAL_RULES_DIR. I.e.,

my $LOCAL_RULES_DIR = '/etc/mail/spamassassin';
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
--
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 message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Loading...