|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Michael Tokarev (mjt
tls.msk.ru)Date: Mon Jul 02 2001 - 08:12:50 CDT
Victor Duchovni wrote:
>
> There is a simple trick that solves the "how to reject" problem without
> code changes. The recipients are rejected after the mail is accepted rather
> than in smtpd. Some consider not rejecting invalid addresses in SMTP to be
> a feature (makes it harder to fish for valid recipient addresses), I
> personally think that it is a tolerable misfeature of the approach.
>
> The basic idea is to structure the configuration as follows:
>
> /etc/postfix/main.cf:
> virtual_maps hash:/etc/postfix/virtual, hash:/etc/postfix/nosuch
>
> /etc/postfix/virtual:
> nosuchuser.virtual.domain whatever
> user1
virtual.domain user1-virtual
> user2
virtual.domain user2-virtual
>
> /etc/postfix/nosuch:
>
virtual.domain
nosuchuser.virtual.domain
>
> Known users in virtual.domain get resolved to appropriate local names. Non
> existent users get rewritten to unknown.user
nosuchuser.virtual.domain and
> this is bounced in qmgr/nqmgr.
Oh ma, that *must* be done in qmgr anyway, instead of making this ugly hack.
Qmgr *must* reject mail to non-exited user (or virtual delivery agent for
that matter), there should be no situation like "I don't know what to do
with this destination address" at all (address should either deliver or
bounce).
Regards,
Michael.
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]