spamd Down - "No rules were found!"

Operating System & Version
CENTOS 6.10 kvm
cPanel & WHM Version
v86.0.4

koonpete

Registered
Sep 8, 2016
3
0
51
Auckland
cPanel Access Level
Root Administrator
Hi there,

Overnight our server's spamd went down and all attempts to restart have failed. Upon checking the spamd_error_log, the error messages were:
Code:
config: no rules were found!  Do you need to run 'sa-update'?
I've ran /usr/local/cpanel/3rdparty/perl/530/bin/sa-update but still got an error:
Code:
no mirror data available for channel updates.spamassassin.org
channel 'updates.spamassassin.org': MIRRORED.BY file contents were missing, channel failed
I've checked my server's resolv.conf and it is set to 8.8.8.8 and 8.8.4.4. Would be great if you guys can provide any suggestions on resolving this issue. Thanks!
 

koonpete

Registered
Sep 8, 2016
3
0
51
Auckland
cPanel Access Level
Root Administrator
Output from Updating SpamAssassin Config:

Code:
[[email protected] ~]# /scripts/update_spamassassin_config
[*] Cleaning up from previous updates.....
[*] Running sa-update (/usr/local/cpanel/3rdparty/perl/530/bin/sa-update).....
[*] Please note that 'IO::Socket::IP' and 'Net::Patricia' are not needed by our implementation of SpamAssassin.
[*] The warnings related to them can be safely ignored.

