The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Internal mail

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

  1. tgibobby

    tgibobby Active Member

    Joined:
    Apr 12, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  3. nisse

    nisse Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    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:
    36
    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!
     
Loading...

Share This Page