RE: [Exim] RE: Queue processing optimization

Pàgina inicial
Delete this message
Reply to this message
Autor: Hochstrasser Benedikt
Data:  
A: exim-users
Assumpte: RE: [Exim] RE: Queue processing optimization
Christian Hertel wrote:

>>>

* Mail recipient is blablabla@??? (Domain is ok, we relay mail
to it but again no possibility to verify the local part because the
mailbox is stored on another server)
<<<

Now that's easy:
[Routers]

relaydomain1:
  driver = manualroute
  domains = relayto.domain1.org
  transport = local_smtp
  route_list = * mx.domain1.org    byname
  condition = ${lookup{$local_part}lsearch{/etc/exim/domain1.txt} {yes}
{no} }


relaydomain2:
  driver = manualroute
  domains = relayto.domain2.org
  transport = local_smtp
  route_list = * mx.domain2.org    byname
  condition = ${lookup{$local_part}lsearch{/etc/exim/domain2.txt} {yes}
{no} }


(...)

reject:
driver = redirect
cannot_route_message = There is no user "$local_part@$domain" on this
system.
data =
${lookup{$local_part@$domain}wildlsearch{/etc/exim/redirect.txt}}
no_more

If the user base on your relay-to domains is extremely unstable you may
want to implement a "live" ldap lookup or some callout as suggested by
Peter Bowyer and others.

That bit of implementation work will pay back 100 times after the first
hour...

--
Ben