[Exim] condition problem: fail user does not work

Góra strony
Delete this message
Reply to this message
Autor: Thomas Baumann
Data:  
Dla: exim-users@exim.org
Temat: [Exim] condition problem: fail user does not work
Hello list,

I use exim 3.36 as a gateway with no local_domains, and
i tried to use several conditions, but failed_user_director is not touched,
but amavis is touched. But WHY not my failed_user_director ?
When I comment local_domains (#local_domains =), then the
director gets used. (i.e. when sending an email to a localpart mentioned
inn /etc/exim/maps/failuser then mailerdaemon creates a "unknown recipient"
message).
But I WANT use exim as a relay!

Thanks for any help in advance.

Here are snippets of my config:

qualify_domain = mydom.org
relay_domains = mydom.org
local_domains =

# transports
amavis:
headers_add = "X-added: amavis ${tod_log}\n"
driver = pipe
command = "/usr/sbin/amavis -f <${sender_address}> -d ${pipe_addresses}"
prefix =
suffix =
check_string =
escape_string =
return_output = false
return_path_add = true
user = amv
group = vscan

remote_smtp:
headers_remove = "X-List:Bcc:Received"
driver = smtp

# directors (order does matter)
failed_user:
driver = smartuser
new_address = "${lookup{$local_part} \
lsearch{/etc/exim/maps/fail_user}{:fail:\"unknown recipient\"}{$local_part}}"

amavis_director:
#condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
# I changed the above to the one below because I have a second check
# for spam after the antivirus. This is needed to avoid an infinite
# loop - do not virus scan again when the mail comes back from the
# spam checker:
condition = "${if and { {!def:header_X-Virus-Scanned:} {!eq
{$received_protocol}{scanned-ok}} } {1}{0}}"
driver = smartuser
transport = amavis


--
Thomas Baumann // tirili+list.exim@???