[Exim] redirect_router

Startseite
Nachricht löschen
Nachricht beantworten
Autor: BlackHawk
Datum:  
To: exim-users
Alte Treads: Re: [Exim] Exim4 and SpamAssassin
Betreff: [Exim] redirect_router
Hi guys,

i have some problems with "redirect_router" as specified in exiscan patch i use scan_redirect router to forward to spam mailbox
but it doesn't goes on with others next routers...all mails still in queue until next queue run.

What's wrong?

Thanks

Rick

system_aliases:
driver = redirect
allow_defer
allow_fail
data = ${lookup{$local_part}lsearch{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe
retry_use_local_part

scan_redirect:
     driver = redirect
     condition = ${if def:h_X-Redirect-To: {1}{0}}
     headers_add = X-Original-Recipient: $local_part@$domain
     data = $h_X-Redirect-To:
     headers_remove = X-Redirect-To
     redirect_router = local_not_exist


local_not_exist:
  driver = accept
  domains = +local_domains : +relay_to_domains
  condition = "${if or {\
        {!eq {${lookup ldap {ldap:///c=IT?mail?sub?(&(shortname=$local_part))} {$local_part}}}{}}\
        {!eq {${lookup ldap {ldap:///c=IT?mail?sub?(&(mail=$local_part@$domain))} {$local_part@$domain}}}{}}\
        }{0}{1}}"
  retry_use_local_part
  transport = rcpt_not_found_autoreply


local:
driver = accept
domains = +local_domains
retry_use_local_part
transport = internal_smtp

posta_internet:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp