Skip to main content

Deny user to send email for specific domain

Comments

5 comments

  • keat63
    Your question doesn't make sense. Could you elaborate please.
    0
  • roliks94
    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
  • cPanelLauren
    Hello @roliks94 The following may be helpful: Thanks!
    0
  • roliks94
    Hello @roliks94 The following may be helpful:
    0
  • cPanelLauren
    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 Documentation
    0

Please sign in to leave a comment.