[Exim] routing certain users to another smtp-relay

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Thomas Baumann
Dátum:  
Címzett: exim-users@exim.org
Tárgy: [Exim] routing certain users to another smtp-relay
Hello list,

how can I route from a lsearch to different relays ?

special_router:
  driver = manualroute
  domains = mydom.com
  transport = remote_smtp
  route_list = * "${if or {\
                          {eq {$local_part@$domain}{user1@???}}\
                          {eq {$local_part@$domain}{user2@???}}\
                          }\
                          {relay1.mydom.com}{other.mydom.com}}"


I know with this all mail to user1@??? or user2@???
gets routed through relay1.mydom.com and any other match gets
routed through other.mydom.com.

But I'd like a lsearch-file better in the form
user1@???:        relay1.mydom.com
user2@???:        relay1.mydom.com
user4@???:        other.mydom.com
other@???:        other.mydom.com


Thanks for any help or ideas in advance.

- tom

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