On Sat, 25 Aug 2007, Patrick Shanahan wrote:
* Boyd Lynn Gerber
[08-25-07 14:43]: Thanks solved on the postfix list.
And kept it a secret, or had to sign a nda ???
In main.cf I had to have
smtpd_restriction_classes = local_only
local_only =
# do not allow relaying
reject_unauth_destination
# accept only from mynetworks
check_client_access cidr:/etc/postfix/private_ip.cidr
# reject from other places
reject
smtpd_recipient_restrictions =
check_client_access cidr:/etc/postfix/clients_local_only
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination
check_recipient_access pcre:/etc/postfix/private_address_only.pcre
smtpd_sender_restrictions =
check_sender_access pcre:/etc/postfix/private_address_only.pcre
check_recipient_access pcre:/etc/postfix/private_address_only.pcre
hash:/etc/postfix/access
------------------------private_address_only.pcre----------------------
/^bk.*@hbboys\.com$/ local_only
------------------------private_address_only.pcre----------------------
---------------------------private_ip.cidr-----------------------------
192.168.0.0/16 OK
---------------------------private_ip.cidr-----------------------------
-----------------------------clients_local_only------------------------
192.168.0.0/16 local_only
-----------------------------clients_local_only------------------------
--
Boyd Gerber