[exim] Exim Relay and Dspam

Góra strony
Delete this message
Reply to this message
Autor: Brent Clark
Data:  
Dla: exim-users
Temat: [exim] Exim Relay and Dspam
Hi All

Im trying to get my exim to act as a relay, but it almost appears as if the
command is being ignore in the transport.

dspam_router:
debug_print = "R: dspam_router for $local_part@$domain"
driver = redirect
allow_defer
allow_fail
domains = dsearch;/etc/exim4/virtual_directory
data =
${expand:${lookup{$local_part}lsearch*@{/etc/exim4/virtual_directory/$domain}}}

   # When to scan a message :
   # - it isn't already flagged as spam from DSPAM
   # - it isn't already scanned
   condition = "${if and { \
                {!def:h_X-My-Dspam:} \
                {!eq {$received_protocol}{local}} \
                {!eq {$received_protocol}{despammed}} \
                { <= {$message_size}{3M}} \
                }\
                {1}{0}}"


headers_add = "X-FILTER-DSPAM: by $primary_hostname on $tod_full"
file_transport = dspam_address_file
pipe_transport = dspam_address_pipe
redirect_router = smarthost_user

# My transports
dspam_address_file:
debug_print = "T: dspam_address_file for $local_part@$domain"
command = "/usr/bin/dspam --source=error --class=spam --user
${lc:$local_part} -f '$sender_address' -oi -oMr despammed -- %u"
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = Debian-exim
log_output = true
message_prefix =
message_suffix =

dspam_address_pipe:
debug_print = "T: dspam_address_pipe for $local_part@$domain"
driver = pipe
#transport_filter = "/usr/bin/dspam --source=error --class=spam --user
${lc:$local_part} -f '$sender_address' -oi -oMr despammed -- %u"
command = "/usr/bin/dspam --source=error --class=spam --user
${lc:$local_part} -f '$sender_address' -oi -oMr despammed -- %u"
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = Debian-exim
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =

If anyone could assist, I would be most grateful.
Regards
Brent Clark