You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Chris <cp...@embarqmail.com> on 2018/08/17 16:34:15 UTC

Update to Ubuntu 18.04.1 seems to have partially broken SA

I noticed last night while updating to 18.04.1 that there were warnings
    about SA Compile. I tried to copy to the clipboard however that
didn't work. I did manage to capture this:

installed sa-compile package post-installation script subprocess
returned error exit status 13

What I'm seeing in my syslog now is this:

Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run CLAMAV
test, skipping:
Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
"check_clamav" via package "Mail: [...]:SpamAssassin::PerMsgStatus" at
(eval 1894) line 19.
Aug 17 09:01:43 localhost spamd[1837]: )
Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run __F_DM1
test, skipping:
Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
"from_domains_mismatch" via package "Mail:
[...]:SpamAssassin::PerMsgStatus" at (eval 1899) line 19.

Any suggestions on a fix? Installed info below:

apt-cache policy spamassassin
spamassassin:
  Installed: 3.4.1-8build1
  Candidate: 3.4.1-8build1
  Version table:
 *** 3.4.1-8build1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64
Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic/main i386
Packages
        100 /var/lib/dpkg/status
-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
11:18:49 up 13:48, 1 user, load average: 1.43, 1.26, 1.07
Description:	Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Chris <cp...@embarqmail.com>.
On Fri, 2018-08-17 at 17:54 +0100, Dominic Raferd wrote:
> 
> 
> On Fri, 17 Aug 2018 at 17:34, Chris <cp...@embarqmail.com> wrote:
> > I noticed last night while updating to 18.04.1 that there were
> > warnings
> >     about SA Compile. I tried to copy to the clipboard however that
> > didn't work. I did manage to capture this:
> > 
> > installed sa-compile package post-installation script subprocess
> > returned error exit status 13
> > 
> > What I'm seeing in my syslog now is this:
> > 
> > Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run CLAMAV
> > test, skipping:
> > Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
> > "check_clamav" via package "Mail: [...]:SpamAssassin::PerMsgStatus"
> > at
> > (eval 1894) line 19.
> > Aug 17 09:01:43 localhost spamd[1837]: )
> > Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run __F_DM1
> > test, skipping:
> > Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
> > "from_domains_mismatch" via package "Mail:
> > [...]:SpamAssassin::PerMsgStatus" at (eval 1899) line 19.
> > 
> > Any suggestions on a fix? Installed info below:
> > 
> > apt-cache policy spamassassin
> > spamassassin:
> >   Installed: 3.4.1-8build1
> >   Candidate: 3.4.1-8build1
> >   Version table:
> >  *** 3.4.1-8build1 500
> >         500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64
> > Packages
> >         500 http://us.archive.ubuntu.com/ubuntu bionic/main i386
> > Packages
> >         100 /var/lib/dpkg/status
> 
> A short answer as I am in a hurry but may help you get started. I hit
> this problem on one machine. For future reference for anyone, run
> 'sudo -u debian-spamd sa-compile' immediately *before* attempting
> upgrade to 18.04, because it is run automatically during the upgrade
> and if it fails (because of a prior error, in my case it was my bad
> syntax in /etc/spamassassin/local.cf) the whole upgrade aborts. In my
> case the final stage (removing old/redundant packages) had not
> happened.
> 
> There should be a track of what happened during the upgrade in log
> files in /var/log/dist-upgrade. Look especially at the last say 300
> lines of screenlog.0.
> 
> The way I fixed it afterwards was to follow instructions in the first
> answer at https://askubuntu.com/questions/539235/how-to-remove-obsole
> te-packages-after-failed-release-upgrade-via-do-release-upgr.
> Then found what had prevented sa-compile from completing and ran it
> through without error.
> 
> Now 18.04 plays nicely. HTH

Thanks Dominic, that was a great help. I can't believe how many old
files were on the system. I think about 500k were removed. Early on
when SA-Compile was run I did manage to capture this:

Running sa-compile (may take a long time)
Unescaped left brace in regex is deprecated here (and will be fatal in
Perl 5.30), passed through in regex; marked by <-- HERE in
m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
International Lottery|International Lottery|Euro - Afro Asian
Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA JACKPOT|MICROSOFT
EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
/usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.

