Mailinglist Archive: opensuse (2086 mails)

< Previous Next >
Re: [opensuse] Postfix to stop all email from internet/public IP's to user begining with bk (SOLVED)
  • From: Boyd Lynn Gerber <gerberb@xxxxxxxxx>
  • Date: Sat, 25 Aug 2007 18:18:02 -0600
  • Message-id: <Pine.LNX.4.64.0708251806520.5954@xxxxxxxxxxxxxxx>
On Sat, 25 Aug 2007, Patrick Shanahan wrote:
> * Boyd Lynn Gerber <gerberb@xxxxxxxxx> [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 <gerberb@xxxxxxxxx>
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >