[Workaround.org] How to restrict domain in postfix ?
joydeep at infoservices.in
Wed Nov 18 07:35:52 CET 2009
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
/^mydomain\.com$/ OK ## replaced the domain with original one ##
#2 configure mail.cf
smtpd_sender_restrictions = check_sender_access pcre:/etc/postfix/access.pcre, reject
#3. create and restart 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 ?
More information about the Workaround-chitchat