I did fix the ClamAV.pm issue, as usual during an upgrade the
File::Scan::ClamAV module doesn't get installed for some unknown
reason.

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
16:15:46 up 15 min, 1 user, load average: 1.55, 3.95, 3.76
Description:	Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Chris <cp...@embarqmail.com>.
On Sat, 2018-08-18 at 00:07 -0400, Bill Cole wrote:
> On 17 Aug 2018, at 18:49 (-0400), Chris wrote:
> 
> > Not in one of my rules:
> 
> OK, but also not part of the standard ruleset: 3rd-party rules. Kevin
> is a highly respected and active leader in the SpamAssassin project
> and the ASF as a whole but those rules aren't part of his
> contributions to the project. They are useful for small & medium
> sized business mail systems but don't really fit the broad safety &
> efficacy requirements of the official distribution. You use them by
> active choice, not by trusting in what SA provides...
> 
> > 
> > /etc/mail/spamassassin$ grep -i "POWERBALL" KAM.cf
> > body		__KAM_LOTTO5	/(POWERBALL LOTTO|freelotto
> > group|Royal Heritage Lottery|(British|UK) National( Online)?
> > Lottery|U\.?K\.? Grand Promotions|Lottery Department UK|Euromillion
> > Loteria|Luckyday International Lottery|International Lottery|Euro -
> > Afro Asian Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
> > DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
> > Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA
> > JACKPOT|MICROSOFT
> > EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
> > Lottery|claim.{1,10}your.gbp|won.you.{1,10]gbp)/is
> > header		__KAM_LOTTO8    From =~
> > /Lottery|powerball|western.union/i
> 
> If you're using KAM.cf, you should set up a mechanism for keeping
> that file up to date. This typo was fixed over 2 months ago (as far
> back as I have online backups of it) and the current KAM.cf has
> dozens of other changes in that time.
> 
Thanks Bill and thanks for advising me on what I should do.

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
06:34:34 up 8:46, 1 user, load average: 1.61, 1.90, 2.29
Description:	Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 17 Aug 2018, at 18:49 (-0400), Chris wrote:

> Not in one of my rules:

OK, but also not part of the standard ruleset: 3rd-party rules. Kevin is a highly respected and active leader in the SpamAssassin project and the ASF as a whole but those rules aren't part of his contributions to the project. They are useful for small & medium sized business mail systems but don't really fit the broad safety & efficacy requirements of the official distribution. You use them by active choice, not by trusting in what SA provides...

>
> /etc/mail/spamassassin$ grep -i "POWERBALL" KAM.cf
> body		__KAM_LOTTO5	/(POWERBALL LOTTO|freelotto
> group|Royal Heritage Lottery|(British|UK) National( Online)?
> Lottery|U\.?K\.? Grand Promotions|Lottery Department UK|Euromillion
> Loteria|Luckyday International Lottery|International Lottery|Euro -
> Afro Asian Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
> DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
> Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA JACKPOT|MICROSOFT
> EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
> Lottery|claim.{1,10}your.gbp|won.you.{1,10]gbp)/is
> header		__KAM_LOTTO8    From =~
> /Lottery|powerball|western.union/i

If you're using KAM.cf, you should set up a mechanism for keeping that file up to date. This typo was fixed over 2 months ago (as far back as I have online backups of it) and the current KAM.cf has dozens of other changes in that time.


-- 
Bill Cole
bill@scconsult.com or billcole@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steadier Work: https://linkedin.com/in/billcole

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Chris <cp...@embarqmail.com>.
On Fri, 2018-08-17 at 23:00 +0100, RW wrote:
> On Fri, 17 Aug 2018 16:25:14 -0500
> Chris wrote:
> 
> > Early on when SA-Compile was run I did manage to capture this:
> > 
> > Running sa-compile (may take a long time)
> > Unescaped left brace in regex is deprecated here (and will be fatal
> > in
> > Perl 5.30), passed through in regex; marked by <-- HERE in
> > m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
> > Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
> > Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
> > International Lottery|International Lottery|Euro - Afro Asian
> > Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
> > DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
> > Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA
> > JACKPOT|MICROSOFT
> > EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
> > Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
> > /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.
> 
> 
> 
> This looks like a straightforward typo in one of your own rules
> 
>    won.you.{1,10]gbp
> 
> instead of 
> 
>    won.you.{1,10}gbp

