Answer the question
In order to leave comments, you need to log in
How to configure the Exim system filter in conjunction with Spamassassin?
Good afternoon, the Exim SMTP server is running in conjunction with the Spamassassin (SA) anti-spam, which is running as a daemon. There is a task to change the heading of letters if SA has found out that the letter is spam. Decided to do through the system filter in Exim'e
configure
...
spamd_address = 127.0.0.1 783
system_filter = /usr/local/etc/exim/sa_exim
...
logfile /var/log/exim/mainlog
if "$message_headers" contain "X-Spam-Flag: Yes"
then
headers add "Old-Subject: $h_subject:"
headers remove "Subject"
headers add "Subject: (*F* SPAM *F*) $h_old-subject:"
logwrite "---Marking as spam---"
endif
Answer the question
In order to leave comments, you need to log in
If I'm not mistaken then X-Spam-Flag: 1, not Yes. But I could be wrong, there is no way to look at their servers right now.
I understand that SA cannot modify the messages in this bundle itself, so it simply checks and reports that the letter is / is not spam to Exim, which in turn, based on this information, must modify the letter as we need. But I don't understand what condition to put in the system filter so that Exim understands that this message is spam.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question