[exim] customizing a router - exim 4.63 debian testing

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marco Kammerer
Dátum:  
Címzett: exim-users
Tárgy: [exim] customizing a router - exim 4.63 debian testing
Hello

I have a exim 4.63 with SA Exim and Clamav up and running and forward all
spamemails to a spezial "spambox". therefore i have i use this

accept
        condition = ${if <{$message_size}{100k}{1}{0}}
        spam = nobody
        set acl_m1 = spambox@???
        delay = 15s


and i added tthe router

/etc/exim4/conf.d/router/050_exim4-config_spam_redirect
spam_redirect:
debug_print = "R: scan_redirect for $domain"
driver = redirect
condition = ${if def:acl_m1 {1}{0}}
headers_add = X-Original-Recipient: $local_part@$domain
data = $acl_m1
redirect_router = hubbed_hosts


I want to have this "redirect" working if i have the domain the email was
sent to is listed in a file called

in CONFDIR/domain_not_to_spambox

i trieded around with this

domain = "${if exists{CONFDIR/domain_not_to_spambox}\
                       {partial-lsearch;CONFDIR/domain_not_to_spambox}\
                        fail}"


it is from the hubbedhosts but it is not working.

Thanks for helping

Marco