Not in one of my rules:

/etc/mail/spamassassin$ grep -i "POWERBALL" KAM.cf
body		__KAM_LOTTO5	/(POWERBALL LOTTO|freelotto
group|Royal Heritage Lottery|(British|UK) National( Online)?
Lottery|U\.?K\.? Grand Promotions|Lottery Department UK|Euromillion
Loteria|Luckyday International Lottery|International Lottery|Euro -
Afro Asian Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA JACKPOT|MICROSOFT
EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
Lottery|claim.{1,10}your.gbp|won.you.{1,10]gbp)/is
header		__KAM_LOTTO8    From =~
/Lottery|powerball|western.union/i


-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
17:40:12 up 1:39, 1 user, load average: 1.32, 1.09, 2.13
Description:	Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by RW <rw...@googlemail.com>.
On Fri, 17 Aug 2018 16:25:14 -0500
Chris wrote:

> Early on when SA-Compile was run I did manage to capture this:
> 
> Running sa-compile (may take a long time)
> Unescaped left brace in regex is deprecated here (and will be fatal in
> Perl 5.30), passed through in regex; marked by <-- HERE in
> m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
> Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
> Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
> International Lottery|International Lottery|Euro - Afro Asian
> Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
> DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
> Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA JACKPOT|MICROSOFT
> EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
> Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
> /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.



This looks like a straightforward typo in one of your own rules

   won.you.{1,10]gbp

instead of 

   won.you.{1,10}gbp


Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by John Hardin <jh...@impsec.org>.
On Fri, 17 Aug 2018, Chris wrote:

> On Fri, 2018-08-17 at 14:46 -0700, John Hardin wrote:
>> On Fri, 17 Aug 2018, Chris wrote:
>>
>>> Early on
>>> when SA-Compile was run I did manage to capture this:
>>>
>>> Running sa-compile (may take a long time)
>>> Unescaped left brace in regex is deprecated here (and will be fatal
>>> in
>>> Perl 5.30), passed through in regex; marked by <-- HERE in
>>> m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
>>> Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
>>> Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
>>> International Lottery|International Lottery|Euro - Afro Asian
>>> Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
>>> DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
>>> Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA
>>> JACKPOT|MICROSOFT
>>> EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
>>> Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
>>> /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.
>>
>> That doesn't appear to be a stock rule. Do you know where it came
>> from?
>>
> No, not sure John but here are the two channels I query for updates
>
> updates.spamassassin.org
> sought.rules.yerp.org
>
> I just noticed looking at the output of my rules update cronjob I see:
>
> module not installed: Digest::SHA1 ('require' failed)
> module not installed: Razor2::Client::Agent ('require' failed)
>
> They were there prior to my upgrade last night. I'll install them and
> maybe that will fix the issue?

Doing that won't fix the rule typo. See what RW posted.

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Users mistake widespread adoption of Microsoft Office for
   the development of a document format standard.
-----------------------------------------------------------------------
  7 days until the 1939th anniversary of the destruction of Pompeii

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Chris <cp...@embarqmail.com>.
On Fri, 2018-08-17 at 14:46 -0700, John Hardin wrote:
> On Fri, 17 Aug 2018, Chris wrote:
> 
> > Early on
> > when SA-Compile was run I did manage to capture this:
> > 
> > Running sa-compile (may take a long time)
> > Unescaped left brace in regex is deprecated here (and will be fatal
> > in
> > Perl 5.30), passed through in regex; marked by <-- HERE in
> > m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
> > Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
> > Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
> > International Lottery|International Lottery|Euro - Afro Asian
> > Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
> > DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
> > Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA
> > JACKPOT|MICROSOFT
> > EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
> > Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
> > /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.
> 
> That doesn't appear to be a stock rule. Do you know where it came
> from?
> 
No, not sure John but here are the two channels I query for updates

updates.spamassassin.org
sought.rules.yerp.org

