-
Notifications
You must be signed in to change notification settings - Fork 178
Q0309
How can I configure Exim on a firewall machine so that if mail arrives addressed to a domain whose MX points to the firewall, it is forwarded to the internal mail server, without having to have a list of all the domains involved?
As your first router, have the standard dnslookup router from the default configuration, with the added option
self = pass
This will handle all domains whose lowest numbered MX records do not
point to your host. Because of the no_more
setting, if it encounters
an unknown domain, routing will fail. However, if it hits a domain whose
lowest numbered MX points to your host, the self
option comes into
play, and overrides no_more
. The pass
setting causes it to pass the
address on to the next router. (The default causes it to generate an
error.) The only non-local domains that reach the second router are
those with MX records pointing to the local host. Set it up to send them
to the internal mail server like this:
internal:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * internal.server
- What do lowest numbered MX record points to local host and *remote
- Why does Exim say all relevant MX records point to non-existent hosts
- How do I configure Exim to send all messages to a central server? I
- How do I configure Exim to send all non-local mail to a gateway host?
- How can I arrange for mail on my local network to be delivered directly
- How do I configure Exim to send all non-local mail to a central server
- The
route_list
setting^foo$:^bar$ $domain
in a manualroute - I have a domain for which some local parts must be delivered locally,
- How can I configure Exim on a firewall machine so that if mail arrives
- If a DNS lookup returns no MX records why doesn't Exim just bin the
- When a DNS lookup for MX records fails to complete, why doesn't Exim
- Is it possible to use a conditional expression for the host item in a
- I send all external mail to a smart host, but this means that bad
- I have a really annoying intermittent problem where attempts to mail to
- I'd like route all mail with addresses that can't be resolved (the DNS
- I would like to forward all incoming email for a particular domain to
- What I'd like to do is have alternative smart hosts, where the one to be
- Exim won't route to a host with no MX record.
- I have some mails on my queues that are sticking around longer than the
- How can I arrange for all mail to
- How can I tell an Exim router to use only IPv4 or only IPv6 addresses
- How can I reroute all messages bound for 192.168.10.0 and 10.0.0.0 to a