[Exim] Director condition question

Góra strony
Delete this message
Reply to this message
Autor: Marc Haber
Data:  
Dla: exim-users
Temat: [Exim] Director condition question
Hi,

for historical reasons, I have an exim host that needs to be reachable
by SMTP from everywhere (MX for a couple of domains), but should only
accept messages for adresses in @example.com if they come in from a
given host (the MX for example.com; the host in question is not listed
in example.com's MX record list).

The following director does this:
|example_bounce:
| debug_print                  = "D: example_bounce for $local_part@$domain"
|  domains                      = example.com
|  condition                     = "${if eq {${lc:$sender_host_name}}{mailgate.example.com}{0}{1}}"
|  driver                       = smartuser
|  new_address                  = ":fail: Mail routing error. This host is not MX for $domain"


This scheme fails when an address for one of the other domains handled
locally on this host is aliased to an example.com address, since the
director fails this address because the message was not delivered via
mailgate.

Can I determine if an address has been generated locally via an alias?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29