Re: [Exim] decision to reject host based on local recipient

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Roman Matiyenko
CC: exim-users
Assunto: Re: [Exim] decision to reject host based on local recipient
On Mon, 12 Nov 2001, Roman Matiyenko wrote:

> How to configure exim so that it rejects (SMTP) all hosts that are not
> local if the local recipient matches certain pattern?


A message may have more than one recipient. So you can't reject hosts.
You have to reject recipients.

> recipients_reject_except and recipients_reject_except_senders rather
> accept hosts than reject.


You can use them with negative patterns. For example,

recipients_reject_except = !x@???

However, another way to do what you want is to turn on receiver_verify,
and put this as your first director:

verify_reject:
  driver = smartuser
  verify_only
  verify_recipient
  fail_verify
  domains = ......     If needed
  local_parts = pattern : pattern : pattern



-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.