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!

Internal mail

Discussion in 'E-mail Discussion' started by tgibobby, Nov 10, 2005.

  1. tgibobby

    tgibobby Active Member

    Joined:
    Apr 12, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    156
    Is there any way to limit certain users not sending email outside its own domain? That is, "internal email only?"
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Possibly, however you would probably need to look into conditional ACL's in the exim configuration over at www.exim.org as it's not something that you can do through cPanel itself.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    156
    Create a file called "internal_only" in the /etc directory containing a list of the users you want to restrict, e.g.
    user@domain1.tld
    *@domain2.tld

    In exim.conf, in the ACL called "check_recipient", add this code:

    Code:
    deny
       senders  = wildlsearch;/etc/internal_only
       !domains = $sender_address_domain
       message  = Mail from $sender_address to other domains is prohibited.
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    Out of interest, why are you looking to do this? It's quite clear that such a feature could be a useful solution to a given problem, however I can't seem to think of a problem that requires such a solution!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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