I just noticed looking at the output of my rules update cronjob I see:

module not installed: Digest::SHA1 ('require' failed)
module not installed: Razor2::Client::Agent ('require' failed)

They were there prior to my upgrade last night. I'll install them and
maybe that will fix the issue?

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
16:58:24 up 58 min, 1 user, load average: 0.82, 0.80, 1.23
Description:	Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by John Hardin <jh...@impsec.org>.
On Fri, 17 Aug 2018, Chris wrote:

> Early on
> when SA-Compile was run I did manage to capture this:
>
> Running sa-compile (may take a long time)
> Unescaped left brace in regex is deprecated here (and will be fatal in
> Perl 5.30), passed through in regex; marked by <-- HERE in
> m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
> Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
> Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
> International Lottery|International Lottery|Euro - Afro Asian
> Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
> DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
> Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA JACKPOT|MICROSOFT
> EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
> Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
> /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.

That doesn't appear to be a stock rule. Do you know where it came from?


-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Win95: Where do you want to go today?
   Vista: Where will Microsoft allow you to go today?
-----------------------------------------------------------------------
  7 days until the 1939th anniversary of the destruction of Pompeii

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Chris <cp...@embarqmail.com>.
On Fri, 2018-08-17 at 17:54 +0100, Dominic Raferd wrote:
> 
> 
> On Fri, 17 Aug 2018 at 17:34, Chris <cp...@embarqmail.com> wrote:
> > I noticed last night while updating to 18.04.1 that there were
> > warnings
> >     about SA Compile. I tried to copy to the clipboard however that
> > didn't work. I did manage to capture this:
> > 
> > installed sa-compile package post-installation script subprocess
> > returned error exit status 13
> > 
> > What I'm seeing in my syslog now is this:
> > 
> > Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run CLAMAV
> > test, skipping:
> > Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
> > "check_clamav" via package "Mail: [...]:SpamAssassin::PerMsgStatus"
> > at
> > (eval 1894) line 19.
> > Aug 17 09:01:43 localhost spamd[1837]: )
> > Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run __F_DM1
> > test, skipping:
> > Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
> > "from_domains_mismatch" via package "Mail:
> > [...]:SpamAssassin::PerMsgStatus" at (eval 1899) line 19.
> > 
> > Any suggestions on a fix? Installed info below:
> > 
> > apt-cache policy spamassassin
> > spamassassin:
> >   Installed: 3.4.1-8build1
> >   Candidate: 3.4.1-8build1
> >   Version table:
> >  *** 3.4.1-8build1 500
> >         500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64
> > Packages
> >         500 http://us.archive.ubuntu.com/ubuntu bionic/main i386
> > Packages
> >         100 /var/lib/dpkg/status
> 
> A short answer as I am in a hurry but may help you get started. I hit
> this problem on one machine. For future reference for anyone, run
> 'sudo -u debian-spamd sa-compile' immediately *before* attempting
> upgrade to 18.04, because it is run automatically during the upgrade
> and if it fails (because of a prior error, in my case it was my bad
> syntax in /etc/spamassassin/local.cf) the whole upgrade aborts. In my
> case the final stage (removing old/redundant packages) had not
> happened.
> 
> There should be a track of what happened during the upgrade in log
> files in /var/log/dist-upgrade. Look especially at the last say 300
> lines of screenlog.0.
> 
> The way I fixed it afterwards was to follow instructions in the first
> answer at https://askubuntu.com/questions/539235/how-to-remove-obsole
> te-packages-after-failed-release-upgrade-via-do-release-upgr.
> Then found what had prevented sa-compile from completing and ran it
> through without error.
> 
> Now 18.04 plays nicely. HTH

Thanks Dominic, that was a great help. I can't believe how many old
files were on the system. I think about 500k were removed. Early on
when SA-Compile was run I did manage to capture this:

