Deny External emails to mailman lists.

mirfan

Active Member
Nov 24, 2008
27
0
51
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 [email protected]

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>
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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?