From: Wietse Venema (no email)
Date: Thu Aug 01 2002 - 07:42:49 EDT
Ben Rosengart:
> On Wed, Jul 31, 2002 at 07:08:05PM -0400, Wietse Venema wrote:
> >
> > /etc/postfix/main.cf:
> > smtpd_client_restrictions = hash:client, reject
> > smtpd_recipient_restrictions = hash:recipient, reject
> >
> > client:
> > 1.2.3.4 OK
> >
> > recipient:
> > OK
> >
> > This accepts mail only if the recipient and the client are whitelisted.
>
> Ralf will be so disappointed in me, but I think this is the best.
> One last question on this topic: is there any way to tell Postfix to
> send a 450 when the recipient lookup fails without changing the response
> code when the client lookup fails? I found "reject_code", but that
> covers both. I can live with that, but if there's a simple solution,
> I'd like to know.
The right solution is to introduce "defer" besides "permit" and "reject".
The workaround is
/etc/postfix/main.cf:
smtpd_recipient_restrictions = hash:recipient regexp:defer
defer:
/./ 450 Try again later
Kludges...
Wietse
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|