1

Topic: /etc/cron.daily/spamassassin ??

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Any ideas ?

/etc/cron.daily/spamassassin:
Job for spamassassin.service failed. See 'systemctl status spamassassin.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript spamassassin, action "reload" failed.
/etc/cron.daily/tmpreaper:
Please read /usr/share/doc/tmpreaper/README.security.gz first;
edit /etc/tmpreaper.conf to remove this message (look for SHOWWARNING).

thx

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: /etc/cron.daily/spamassassin ??

What's the detailed log?

3

Re: /etc/cron.daily/spamassassin ??

 systemctl status spamassassin.service
â spamassassin.service - Perl-based spam filter using text analysis
   Loaded: loaded (/lib/systemd/system/spamassassin.service; disabled)
   Active: inactive (dead)

4

Re: /etc/cron.daily/spamassassin ??

Oops, i misunderstood the issue.

iRedMail doesn't quire spamassassin (SA) daemon to be running, it (SA) is called by Amavisd.

5 (edited by Thierry 2015-09-02 11:32:48)

Re: /etc/cron.daily/spamassassin ??

Yes, I know this .... In this case, why is it trying to run ? I didn't change any settings concerning spamassassin ...

By default, spamassasin service is, on my system, not running .... So why a process is trying to make it running ?
Thx

6 (edited by Thierry 2015-09-02 12:46:27)

Re: /etc/cron.daily/spamassassin ??

is it link ?

root@zo:~# /etc/init.d/amavis stop
[ ok ] Stopping amavis (via systemctl): amavis.service.
root@zo:~# amavisd-new debug-sa
Sep  2 06:16:29.508 zo.domain.ltd /usr/sbin/amavisd-new[20475]: starting. /usr/sbin/amavisd-new at zo.domain.ltd amavisd-new-2.10.1 (20141025), Unicode aware, LANG="fr_FR.UTF-8"
fetch_modules: error loading optional module Razor2/Client/Agent.pm:
  Can't locate Getopt/Long.pm:   lib/Getopt/Long.pm: Permission non accordée at /usr/share/perl5/Razor2/Client/Agent.pm line 15.
  BEGIN failed--compilation aborted at /usr/share/perl5/Razor2/Client/Agent.pm line 15.
  Compilation failed in require at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Mail/DKIM.pm:
  Can't locate Mail/DKIM.pm:   lib/Mail/DKIM.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Image/Info.pm:
  Can't locate Image/Info.pm:   lib/Image/Info.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Image/Info/GIF.pm:
  Can't locate Image/Info/GIF.pm:   lib/Image/Info/GIF.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Image/Info/JPEG.pm:
  Can't locate Image/Info/JPEG.pm:   lib/Image/Info/JPEG.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Image/Info/PNG.pm:
  Can't locate Image/Info/PNG.pm:   lib/Image/Info/PNG.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Image/Info/BMP.pm:
  Can't locate Image/Info/BMP.pm:   lib/Image/Info/BMP.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.
fetch_modules: error loading optional module Image/Info/TIFF.pm:
  Can't locate Image/Info/TIFF.pm:   lib/Image/Info/TIFF.pm: Permission non accordée at /usr/sbin/amavisd-new line 209.

Plenty like this .... It says: Permission denied

7

Re: /etc/cron.daily/spamassassin ??

*) Does Amavisd work well before?
*) I don't know which process trying to make it running. i'm afraid that you should figure it out. Any changes you made on this server?

8

Re: /etc/cron.daily/spamassassin ??

seems to work ...
I have made some changes following your wiki technical infos ....

################### Logwatch 7.4.0 (03/01/11) #################### 
        Processing Initiated: Wed Sep  2 07:35:18 2015
        Date Range Processed: yesterday
                              ( 2015-Sep-01 )
                              Period is day.
        Detail Level of Output: 0
        Type of Output/Format: mail / text
        Logfiles for Host: zobe
 ################################################################## 
 
 --------------------- Amavisd-new Begin ------------------------ 

       64   Total messages scanned ------------------  100.00%
    6.193M  Total bytes scanned                      6,493,696
 ========   ==================================================
 
       64   Passed ----------------------------------  100.00%
       64     Clean passed                             100.00%
 ========   ==================================================
 
       64   Ham -------------------------------------  100.00%
       64     Clean passed                             100.00%
 ========   ==================================================
 
       64   SpamAssassin bypassed   
 
 
 ---------------------- Amavisd-new End ------------------------- 

 
 --------------------- clam-update Begin ------------------------ 

 
 Last ClamAV update process started at Tue Sep  1 23:04:46 2015
 
 Last Status:
    main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
    daily.cld is up to date (version: 20866, sigs: 1555579, f-level: 63, builder: neo)
    bytecode.cld is up to date (version: 268, sigs: 47, f-level: 63, builder: anvilleg)
 
 ---------------------- clam-update End ------------------------- 

 
 --------------------- httpd Begin ------------------------ 

 
 Requests with error response codes
    502 Bad Gateway
       /SOGo/so/user@domain.ltd/Mail/0/f ... BOX/unseenCount: 1 Time(s)
       /SOGo/so/user@domain.ltd/Mail/0/f ... fts/unseenCount: 1 Time(s)
       /SOGo/so/user@domain.ltd/Mail/0/folderINBOX/uids: 1 Time(s)
 
 ---------------------- httpd End ------------------------- 

 
 --------------------- pam_unix Begin ------------------------ 

 lightdm-greeter:
    Unknown Entries:
       session opened for user lightdm by (uid=0): 1 Time(s)
 
 su:
    Sessions Opened:
       tst -> root: 2 Time(s)
 
 systemd-user:
    Unknown Entries:
       session closed for user tst: 2 Time(s)
       session opened for user tst by (uid=0): 2 Time(s)
       session opened for user lightdm by (uid=0): 1 Time(s)
 
 
 ---------------------- pam_unix End ------------------------- 

 
 --------------------- Postfix Begin ------------------------ 

   12.421M  Bytes accepted                          13,024,370
    8.229M  Bytes sent via SMTP                      8,628,253
    4.193M  Bytes delivered                          4,397,189
   18.981K  Bytes forwarded                             19,437
 ========   ==================================================
 
      128   Accepted                                   100.00%
 --------   --------------------------------------------------
      128   Total                                      100.00%
 ========   ==================================================
 
      120   Connections             
      120   Disconnections          
      136   Removed from queue      
       58   Delivered               
       70   Sent via SMTP           
        8   Forwarded               
      100   Postscreen              
      100   Policy SPF              
 
        1   Timeouts (inbound)      
        6   SASL authenticated messages 
 
 
 ---------------------- Postfix End ------------------------- 

 
 --------------------- Connections (secure-log) Begin ------------------------ 

 
 **Unmatched Entries**
    systemd-logind: New seat seat0.: 1 Time(s)
    systemd-logind: Watching system buttons on /dev/input/event1 (Power Button): 1 Time(s)

If you need more data, do, not hesitate.

9

Re: /etc/cron.daily/spamassassin ??

It seems that the problem is resolved.
I had to install:

- Geo::IP
- Digest::SHA1
- Net::Patricia
- Encode::Detect

Thx