Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Blocking outgoing mails to domain for list user in exim

Discussion in 'E-mail Discussion' started by roliks94, Feb 27, 2019.

  1. roliks94

    roliks94 Registered

    Joined:
    Feb 27, 2019
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Hey! I need help! I trying to create custom ACL rule in Exim. I need to block outgoing emails to a certain domain for list user. Below is a description of what I do but the result is not working.

    On the e-mail server mail.test.lv is created folder /home/emailrestrict/ there is created a restrictedtests file, which contains e-mail addresses which need to limit.

    In restrictedtests file is line per line written email: [email protected] [email protected]

    Next i open Exim Configuration Manager/Advanced Editor and select BEGINACL and in this section, I add this:

    acl_emailrestrict_restrictedtests:
    deny condition = $ {lookup {$ sender_address} nwildlsearch {/ home / emailrestrict / restrictedtests} {yes}}
    domains =!

    acl_smtp_rcpt = acl_smtp_rcpt

    acl_check_rcpt:

    deny
    message = The $ sender_address is prohibited to send mail to the $ domain
    senders = lsearch; / home / emailrestrict / restricted_sender
    domains = lsearch; / home / emailrestrict / restricted_domains

    If this records correct? Or I need to change it, or create different configuration? Myb some have already creat example like I need to create?

    Already Thanks!
     
    #1 roliks94, Feb 27, 2019
    Last edited by a moderator: Feb 27, 2019
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice