1

Topic: /etc/cron.daily/spamassassin

==== Required information ====
- iRedMail version (check /etc/iredmail-release): last
- 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: /etc/cron.daily/spamassassin
====

Hi there,

Little pb today ... I don't understand this error message.

/etc/cron.daily/spamassassin:
run-parts: /etc/spamassassin/sa-update-hooks.d/amavisd-new exited with return code 3
run-parts: /etc/cron.daily/spamassassin exited with return code 1
/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

Run both /etc/spamassassin/sa-update-hooks.d/amavisd-new and /etc/cron.daily/spamassassin manually to check why they failed.

3 (edited by Thierry 2016-08-14 23:25:22)

Re: /etc/cron.daily/spamassassin

As you can see on the attachment file, there is no error if I do it manually .....
Thx

Post's attachments

Capture.JPG
Capture.JPG 16.93 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

4

Re: /etc/cron.daily/spamassassin

Run 'bash -xv /etc/cron.daily/spamassassin'.

5

Re: /etc/cron.daily/spamassassin

....
....

# Tell a running spamd to reload its configs and rules.
reload() {
    # Reload
    if which invoke-rc.d >/dev/null 2>&1; then
        invoke-rc.d spamassassin reload > /dev/null
    else
        /etc/init.d/spamassassin reload > /dev/null
    fi
    if [ -d /etc/spamassassin/sa-update-hooks.d ]; then
        run-parts --lsbsysinit /etc/spamassassin/sa-update-hooks.d
    fi
}

# Sleep for up to 3600 seconds if not running interactively
if [ ! -t 0 ]; then
    RANGE=3600
    number=`od -vAn -N2 -tu4 < /dev/urandom`
    number=`expr $number "%" $RANGE`
    sleep $number
fi
+ '[' '!' -t 0 ']'

# Update
umask 022
+ umask 022
env -i LANG="$LANG" PATH="$PATH" start-stop-daemon \
    --chuid debian-spamd:debian-spamd --start \
    --exec /usr/bin/sa-update -- \
    --gpghomedir /var/lib/spamassassin/sa-update-keys 2>&1
+ env -i LANG=fr_FR.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin start-stop-daemon --chuid debian-spamd:debian-spamd                                                  --start --exec /usr/bin/sa-update -- --gpghomedir /var/lib/spamassassin/sa-update-keys

case $? in
    0)
        # got updates!
        env -i LANG="$LANG" PATH="$PATH" start-stop-daemon \
            --chuid debian-spamd:debian-spamd --start \
            --exec /usr/bin/spamassassin -- --lint 2>&1 || die_with_lint
        do_compile
        reload
        ;;
    1)
        # no updates
        exit 0
        ;;
    2)
        # lint failed!
        die_with_lint
        ;;
    *)
        echo "sa-update failed for unknown reasons" 1>&2
        ;;
esac
+ case $? in
+ exit 0

6

Re: /etc/cron.daily/spamassassin

No error in your output. Maybe it's just temporary error.