-
Notifications
You must be signed in to change notification settings - Fork 178
Q0317
Nigel Metheringham edited this page Nov 29, 2012
·
2 revisions
What I'd like to do is have alternative smart hosts, where the one to be used is determined by which ISP I'm connected to.
The simplest way to do this is to arrange for the name of the smart host du jour to be placed in a file when you connect, say /etc/smarthost. Then you can read this file from a manualroute router like this:
smarthost:
driver = manualroute
transport = remote_smtp
route_list = * ${readfile{/etc/smarthost}{}}
The second argument of the readfile
item is a string that replaces any
newline characters in the file (in this case, with nothing). By keeping
the data out of the main configuration file, you avoid having to HUP the
daemon when it changes.
To send all none local domains with an alternative server, you can use the following setting. Add this section as first router.
smarthost:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * you.alternative.server.com
- 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