Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
What have you tried so far? –  Drew Khoury Feb 26 '14 at 21:17
yes, it worked as I explained below. –  poderot Jun 1 '14 at 12:51

2 Answers 2

  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:

in main.cf

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.