Feb 27 12:18:47.304 [11440] dbg: logger: adding facilities: all
Feb 27 12:18:47.304 [11440] dbg: logger: logging level is DBG
Feb 27 12:18:47.305 [11440] dbg: generic: SpamAssassin version 3.4.4
Feb 27 12:18:47.305 [11440] dbg: generic: Perl 5.030000, PREFIX=/usr/local/cpanel/3rdparty/perl/530/lib/perl5, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Feb 27 12:18:47.305 [11440] dbg: config: timing enabled
Feb 27 12:18:47.306 [11440] dbg: config: score set 0 chosen.
Feb 27 12:18:47.312 [11440] dbg: generic: sa-update version 3.4.4 / svn1869639
Feb 27 12:18:47.312 [11440] dbg: generic: using update directory: /var/lib/spamassassin/3.004004
Feb 27 12:18:47.692 [11440] dbg: diag: perl platform: 5.030000 linux
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: Digest::SHA, version 6.02
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: HTML::Parser, version 3.72
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: Net::DNS, version 1.21
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: NetAddr::IP, version 4.079
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: Time::HiRes, version 1.976
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: Archive::Tar, version 2.32
Feb 27 12:18:47.692 [11440] dbg: diag: [...] module installed: IO::Zlib, version 1.10
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Digest::SHA1, version 2.13
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: MIME::Base64, version 3.15
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: DB_File, version 1.843
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Net::SMTP, version 3.11
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Mail::SPF, version v2.009
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module not installed: GeoIP2::Database::Reader ('require' failed)
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Geo::IP, version 1.51
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module not installed: IP::Country::DB_File ('require' failed)
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Net::CIDR::Lite, version 0.21
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Razor2::Client::Agent, version 2.86
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: IO::Socket::IP, version 0.39
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: IO::Socket::INET6, version 2.72
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: IO::Socket::SSL, version 2.066
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Compress::Zlib, version 2.084
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Mail::DKIM, version 0.56
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: DBI, version 1.642
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Getopt::Long, version 2.50
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: LWP::UserAgent, version 6.39
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: HTTP::Date, version 6.02
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Encode::Detect::Detector, version 1.01
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module not installed: Net::Patricia ('require' failed)
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Net::DNS::Nameserver, version 1692
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: BSD::Resource, version 1.2911
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: Archive::Zip, version 1.66
Feb 27 12:18:47.692 [11440] dbg: diag: [...] optional module installed: IO::String, version 1.08
Feb 27 12:18:47.695 [11440] dbg: gpg: Searching for 'gpg'
Feb 27 12:18:47.696 [11440] dbg: util: current PATH is: /usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/opt/cpanel/composer/bin
Feb 27 12:18:47.697 [11440] dbg: util: executable for gpg was found at /usr/bin/gpg
Feb 27 12:18:47.697 [11440] dbg: gpg: found /usr/bin/gpg
Feb 27 12:18:47.697 [11440] dbg: gpg: release trusted key id list: 0C2B1D7175B852C64B3CDC716C55397824F434CE 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
Feb 27 12:18:47.698 [11440] dbg: util: secure_tmpfile created a temporary file /tmp/.spamassassin11440hrXRL4tmp
Feb 27 12:18:47.698 [11440] dbg: channel: attempting channel updates.spamassassin.org
Feb 27 12:18:47.698 [11440] dbg: channel: using existing directory /var/lib/spamassassin/3.004004/updates_spamassassin_org
Feb 27 12:18:47.699 [11440] dbg: channel: channel cf file /var/lib/spamassassin/3.004004/updates_spamassassin_org.cf
Feb 27 12:18:47.699 [11440] dbg: channel: channel pre file /var/lib/spamassassin/3.004004/updates_spamassassin_org.pre
Feb 27 12:18:47.726 [11440] dbg: dns: 4.4.3.updates.spamassassin.org => 1874485, parsed as 1874485
Feb 27 12:18:47.727 [11440] dbg: channel: preparing temp directory for new channel
Feb 27 12:18:47.727 [11440] dbg: channel: created tmp directory /tmp/.spamassassin11440vgvwsHtmp
Feb 27 12:18:47.727 [11440] dbg: generic: lint checking site pre files once before attempting channel updates
Feb 27 12:18:47.727 [11440] dbg: generic: SpamAssassin version 3.4.4
Feb 27 12:18:47.727 [11440] dbg: generic: Perl 5.030000, PREFIX=/usr/local/cpanel/3rdparty/perl/530/lib/perl5, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Feb 27 12:18:47.727 [11440] dbg: config: timing enabled
Feb 27 12:18:47.729 [11440] dbg: config: score set 0 chosen.
Feb 27 12:18:47.730 [11440] dbg: ignore: using a test message to lint rules
Feb 27 12:18:47.731 [11440] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
Feb 27 12:18:47.731 [11440] dbg: config: read file /etc/mail/spamassassin/init.pre
Feb 27 12:18:47.731 [11440] dbg: config: read file /etc/mail/spamassassin/v310.pre
Feb 27 12:18:47.731 [11440] dbg: config: read file /etc/mail/spamassassin/v312.pre
Feb 27 12:18:47.732 [11440] dbg: config: read file /etc/mail/spamassassin/v320.pre
Feb 27 12:18:47.732 [11440] dbg: config: read file /etc/mail/spamassassin/v330.pre
Feb 27 12:18:47.732 [11440] dbg: config: using "/tmp/.spamassassin11440vgvwsHtmp/doesnotexist" for sys rules pre files
Feb 27 12:18:47.732 [11440] dbg: config: using "/tmp/.spamassassin11440vgvwsHtmp/doesnotexist" for default rules dir
Feb 27 12:18:47.733 [11440] dbg: config: using "/tmp/.spamassassin11440vgvwsHtmp/doesnotexist/doesnotexist" for user prefs file
Feb 27 12:18:47.733 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
Feb 27 12:18:47.747 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
Feb 27 12:18:47.756 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
Feb 27 12:18:47.759 [11440] dbg: pyzor: local tests only, disabling Pyzor
Feb 27 12:18:47.759 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
Feb 27 12:18:47.763 [11440] dbg: razor2: local tests only, skipping Razor
Feb 27 12:18:47.763 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
Feb 27 12:18:47.768 [11440] dbg: reporter: local tests only, disabling SpamCop
Feb 27 12:18:47.768 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
Feb 27 12:18:47.771 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
Feb 27 12:18:47.773 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
Feb 27 12:18:47.776 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
Feb 27 12:18:47.779 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::DKIM from @INC
Feb 27 12:18:47.792 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC
Feb 27 12:18:47.804 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTTPSMismatch from @INC
Feb 27 12:18:47.806 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDetail from @INC
Feb 27 12:18:47.809 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::Shortcircuit from @INC
Feb 27 12:18:47.812 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
Feb 27 12:18:47.837 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::BodyEval from @INC
Feb 27 12:18:47.843 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::DNSEval from @INC
Feb 27 12:18:47.852 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTMLEval from @INC
Feb 27 12:18:47.858 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::HeaderEval from @INC
Feb 27 12:18:47.876 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEEval from @INC
Feb 27 12:18:47.884 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayEval from @INC
Feb 27 12:18:47.888 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIEval from @INC
Feb 27 12:18:47.890 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::WLBLEval from @INC
Feb 27 12:18:47.898 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
Feb 27 12:18:47.902 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::Rule2XSBody from @INC
Feb 27 12:18:47.909 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
Feb 27 12:18:47.916 [11440] dbg: plugin: loading Mail::SpamAssassin::Plugin::FreeMail from @INC
Feb 27 12:18:47.927 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x3d88000) implements 'finish_parsing_start', priority 0
Feb 27 12:18:47.928 [11440] dbg: config: finish parsing
Feb 27 12:18:47.928 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x3d88000) implements 'finish_parsing_end', priority 0
Feb 27 12:18:47.928 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::Rule2XSBody=HASH(0x428e660) implements 'finish_parsing_end', priority 0
Feb 27 12:18:47.929 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::FreeMail=HASH(0x3bdcf90) implements 'finish_parsing_end', priority 0
Feb 27 12:18:47.929 [11440] dbg: replacetags: replacing tags
Feb 27 12:18:47.930 [11440] dbg: zoom: loading compiled ruleset from /var/lib/spamassassin/compiled/5.030/3.004004
Feb 27 12:18:47.930 [11440] dbg: FreeMail: no freemail_domains entries defined, disabling plugin
Feb 27 12:18:47.930 [11440] dbg: config: score set 0 chosen.
Feb 27 12:18:47.932 [11440] dbg: dns: EDNS, UDP payload size 4096
Feb 27 12:18:47.932 [11440] dbg: dns: servers obtained from Net::DNS : [8.8.8.8]:53, [8.8.4.4]:53
Feb 27 12:18:47.932 [11440] dbg: dns: nameservers set to 8.8.8.8, 8.8.4.4
Feb 27 12:18:47.932 [11440] dbg: dns: using socket module: IO::Socket::IP version 0.39
Feb 27 12:18:47.932 [11440] dbg: dns: is Net::DNS::Resolver available? yes
Feb 27 12:18:47.933 [11440] dbg: dns: Net::DNS version: 1.21
Feb 27 12:18:47.933 [11440] dbg: config: time limit 300.0 s
Feb 27 12:18:47.934 [11440] dbg: message: main message type: text/plain
Feb 27 12:18:47.934 [11440] dbg: message: ---- MIME PARSER START ----
Feb 27 12:18:47.934 [11440] dbg: message: parsing normal part
Feb 27 12:18:47.935 [11440] dbg: message: storing a body to memory
Feb 27 12:18:47.935 [11440] dbg: message: ---- MIME PARSER END ----
Feb 27 12:18:47.936 [11440] dbg: check: pms new, time limit in 299.997 s
Feb 27 12:18:47.936 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::DNSEval=HASH(0x4041768) implements 'check_start', priority 0
Feb 27 12:18:47.936 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::Rule2XSBody=HASH(0x428e660) implements 'check_start', priority 0
Feb 27 12:18:47.940 [11440] dbg: check: using scoreset 0 in M:S:Pms
Feb 27 12:18:47.940 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x3bdcf18) implements 'check_main', priority 0
Feb 27 12:18:47.940 [11440] dbg: config: trusted_networks are not configured; it is recommended that you configure trusted_networks manually
Feb 27 12:18:47.941 [11440] dbg: metadata: X-Spam-Relays-Trusted:
Feb 27 12:18:47.941 [11440] dbg: metadata: X-Spam-Relays-Untrusted:
Feb 27 12:18:47.941 [11440] dbg: metadata: X-Spam-Relays-Internal:
Feb 27 12:18:47.942 [11440] dbg: metadata: X-Spam-Relays-External:
Feb 27 12:18:47.942 [11440] dbg: check: tagrun - tag AUTHORDOMAIN is now ready, value: compiling.spamassassin.taint.org
Feb 27 12:18:47.943 [11440] dbg: check: tagrun - tag RELAYSTRUSTED is now ready, value:
Feb 27 12:18:47.943 [11440] dbg: check: tagrun - tag RELAYSUNTRUSTED is now ready, value:
Feb 27 12:18:47.943 [11440] dbg: check: tagrun - tag RELAYSINTERNAL is now ready, value:
Feb 27 12:18:47.943 [11440] dbg: check: tagrun - tag RELAYSEXTERNAL is now ready, value:
Feb 27 12:18:47.944 [11440] dbg: check: tagrun - tag LANGUAGES is now ready, value: <UNDEF>
Feb 27 12:18:47.944 [11440] dbg: message: no encoding detected
Feb 27 12:18:47.944 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x3bdd998) implements 'parsed_metadata', priority 0
Feb 27 12:18:47.944 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::Shortcircuit=HASH(0x3f14908) implements 'parsed_metadata', priority 0
Feb 27 12:18:47.945 [11440] dbg: dns: is DNS available? 0
Feb 27 12:18:47.945 [11440] dbg: check: tagrun - tag SC is now ready, value: CODE(0x437c048)
Feb 27 12:18:47.946 [11440] dbg: check: tagrun - tag SCRULE is now ready, value: CODE(0x4380b78)
Feb 27 12:18:47.946 [11440] dbg: check: tagrun - tag SCTYPE is now ready, value: CODE(0x4380c08)
Feb 27 12:18:47.946 [11440] dbg: rules: local tests only, ignoring RBL eval
Feb 27 12:18:47.946 [11440] dbg: check: check_main, time limit in 299.987 s
Feb 27 12:18:47.950 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::Shortcircuit=HASH(0x3f14908) implements 'have_shortcircuited', priority 0
Feb 27 12:18:47.951 [11440] dbg: dns: harvest_dnsbl_queries
Feb 27 12:18:47.952 [11440] dbg: check: is spam? score=0 required=5
Feb 27 12:18:47.952 [11440] dbg: check: tests=
Feb 27 12:18:47.952 [11440] dbg: check: subtests=
Feb 27 12:18:47.953 [11440] dbg: timing: total 220 ms - init: 202 (92.2%), parse: 2.4 (1.1%), extract_message_metadata: 6 (2.7%), get_uri_detail_list: 3.9 (1.8%)
Feb 27 12:18:47.953 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x3bd6040) implements 'finish_tests', priority 0
Feb 27 12:18:47.954 [11440] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x3bdcf18) implements 'finish_tests', priority 0
Feb 27 12:18:47.955 [11440] dbg: generic: lint check of site pre files succeeded, continuing with channel updates
Feb 27 12:18:47.955 [11440] dbg: channel: protocol family available: inet,inet6
Feb 27 12:18:47.956 [11440] dbg: channel: no mirror file /var/lib/spamassassin/3.004004/updates_spamassassin_org/MIRRORED.BY, will fetch it
Feb 27 12:18:47.956 [11440] dbg: channel: DNS lookup on mirrors.updates.spamassassin.org
Feb 27 12:18:47.974 [11440] dbg: http: url: http://spamassassin.apache.org/updates/MIRRORED.BY
Feb 27 12:18:47.974 [11440] dbg: http: downloading to: /var/lib/spamassassin/3.004004/updates_spamassassin_org/MIRRORED.BY, new
Feb 27 12:18:47.975 [11440] dbg: util: executable for curl was found at /usr/bin/curl
Feb 27 12:18:47.975 [11440] dbg: http: /usr/bin/curl -s -L -O --remote-time -g --max-redirs 2 --connect-timeout 30 --max-time 300 --fail -o MIRRORED.BY -A sa-update/3.4.4 / svn1869639/3.4.4 -- http://spamassassin.apache.org/updates/MIRRORED.BY
Feb 27 12:19:08.012 [11440] dbg: http: process [11441], exit status: exit 7
Feb 27 12:19:08.013 [11440] dbg: channel: no mirror data available for channel updates.spamassassin.org from http://spamassassin.apache.org/updates/MIRRORED.BY
error: no mirror data available for channel updates.spamassassin.org
channel 'updates.spamassassin.org': MIRRORED.BY file contents were missing, channel failed
Feb 27 12:19:08.013 [11440] dbg: generic: cleaning up temporary directory/files
Feb 27 12:19:08.014 [11440] dbg: generic: cleaning directory /tmp/.spamassassin11440vgvwsHtmp
Feb 27 12:19:08.014 [11440] dbg: diag: updates complete, exiting with code 4
Cpanel::Exception::ProcessFailed::Error/(XID dtwpvx) “/usr/local/cpanel/3rdparty/perl/530/bin/sa-update” reported error code “4” when it ended:
 at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 150.
        Cpanel::ChildErrorStringifier::die_if_error(Cpanel::SafeRun::Object=HASH(0x2c719f8)) called at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 557
        Cpanel::SafeRun::Object::die_if_error(Cpanel::SafeRun::Object=HASH(0x2c719f8)) called at /usr/local/cpanel/scripts/sa-update_wrapper line 58
        main::run_saupdate() called at /usr/local/cpanel/scripts/sa-update_wrapper line 103
