Deny user to send email for specific domain
Hello!
Does anybody have a ready-made example or a similarly designed filter to block certain users who are very much, to deny access to emails to specific domains? Can anyone help with this?
-
Your question doesn't make sense. Could you elaborate please. 0 -
I Your question doesn't make sense. Could you elaborate please.
Okay. I will try to example you. I have 100 users with emails example@domain.com and example1@domain.com etc. I need them to block outgoing e-mails to specification domain like @yahoo.com and @google.com And the question is what I need to write in the config to do this? The best way to be if all email senders write to file, and then make a config which allow doing this.0 -
Hello @roliks94 The following may be helpful: Thanks! 0 -
I'd remove the and statement and give it a shot. # cat /usr/local/cpanel/etc/exim/sysfilter/options/test if("$h_to:, $h_cc:, $h_bcc:" contains "gmail.com") then fail endif
You'd want to put this in the exim system filter and instructions on modifying that can be found here: How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation0
Please sign in to leave a comment.
Comments
5 comments