Restricting specific email accounts to send email within their domain.

tabzali

Registered
Jul 11, 2019
1
0
1
Pakistan
cPanel Access Level
Root Administrator
Hello Team Cpanel,

I have been following all the threads for the answer for my subject line but seems like we have been redirected to cpanel documents for this.

Well I have read those too, can you please let me know if the below mentioned configuration is right?
==
if ("$h_from:" contains "[email protected]" && "$h_to:" does not contain "*@example.tld")
then fail
endif
==
 
Last edited by a moderator:

Rodger

Registered
May 21, 2017
1
0
0
Sydney
cPanel Access Level
Website Owner
I have the requirement. want to limit some accounts only send/receive internal email, others can work normal. Where do I need put the script?