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.

Deny External emails to mailman lists.

Discussion in 'E-mail Discussions' started by mirfan, Nov 28, 2011.

  1. mirfan

    mirfan Active Member

    Joined:
    Nov 24, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I have successfully deployed mailman with Exim4. I want no one can send emails to my mailing list except local domain i.e. example.com users. I want to block emails from external hosts and also from pop3 accounts of gmail because some of our users also using gmail by adding pop3 account of example.com.
    Finally i want to allow only my account to send emails from gmail,hotmail, yahoo etc to lists@example.com

    Here is my exim.conf settings for mailman.

    <code>
    domainlist mm_domains = example.com

    mailman_router:
    driver = accept
    domains = +mm_domains
    require_files = /var/lib/mailman/lists/$local_part/config.pck
    local_part_suffix_optional
    local_part_suffix = -admin : \
    -bounces : -bounces+* : \
    -confirm : -confirm+* : \
    -join : -leave : \
    -owner : -request : \
    -subscribe : -unsubscribe
    transport = mailman_transport

    mailman_transport:
    driver = pipe
    command = /usr/lib/mailman/mail/mailman \
    '${if def:local_part_suffix \
    {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
    {post}}' \
    $local_part
    current_directory = /var/lib/mailman
    home_directory = /var/lib/mailman
    user = mailman
    group = mailman
    </code>
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If the router working or it isn't working?
     
  3. mirfan

    mirfan Active Member

    Joined:
    Nov 24, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I'm confused by what you are asking then. Are you stating this for others for future reference rather than asking for assistance?
     
  5. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
  6. mirfan

    mirfan Active Member

    Joined:
    Nov 24, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Well, i am looking for help for this setup.
     
Loading...

Share This Page