[exim] Why there is no headers from SA in relayed mails?

Top Page
Delete this message
Reply to this message
Author: Marcin Mirosław
Date:  
To: exim-users
Subject: [exim] Why there is no headers from SA in relayed mails?
Hi,
I'm wondering why i have no headers from SA in email relayed through
router "relay"? Emails, marked as spam and delivered to local dir, have
headers X-Spam_xxxx . Does driver smtp make changes in headers?

My exim conf looks like this:
acl_check_data:
[...]
warn
spam=nobody
add_header = 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

warn
set acl_m9=ham
spam=nobody:true
condition = ${if >{$spam_score_int}{55}{1}{0}}
set acl_m9 = spam
control = fakereject/rejected after DATA: This is spam, it will be reported

accept

begin routers
spam_fakereject_sc:
driver = accept
condition = ${if > {$spam_score_int}{85}{1}{0}}
transport = spam_transport_sc
unseen

spam_fakereject_kopia:
driver = accept
condition = ${if eq {$acl_m9}{spam}{true}{false}}
transport = spam_transport_kopia

relay:
driver = manualroute
domains = ! +local_domains : +relay_to_domains
transport = remote_smtp
route_data = 192.168.137.7
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

begin transports
remote_smtp:
driver = smtp

spam_transport_sc:
driver = pipe
command = /usr/bin/spamc -C report
delivery_date_add
envelope_to_add

spam_transport_kopia:
driver = appendfile
directory = /data/spam/$tod_logfile/${domain}/
envelope_to_add

Regards.