You are not logged in.

#1 2016-11-01 10:39:26

rixz
Member
Registered: 2015-07-25
Posts: 14
Website

Spamassasin | sa-update not working

I installed spamassasin for my mail server but I am having problems to run it as I am unable to run sa-update. When I run it it just exists with error code 1.

Having looked around I learned something by running it with the verbose switch

sa-update -D

and bellow is the output:

# sa-update -D
Nov  1 01:23:23.736 [1362] dbg: logger: adding facilities: all
Nov  1 01:23:23.736 [1362] dbg: logger: logging level is DBG
Nov  1 01:23:23.736 [1362] dbg: generic: SpamAssassin version 3.4.1
Nov  1 01:23:23.736 [1362] dbg: generic: Perl 5.024000, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Nov  1 01:23:23.736 [1362] dbg: config: timing enabled
Nov  1 01:23:23.739 [1362] dbg: config: score set 0 chosen.
Nov  1 01:23:23.743 [1362] dbg: generic: sa-update version svn1652181
Nov  1 01:23:23.743 [1362] dbg: generic: using update directory: /var/lib/spamassassin/3.004001
Nov  1 01:23:23.802 [1362] dbg: diag: perl platform: 5.024000 linux
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: Digest::SHA1, version 2.13
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: HTML::Parser, version 3.72
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: Net::DNS, version 1.06
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: NetAddr::IP, version 4.079
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: Time::HiRes, version 1.9733
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: Archive::Tar, version 2.04
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: IO::Zlib, version 1.10
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: Digest::SHA1, version 2.13
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: MIME::Base64, version 3.15
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: DB_File, version 1.835
Nov  1 01:23:23.802 [1362] dbg: diag: [...] module installed: Net::SMTP, version 3.08
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: Mail::SPF, version v2.009
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module not installed: Geo::IP ('require' failed)
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module not installed: Net::CIDR::Lite ('require' failed)
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module not installed: Razor2::Client::Agent ('require' failed)
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: IO::Socket::IP, version 0.37
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: IO::Socket::INET6, version 2.72
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: IO::Socket::SSL, version 2.038
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: Compress::Zlib, version 2.069
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: Mail::DKIM, version 0.4
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module not installed: DBI ('require' failed)
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: Getopt::Long, version 2.48
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: LWP::UserAgent, version 6.15
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module installed: HTTP::Date, version 6.02
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module not installed: Encode::Detect::Detector ('require' failed)
Nov  1 01:23:23.803 [1362] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
Nov  1 01:23:23.804 [1362] dbg: diag: [...] module installed: Net::DNS::Nameserver, version 1406
Nov  1 01:23:23.805 [1362] dbg: gpg: Searching for 'gpg'
Nov  1 01:23:23.805 [1362] dbg: util: current PATH is: /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
Nov  1 01:23:23.805 [1362] dbg: util: executable for gpg was found at /usr/bin/gpg
Nov  1 01:23:23.805 [1362] dbg: gpg: found /usr/bin/gpg
Nov  1 01:23:23.805 [1362] dbg: gpg: importing default keyring to /etc/mail/spamassassin/sa-update-keys
Nov  1 01:23:23.809 [1362] dbg: gpg: [GNUPG:] IMPORT_OK 0 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
Nov  1 01:23:23.809 [1362] dbg: gpg: [GNUPG:] IMPORT_RES 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Nov  1 01:23:23.809 [1362] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 0C2B1D7175B852C64B3CDC716C55397824F434CE
Nov  1 01:23:23.810 [1362] dbg: util: secure_tmpfile created a temporary file /tmp/.spamassassin1362aCISv1tmp
Nov  1 01:23:23.810 [1362] dbg: channel: attempting channel updates.spamassassin.org
Nov  1 01:23:23.810 [1362] dbg: channel: using existing directory /var/lib/spamassassin/3.004001/updates_spamassassin_org
Nov  1 01:23:23.810 [1362] dbg: channel: channel cf file /var/lib/spamassassin/3.004001/updates_spamassassin_org.cf
Nov  1 01:23:23.810 [1362] dbg: channel: channel pre file /var/lib/spamassassin/3.004001/updates_spamassassin_org.pre
Nov  1 01:23:23.816 [1362] dbg: channel: no updates available, skipping channel
Nov  1 01:23:23.816 [1362] dbg: diag: updates complete, exiting with code 1

What I can see here is that by the end there is an information that there are no channels available. I tried pinging updates.spamassassin.org but it will not resolve to anything.

Can someone tell me if there are any valid channels that I can use? Or perhaps it may be some some other problem that I am not aware of?


Big is a matter of perspective.
Remember this, when facing the mountains of the mind.

Offline

#2 2016-11-01 14:11:07

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Spamassasin | sa-update not working

It doesn't say that no channels are available. It says: "no updates available, skipping channel". From what I can tell, it seems to be working fine. Just for your information, here's an example of an actual dns error: https://lists.freebsd.org/pipermail/fre … 58613.html

Offline

#3 2016-11-06 15:32:18

rixz
Member
Registered: 2015-07-25
Posts: 14
Website

Re: Spamassasin | sa-update not working

x33a wrote:

It doesn't say that no channels are available. It says: "no updates available, skipping channel". From what I can tell, it seems to be working fine. Just for your information, here's an example of an actual dns error: https://lists.freebsd.org/pipermail/fre … 58613.html

Forgive me for the late reply, I wasn't really at home.

So you see, that is what I thought at first. However I am not even able to start the service. After sa-update I will run sa-compile and bellow is the output from the log when I attempt to start the service:

Nov 06 16:30:35 kerrigan spamd[4581]: config: no rules were found! Do you need to run 'sa-update'?
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Main process exited, code=exited, status=255/n/a
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Unit entered failed state.
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Failed with result 'exit-code'.
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Service hold-off time over, scheduling restart.
Nov 06 16:30:35 kerrigan systemd[1]: Stopped Spamassassin daemon.
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Start request repeated too quickly.
Nov 06 16:30:35 kerrigan systemd[1]: Failed to start Spamassassin daemon.
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Unit entered failed state.
Nov 06 16:30:35 kerrigan systemd[1]: spamassassin.service: Failed with result 'start-limit-hit'.

I did reinstall this time as I wanted to start from a new.

Last edited by rixz (2016-11-06 15:33:05)


Big is a matter of perspective.
Remember this, when facing the mountains of the mind.

Offline

#4 2016-11-07 09:21:51

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Spamassasin | sa-update not working

What happens if you try to manually run the ExecStart line of the service?

Offline

Board footer

Powered by FluxBB