Andrew Hodgson wrote:
Hi,

I am running Postfix on Ubuntu 9.04.

I have a primary MX server which does antispam/av etc, and the Postfix system which is receiving the messages for the mailing lists etc.

I want to stop people from sending directly to the Postfix server, and only allow connections to the relevant domains from the primary MX servers.

Is this possible?

Thanks.

Andrew.


Use a check_client_access map to control what IPs can send mail to your server.

# main.cf
smtpd_client_restrictions =
  check_client_access cidr:/etc/postfix/allowed_clients
  # reject all unlisted clients
  reject


# allowed_clients
192.168.3.0/24 OK
192.0.2.12  OK
...


  -- Noel Jones

Reply via email to