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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Roman Matiyenko
Cc: exim-users
Asunto: 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.