OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Fwd: Limit some user send out and some user send internal only (my script not work)]

supportziptexhk.com
Date: Tue Apr 15 2003 - 18:59:27 CDT


Dear all,

I use following script to limit some user can send internal only and
some user can send outside internet. After I add following script to my
"main.cf" and use "postmap /etc/postfix/allowed_recipients" , "postmap
/etc/postfix/policy_by_senders". I reload load the postfix (postfix
reload). After all, I can't send outsied internet and internal. We also
use "squirrelmail webmail" in same server. Please advice. Thanks a lot.

-- in main.cf --
smtpd_delay_reject = no

smtpd_restriction_classes = may_use_external_mail, only_internal_mail

smtpd_recipient_restrictions = permit_mynetworks
reject_unauth_destination check_client_access
hash:/etc/postfix/policy_by_senders permit

my_use_external_mail = permit

only_internal_mail = check_recipient_access
hash:/etc/postfix/allowed_recipients reject

-- in allowed_recipients --
ziptexhk.com OK

-- in policy_by_senders --
fooziptexhk.com only_internal_mail
supportziptexhk.com may_use_external_mail