Cpanel::Exception::ProcessFailed::Error/(XID jxypxe) “/usr/local/cpanel/scripts/sa-update_wrapper” reported error code “255” when it ended:
 at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 150.
        Cpanel::ChildErrorStringifier::die_if_error(Cpanel::SafeRun::Object=HASH(0x22c9468)) called at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 557
        Cpanel::SafeRun::Object::die_if_error(Cpanel::SafeRun::Object=HASH(0x22c9468)) called at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 538
        Cpanel::SafeRun::Object::new_or_die("Cpanel::SafeRun::Object", "program", "/usr/local/cpanel/scripts/sa-update_wrapper", "stdout", GLOB(0x22bdc08), "stderr", GLOB(0x22bdc68)) called at /scripts/update_spamassassin_config line 179
        eval {...} called at /scripts/update_spamassassin_config line 178
        scripts::update_spamassassin_config::script("scripts::update_spamassassin_config") called at /scripts/update_spamassassin_config line 61
It seems like the server won't resolve spamassassin.apache.org.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
it does appear that your server is unable to resolve spamassassin.apache.org - I found the following from their own forums that might be helpful: SpamAssassin - Users - error: unable to refresh mirrors file for channel updates.spamassassin.org

Code:
[[email protected] templates]# dig any spamassassin.apache.org +short
95.216.24.32
40.79.78.1
2a01:4f9:2a:185f::2
"v=spf1 a:mail.apache.org -all"
10 mx1-ec2-va.apache.org.
10 mx1-he-de.apache.org.
20 mx1-lw-us.apache.org.
You might ensure you can reach the A and/or AAAA records listed. The user in the forums there noted that they had a firewall rule blocking one of the IP's
 

