Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need some specific LAN subnets to send e-mail to only my corporate domain such as printers or kiosks. How it could be possible via Postfix?

share|improve this question
yes, it worked as I explained below. – poderot Jun 1 '14 at 12:51
  1. Set up different instances of postfix with the listener in the subnet, set mynetworks to be that subnet, don't allow mail from elsewhere, set the corporate mail domain as a valid relay domain. This is quite simple with check_sender_access.

  2. Create an allowed sender group, with check_sender_access you can allow or disallow by IP or subnet also. Have a look at the access documentation for more information

share|improve this answer

thanks. here is the steps that worked for me:


smtpd_client_restrictions =
      check_client_access hash:/etc/postfix/check_client_access

in check_client_access

192.168.9       OK
192.168         REJECT

and then,

postmap /etc/postfix/check_client_access

service postfix restart

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.