From: Wietse Venema (no email)
Date: Wed Jul 31 2002 - 19:08:05 EDT
Ben Rosengart:
> This should be obvious, but I'm having trouble with it.
>
> I want to check the client's IP against a list of addresses, and
> if it's not there, reject the message. Then I want to check the
> recipient address against a list, and again, if it's not there,
> reject. If both lookups succeed, I want to accept the mail.
>
> It just occurred to me that maybe I can do this like so:
>
> smtpd_recipient_restrictions = check_client_access hash:client
>
> and, in client:
>
> i.p.add.ress check_recipient_access hash:recip,reject
>
> Will that work? Is there a cleaner way?
/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.
Wietse
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|