X7ROOT File Manager
Current Path:
/usr/share/spamassassin
usr
/
share
/
spamassassin
/
📁
..
📄
10_default_prefs.cf
(8.48 KB)
📄
10_hasbase.cf
(2.37 KB)
📄
20_advance_fee.cf
(7.43 KB)
📄
20_aux_tlds.cf
(8.8 KB)
📄
20_body_tests.cf
(6.84 KB)
📄
20_compensate.cf
(1.85 KB)
📄
20_dnsbl_tests.cf
(9.5 KB)
📄
20_drugs.cf
(14.7 KB)
📄
20_dynrdns.cf
(11.22 KB)
📄
20_fake_helo_tests.cf
(8.31 KB)
📄
20_freemail.cf
(2.94 KB)
📄
20_freemail_domains.cf
(41.82 KB)
📄
20_head_tests.cf
(25.74 KB)
📄
20_html_tests.cf
(10.27 KB)
📄
20_imageinfo.cf
(5.16 KB)
📄
20_mailspike.cf
(2.6 KB)
📄
20_meta_tests.cf
(3.25 KB)
📄
20_net_tests.cf
(1.83 KB)
📄
20_phrases.cf
(7.98 KB)
📄
20_porn.cf
(2.01 KB)
📄
20_ratware.cf
(15.59 KB)
📄
20_uri_tests.cf
(5.54 KB)
📄
20_vbounce.cf
(18.82 KB)
📄
23_bayes.cf
(2.49 KB)
📄
25_accessdb.cf
(1.51 KB)
📄
25_antivirus.cf
(1.5 KB)
📄
25_asn.cf
(1.51 KB)
📄
25_dcc.cf
(2.27 KB)
📄
25_dkim.cf
(4.3 KB)
📄
25_hashcash.cf
(2.86 KB)
📄
25_pyzor.cf
(1.28 KB)
📄
25_razor2.cf
(3.31 KB)
📄
25_replace.cf
(7.57 KB)
📄
25_spf.cf
(3.35 KB)
📄
25_textcat.cf
(1.73 KB)
📄
25_uribl.cf
(10.14 KB)
📄
30_text_de.cf
(27.12 KB)
📄
30_text_fr.cf
(19.89 KB)
📄
30_text_it.cf
(1.81 KB)
📄
30_text_nl.cf
(20.94 KB)
📄
30_text_pl.cf
(17.34 KB)
📄
30_text_pt_br.cf
(44.46 KB)
📄
50_scores.cf
(36.92 KB)
📄
60_adsp_override_dkim.cf
(9.02 KB)
📄
60_awl.cf
(1.27 KB)
📄
60_shortcircuit.cf
(2.13 KB)
📄
60_whitelist.cf
(4.87 KB)
📄
60_whitelist_dkim.cf
(6.05 KB)
📄
60_whitelist_spf.cf
(3.5 KB)
📄
60_whitelist_subject.cf
(1.87 KB)
📄
72_active.cf
(199.42 KB)
📄
72_scores.cf
(9.65 KB)
📄
73_sandbox_manual_scores.cf
(2.61 KB)
📄
STATISTICS-set0-72_scores.cf.txt
(1.46 KB)
📄
STATISTICS-set1-72_scores.cf.txt
(1.46 KB)
📄
STATISTICS-set2-72_scores.cf.txt
(0 B)
📄
STATISTICS-set3-72_scores.cf.txt
(0 B)
📄
languages
(99.1 KB)
📄
local.cf
(2.16 KB)
📄
regression_tests.cf
(2.71 KB)
📄
sa-update-pubkey.txt
(4.67 KB)
📄
sa-update.cron
(3.07 KB)
📄
user_prefs.template
(1.83 KB)
Editing: sa-update.cron
#!/bin/bash # *** DO NOT MODIFY THIS FILE *** # # /etc/mail/spamassassin/channel.d/*.conf # Place files here to add custom channels. # # Proceed with sa-update if spam daemon is running or forced in /etc/sysconfig/sa-update unset SAUPDATE OPTIONS DEBUG NOTIFY_UPD [ -f /etc/sysconfig/sa-update ] && . /etc/sysconfig/sa-update [ "$SAUPDATE" = "no" ] && exit 0 for daemon in spamd amavisd spampd; do /usr/bin/pgrep -f $daemon >& /dev/null [ $? -eq 0 ] && SAUPDATE=yes done systemctl --quiet is-active mimedefang.service; [ $? -eq 0 ] && SAUPDATE=yes # Skip sa-update if daemon not detected [ -z "$SAUPDATE" ] && exit 0 # sa-update must create keyring if [ ! -d /etc/mail/spamassassin/sa-update-keys ]; then sa-update fi # Initialize Channels and Keys CHANNELLIST="" KEYLIST="" # Process each channel defined in /etc/mail/spamassassin/channel.d/ for file in /etc/mail/spamassassin/channel.d/*.conf; do [ ! -f "$file" ] && continue # Validate config file PREFIXES="CHANNELURL KEYID BEGIN" for prefix in $PREFIXES; do if ! grep -q "$prefix" $file; then echo "ERROR: $file missing $prefix" exit 255 fi done . "$file" #echo "CHANNELURL=$CHANNELURL" #echo "KEYID=$KEYID" CHANNELLIST="$CHANNELLIST $CHANNELURL" KEYLIST="$KEYLIST $KEYID" sa-update --import "$file" done # Sleep random amount of time before proceeding to avoid overwhelming the servers sleep $(expr $RANDOM % 7200) unset arglist # Run sa-update on each channel, restart spam daemon if success for channel in $CHANNELLIST; do arglist="$arglist --channel $channel" done for keyid in $KEYLIST; do arglist="$arglist --gpgkey $keyid" done /usr/bin/sa-update $OPTIONS $arglist status=$? now=`date +"%d-%b-%Y %T"` # cron runs this script tee /var/log/sa-update.log # We want to always write to the log, but only send mail # as configured. if [ $status -eq 0 ]; then if [ -n "$DEBUG" -o -n "$NOTIFY_UPD" ]; then echo "$now: SpamAssassin: Update processed successfully" else echo "$now: SpamAssassin: Update processed successfully" >>/var/log/sa-update.log fi systemctl condrestart spamassassin.service >& /dev/null [ -f /usr/lib/systemd/system/amavisd.service ] && systemctl condrestart amavisd.service >& /dev/null systemctl --quiet is-active mimedefang.service; [ $? -eq 0 ] && systemctl reload mimedefang.service >& /dev/null [ -f /usr/lib/systemd/system/spampd.service ] && systemctl condrestart spampd.service >& /dev/null exit $status fi if [ $status -eq 1 ]; then if [ -n "$DEBUG" ]; then echo "$now: SpamAssassin: No update available" else echo "$now: SpamAssassin: No update available" >>/var/log/sa-update.log fi exit $status fi if [ $status -eq 2 ]; then echo "$now: SpamAssassin: Problem applying update - pre files failed lint check" exit $status fi if [ $status -eq 4 ]; then echo "$now: SpamAssassin: Update available, but download or extract failed" exit $status fi echo "$now: SpamAssassin: Unknown error code $status from sa-update" exit $status
Upload File
Create Folder