for spam guard we use spamassassin:
$sudo apt-get install spamassassin
By default after install spamassassin is turn off
Go to /etc/default/
$sudo vim /etc/default/spamassassin
find
ENABLE=0
replace
ENABLE=1
save and exit
$sudo /etc/init.d/spamassassin start [ ok ] Starting spamassassin (via systemctl): spamassassin.service
check process:
$ ps ax |grep spam
26788 ? Ss 0:01 /usr/sbin/spamd -d --pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5 --helper-home-dir
26789 ? S 0:00 spamd child
26790 ? S 0:00 spamd child
$sudo netstat -anp|grep spam
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 26788/spamassassin.
tcp6 0 0 ::1:783 :::* LISTEN 26788/spamassassin.
all good
go to exim config file
find this section:
spamd_address = 127.0.0.1 783
#and next:
# here check spam and get score
warn spam = Debian-exim:true
!hosts = +relay_from_hosts
add_header = X-Spam-Flag: YES\n\
X-Spam_score: $spam_score\n\
X-Spam_score_int: $spam_score_int\n\
X-Spam_bar: $spam_bar\n\
#X-Spam_report: $spam_report
this is will include in mail letter as header
if needed restart exim.
---
links:
Share on Twitter Share on Facebook
Comments
There are currently no comments
New Comment