Re: [exim] change username for mail only

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Phil Pennock
日付:  
To: Jay Rouman
CC: exim-users
題目: Re: [exim] change username for mail only
On 2006-02-26 at 17:19 -0500, Jay Rouman wrote:
> Is there a simple way to change a username for received mail only?


Block it in a RCPT ACL but still route it normally.

Aliases handle the externally visible value, you route it normally to
the "real" user, but the real user can't be directly sent to if that
address is explicitly rejected at SMTP time.

Spec section 39 on ACLs, 39.20 on ACL conditions.

acl_smtp_rcpt = acl_check_rcpt
#[...]
begin acl

acl_check_rcpt:
#[...]
  deny    message       = No such user
          domains       = +local_domains
          local_parts   = lsearch;MAILCONFDIR/reject_lhs_remote
#[...]


I use lsearch there because you can then put a custom message in and
make the value of "message =" be a ${lookup...} result, with an
appropriate default.

Then normal routing lets the mail be delivered to the user.

-Phil