Rick Duval wrote:
I hope I can explain this corrctly...

I want to allow incoming SMTP email only from authorized users which I already have BUT I don't want the system to accept mail for local users UNLESS it comes from a specific IP address.

I have an outboard spam filter that all my domains mx records point to. Problem is that many spammers ignore the MX record and try to send mail straight to the domain assuming that many will be correct. I want to stop that.

Any help would be appreciated...

Oh, BTW, I'm running postfix through virtualmin.

Thanks

RIck

Here's one way...

# main.cf
smtpd_recipient_restrictions =
  permit_mynetworks
  permit_sasl_authenticated
  check_client_access cidr:/etc/postfix/auth_clients
  reject


# auth_clients
1.2.3.4  permit_auth_destination
2.3.4.5  permit_auth_destination
0.0.0.0/0  REJECT unauthorized client, please use our MX


--
Noel Jones

Reply via email to