Re: [exim] What to set as last router

Pàgina inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
A: Rainer Sigl
CC: exim-users
Assumpte: Re: [exim] What to set as last router
On Tue, 4 Jul 2006, Rainer Sigl wrote:

> what to set as last router that the rest of addresses is bounced as
> 'unknown user'? in the moment my last router processes the mailing
> lists. Here I have included a errors_to statement to send me specific
> messages if there are problems with the lists and not the sender. But
> now, because this is the last router, all unknown user emails are
> delivered to me too


Your problem is more than just the errors_to setting. If the errors_to
option is causing bounces to go to you then the router must be accepting
the invalid addresses. You should check its preconditions.

My last router is currently as follows. This is effectively equivalent to
having the cannot_route_message on the previous router (which is the style
used in the default configuration), but I prefer to keep the final
deny-all separate from routers that acccept addresses. In the past this
router has used :fail: but I switched to cannot_route_message for reasons
of whitespace, hence the odd formatting...

unknown_user:
  driver        = redirect
  data                  = :unknown:
  cannot_route_message  = \
        <${local_part}@${domain}> is not a known user on this system;\
        \n    see http://www.cam.ac.uk/cs/email/bounce.html


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}