http://www.exim.org/eximwiki/ExiscanExamples#head-962411f515d3c420ace6c0672cd70e91224f4355
David O'Brien wrote:
Hello,
Thanks for the reply.
I am quite new at this. I didn't actually know a lot about spamc. Well
I still don't but I have read a little bit about it now.
I am calling SpamAssassin from an Exim ACL.
I have the following lines uncommented in my exim.conf
warn spam = nobody
message = 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
I was thinking that I need to change "nobody" to be the email address of
the recipient... however now I am not so sure.
I see that that '$local_part' and '$domain' variables are not set in
DATA ACL, and this is because you can have multiple recipients to an
email. Therefore it is not possible to change "nobody" to the recipient
email address?
Is this because an email is only scanned once even if it is going to
multiple recipients?
If I change "nobody" to be [EMAIL PROTECTED], then %d and %l do expand
correctly in my log file. So I can see that it works, but I don't know
how to pass the email address to spamd...
So I guess I am a little confused now...
1. It seems logical that you only want to scan an email once, no matter
how many people it is sent to.
2. But if you setup user_prefs, doesn't that mean that an email would be
scanned once for each user based on their preferences?
Tom, I have spamassassin logging to its own log file /var/log/spamassassin
I followed the instructions here and it seems to be working ok :
http://wiki.apache.org/spamassassin/SeparateLogFile
Thanks
David.