Как его добавить в белый список/исключение?
И как сделать что бы спам не ложился вот сюда /var/quarantine/spam/spam.$tod_logfile - а падал скажем в руту в ящик или в ящик spam?
Код: Выделить всё
[root@gate /var/mail]# exim -bV
Exim version 4.76 #0 (FreeBSD 8.2) built 09-Jun-2011 14:49:45
Copyright (c) University of Cambridge, 1995 - 2007
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning DKIM Old_Demime
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /usr/local/etc/exim/configureКод: Выделить всё
[root@gate /usr/local/etc/mail/spamassassin]# cat local.cf
# Add *****SPAM***** to the Subject header of spam e-mails
#
rewrite_header Subject *****SPAM*****
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1
# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
#
trusted_networks 192.168.0.0
# Set file-locking method (flock is not safe over NFS, but is faster)
#
# lock_method flock
# Set the threshold at which a message is considered spam (default: 5.0)
#
required_score 5.0
# Use Bayesian classifier (default: 1)
#
use_bayes 1
# Bayesian classifier auto-learning (default: 1)
#
bayes_auto_learn 1
# Set headers which may provide inappropriate cues to the Bayesian
# classifier
#
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
# Some shortcircuiting, if the plugin is enabled
#
ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
#
# default: strongly-whitelisted mails are *really* whitelisted now, if the
# shortcircuiting plugin is active, causing early exit to save CPU load.
# Uncomment to turn this on
#
shortcircuit USER_IN_WHITELIST on
shortcircuit USER_IN_DEF_WHITELIST on
shortcircuit USER_IN_ALL_SPAM_TO on
shortcircuit SUBJECT_IN_WHITELIST on
# the opposite; blacklisted mails can also save CPU
#
shortcircuit USER_IN_BLACKLIST on
shortcircuit USER_IN_BLACKLIST_TO on
shortcircuit SUBJECT_IN_BLACKLIST on
# if you have taken the time to correctly specify your "trusted_networks",
# this is another good way to save CPU
#
shortcircuit ALL_TRUSTED on
# and a well-trained bayes DB can save running rules, too
#
shortcircuit BAYES_99 spam
shortcircuit BAYES_00 ham
ok_languages ru en
ok_locales ru en
endif # Mail::SpamAssassin::Plugin::ShortcircuitКод: Выделить всё
warn message = X-Quarantine-Me-Spam: SA score $spam_score\n\
X-SA-Report: $spam_report
log_message = Spam score $spam_score > 5
spam = spamd/defer_ok
condition = ${if >{$spam_score_int}{50}{1}{0}}
.....
check_spam:
driver = redirect
condition = ${if def:h_X-Quarantine-Me-Spam: {1}{0}}
headers_add = X-Quarantined-Spam: $h_X-Quarantine-Me-Spam:
headers_remove = X-Quarantine-Me-Spam
data = /var/quarantine/spam/spam.$tod_logfile
file_transport = address_file
no_more
.....
