[Workaround.org] How to restrict domain in postfix ?

J. Bakshi joydeep at infoservices.in
Wed Nov 18 08:24:23 CET 2009


Dear list,

My postfix server is running on a internal test server and we use the
mail server to test the different services which has mail sending
capabilities. I like to tweak the postfix so that it only and only send
emails to a "specific domain" and not anywhere else. To do the same I
have done as follows

#  create the acl file

/etc/postfix/send_domain_restriction
=============================
/^mydomain\.com$/   OK ## replaced the domain with original one ##

/./  REJECT



#2 configure mail.cf

smtpd_sender_restrictions = check_sender_access
pcre:/etc/postfix/access.pcre, reject


#3. create and restart postfix
=============================

restart /etc/init.d/postfix

But still I am able send email to other domains  :-(  It should be
restricted to <mydomain.com>

Could anyone  please enlighten me what is missing here ?


Thanks

-- 
জয়দীপ বক্সী




More information about the Workaround-chitchat mailing list