-
Notifications
You must be signed in to change notification settings - Fork 179
Q0202
Nigel Metheringham edited this page Nov 29, 2012
·
2 revisions
Can I specify a list of domains to explicitly reject?
Set up a named domain list containing the domains in the first section of the configuration, for example:
domainlist reject_domains = list:of:domains:to:reject
You can use this list in an ACL to reject any SMTP recipients in those domains. You can also give a customized error message, like this:
deny message = The domain $domain is no longer supported
domains = +reject_domains
If you also want to reject these domains in messages that are submitted from the command line (not using SMTP), you need to set up a router to do it, like this:
reject_domains:
driver = redirect
domains = +reject_domains
allow_fail
data = :fail: The domain $domain is no longer supported
- How can I arrange that messages larger than some limit are handled by a
- Can I specify a list of domains to explicitly reject?
- How can I arrange to do my own qualification of non-fully-qualified
- Every system has a
nobody
account under which httpd etc run. I would - How can I get Exim to deliver to me locally and everyone else at the
- How can I get Exim to deliver certain domains to a different SMTP port
- Why does Exim lower-case the local-part of a non-local domain when
- I can't get a lookup to work in a domain list. I'm trying this:
- How do I look up multiple LDAP DNs with query-style lookups?