[Exim] Re: Reject local users easily

Top Page
Delete this message
Reply to this message
Author: Derrick 'dman' Hudson
Date:  
To: exim-users
Subject: [Exim] Re: Reject local users easily
--
On Mon, Jun 24, 2002 at 03:30:49AM +0200, Pedro Bados wrote:
|
| Hello:

|
| How can I reject the mail to specific local users?


In /etc/aliases put the line

dman: :fail: This user is not allowed to receive mail.

(assuming you have a router/director that checks /etc/aliases)

-D

| I need some parameter such as sender_reject but for recipients
| instead of senders. recipient_reject does not exist.


| Why?


There are other ways.

| Can I do it in the SMTP connection with MAIL TO


No. There isn't a "MAIL TO" command. At the "MAIL FROM" commadn you
don't know who the recipient is. The above alias technique will
reject the recipient at "RCPT TO" time.

| or must I reject it later with some director/transport in the
| message processing?


The director causes it to be rejected because exim will verify local
users before accepting them. If no director accepts the address, or
if a director fails the address, it will be rejected.

-D

--

Pride goes before destruction,
a haughty spirit before a fall.
        Proverbs 16:18


http://dman.ddts.net/~dman/

--
[ Content of type application/pgp-signature deleted ]
--