Re: [exim] Sub-domain blocking

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Carinus Carelse
CC: exim-users
Sujet: Re: [exim] Sub-domain blocking
On Thu, 24 Feb 2005, Carinus Carelse wrote:

> Can I set up exim to accept mail from domain.com but
> reject mail from host.domain.com.


Yes. Exim's default configuration only accepts email sent to domains in
the local_domains list, so you can just omit host.domain.com from that
list. If you are worried about email claiming to be from that host, you
can add it to your local_domains list, give it an MX pointing to your Exim
box, and add a router like:

  reject:
    driver = redirect
    domains = host.domain.com
    data = :fail: Invalid email domain
    allow_fail


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}