Running sa-compile (may take a long time)
Unescaped left brace in regex is deprecated here (and will be fatal in
Perl 5.30), passed through in regex; marked by <-- HERE in
m/(?is)(POWERBALL LOTTO|freelotto group|Royal Heritage
Lottery|(British|UK) National( Online)? Lottery|U\.?K\.? Grand
Promotions|Lottery Department UK|Euromillion Loteria|Luckyday
International Lottery|International Lottery|Euro - Afro Asian
Sweepstake|urawinner|Free Lotto Sweepstakes|PROMOTION
DEPARTMENT|PROMOTION\/PRIZE AWARD|Nederlandse Internationale
Loterij|EURO MILLIONS|APPLE LOTTERY ONLINE|MSW MEGA JACKPOT|MICROSOFT
EMAIL PROMO|MSNlottery|ECOWAS|Nigeria|National
Lottery|claim.{1,10}your.gbp|won.you.{ <-- HERE 1,10]gbp)/ at
/usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1391.

I did fix the ClamAV.pm issue, as usual during an upgrade the
File::Scan::ClamAV module doesn't get installed for some unknown
reason.

-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
16:25:06 up 24 min, 1 user, load average: 1.11, 1.50, 2.55
Description:	Ubuntu 18.04.1 LTS, kernel 4.15.0-32-generic

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Dominic Raferd <do...@timedicer.co.uk>.
On Fri, 17 Aug 2018 at 17:34, Chris <cp...@embarqmail.com> wrote:

> I noticed last night while updating to 18.04.1 that there were warnings
>     about SA Compile. I tried to copy to the clipboard however that
> didn't work. I did manage to capture this:
>
> installed sa-compile package post-installation script subprocess
> returned error exit status 13
>
> What I'm seeing in my syslog now is this:
>
> Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run CLAMAV
> test, skipping:
> Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
> "check_clamav" via package "Mail: [...]:SpamAssassin::PerMsgStatus" at
> (eval 1894) line 19.
> Aug 17 09:01:43 localhost spamd[1837]: )
> Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run __F_DM1
> test, skipping:
> Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
> "from_domains_mismatch" via package "Mail:
> [...]:SpamAssassin::PerMsgStatus" at (eval 1899) line 19.
>
> Any suggestions on a fix? Installed info below:
>
> apt-cache policy spamassassin
> spamassassin:
>   Installed: 3.4.1-8build1
>   Candidate: 3.4.1-8build1
>   Version table:
>  *** 3.4.1-8build1 500
>         500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64
> Packages
>         500 http://us.archive.ubuntu.com/ubuntu bionic/main i386
> Packages
>         100 /var/lib/dpkg/status


A short answer as I am in a hurry but may help you get started. I hit this
problem on one machine. For future reference for anyone, run 'sudo -u
debian-spamd sa-compile' immediately *before* attempting upgrade to 18.04,
because it is run automatically during the upgrade and if it fails (because
of a prior error, in my case it was my bad syntax in /etc/spamassassin/
local.cf) the whole upgrade aborts. In my case the final stage (removing
old/redundant packages) had not happened.

There should be a track of what happened during the upgrade in log files in
/var/log/dist-upgrade. Look especially at the last say 300 lines of
screenlog.0.

The way I fixed it afterwards was to follow instructions in the first
answer at
https://askubuntu.com/questions/539235/how-to-remove-obsolete-packages-after-failed-release-upgrade-via-do-release-upgr
.
Then found what had prevented sa-compile from completing and ran it through
without error.

Now 18.04 plays nicely. HTH

Re: Update to Ubuntu 18.04.1 seems to have partially broken SA

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 17.08.18 11:34, Chris wrote:
>Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run CLAMAV
>test, skipping:
>Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
>"check_clamav" via package "Mail: [...]:SpamAssassin::PerMsgStatus" at
>(eval 1894) line 19.
>Aug 17 09:01:43 localhost spamd[1837]: )
>Aug 17 09:01:43 localhost spamd[1837]: rules: failed to run __F_DM1
>test, skipping:
>Aug 17 09:01:43 localhost spamd[1837]:  (Can't locate object method
>"from_domains_mismatch" via package "Mail:
>[...]:SpamAssassin::PerMsgStatus" at (eval 1899) line 19.
>
>Any suggestions on a fix? Installed info below:
>
>apt-cache policy spamassassin

unless ubuntu's spamassassin includes vlamav module, this is not a problem
of spamassassin but the clamav plugin

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.