-
Notifications
You must be signed in to change notification settings - Fork 179
Q9802
Nigel Metheringham edited this page Nov 29, 2012
·
2 revisions
How do I configure Exim so that it sends mail to the outside world only from a restricted list of our local users?
You will need to have a convenient way of checking the list. If it is only a handful of users, you could just list them inline. Otherwise, you need to put them in a file or database. Let's suppose you've just got a list in a file. Put this as your first router:
check_outgoing:
driver = redirect
domains = ! +local_domains
senders = ! : ! lsearch;/etc/permitted/senders
allow_fail
data = :fail: you are not allowed to send outside
The senders should be listed as complete addresses, with both a local
part and a domain. For a large list, use a DBM or cdb file instead, or a
database. The first item in the senders
list is empty, to match the
empty sender. This is necessary because bounce messages have null
senders.
- How do I configure Exim as part of TPC
- How do I configure Exim so that it sends mail to the outside world only
- A site for which I provide secondary MX is down for some time. Is there
- We want to be able to temporarily lock out a user by disabling the
- How can I configure Exim so that all mails addressed to
- How do I get exim not to add a Sender: header to locally originated
- Is there any way to have messages sent to a specific local address
- I have a mailing list exploder on one host, and three other hosts where
- Can I configure Exim so that my gateway host sends a copy of each
- How can I implement SMTP-after-POP > with Exim?
- I would like to tap off > a proportion of real mail traffic from my live mail server to use in
- How can I lookup data from a single file using both single IP addresses