A Hartonian

Active Member
May 22, 2018
44
10
8
Oman
cPanel Access Level
DataCenter Provider
I ran:
Code:
dig any spamassassin.apache.org +short
and added all these IP addresses in whitelist (including the hostnames displayed). Except my server cannot ping to mx1-he-de.apache.org
Could that be the cause of this problem?

This is the email I am constantly receiving. Number of restart attempts 1,071 times :-s

Service Name​
spamd​
Service Status​
failed ⛔
Notification​
The service “spamd” appears to be down.​
Service Check Method​
The system’s command to check or to restart this service failed.​
Number of Restart Attempts​
1,071​
Service Check Raw Output​
Died at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 194.
...propagated at /usr/local/cpanel/Cpanel/ServiceManager/Services/Spamd.pm line 206.

The subprocess “/usr/local/cpanel/scripts/restartsrv_spamd” reported error number 69 when it ended.​
Startup Log​
Mar 06 01:54:47 just.hostname.tld systemd[1]: Starting Apache SpamAssassin™ deferral daemon...
Mar 06 01:54:47 just.hostname.tld spamd[478870]: config: no rules were found! Do you need to run 'sa-update'?
Mar 06 01:54:57 just.hostname.tld systemd[1]: Can't open PID file /var/run/spamd.pid (yet?) after start: No such file or directory
Mar 06 01:54:57 just.hostname.tld systemd[1]: Failed to start Apache SpamAssassin™ deferral daemon.
Mar 06 01:54:57 just.hostname.tld systemd[1]: Unit spamd.service entered failed state.
Mar 06 01:54:57 just.hostname.tld systemd[1]: spamd.service failed.​
 

A Hartonian

Active Member
May 22, 2018
44
10
8
Oman
cPanel Access Level
DataCenter Provider
It could definitely be, you might stop your firewall momentarily and see if this is resolved when it is not running, this would rule out the firewall blocking it.
I did not do anything. This morning everything started working automagically. Ping is back to mx1-he-de.apache.org , I assume this was not from our side. But I can confirm the reason was the lack of connection to one of the MXs.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
I'd lean more toward it being a network issue, I was able to connect from my test server yesterday without issue. I'm glad to hear that it's working this morning though.