By default, Distribution list in Zimbra can be sent from anywhere (internal domain and external domain). if you want to restrict from some users or internal domain only, please try this guidance
# Enable Milter
You must enable milter. Login to Zimbra Admin | Configure | Global Settings | MTA. Please checklist on Enable milter server. Next, restart milter services from CLI
su - zimbra zmmilterctl restart zmmilterctl status
# Give the owner to distribution list
Please create/select existing distribution list that want to configure restrict. Edit and give the owner. The following is example email@example.com as the owner against firstname.lastname@example.org distribution list
# Configure restrict
– Please login to webmail the owner of distribution list (email@example.com)
– Go to Contacts menu | Distribution Lists
– Right click on Distribution list and select Edit Distribution List
– Go to Distribution List Properties menu and configure who users can send to DL
The following is example that user firstname.lastname@example.org and email@example.com can be send to DL
Please try to send email to distribution list (from allow users and deny users) to ensure restriction have worked.
Good luck and hopefully useful 😀
Thanks for your information …
i tried the option suggested here but still the mails are being received on all ID’s not just the ones specified in the sendto list users.
is there something else we can do?
Hi Anjali Ahuja,
Please try to restart milter and try again
hi Iman. this is for NE Zimbra?
This guidance can be applied on Zimbra NE or OSE
Iman, I am from BD. Thanks for your usefull and very helpfull website. Hope future post will also helps for OSE.
Hi Mohammad ahsan ullah,
This post can be configured on both. NE or OSE
article is very helpful.
thanks a lot, Iman!
This is one of the must read blog. Real helpful
what about externals domain sending to localuser via zimbra proxy ?
AFAIK, Zimbra proxy used by user to access from webmail, imap and pop and not for sending email.
In older versions of Zimbra it wasn’t possible to do this with the admin interface. How to do this with zmprov is explained in the paragraph “Examples using CLI” in the Zimbra Wiki: https://wiki.zimbra.com/wiki/Enabling_and_administering_the_Zimbra_milter
Thanks for your info 😀
thank you for the info
I found you are great in zimbra !!!
Thank you all
mas iman ada caranya gak untuk user yang tidak bisa kirim ke distribution list ketika dia mencoba kirim ada email balasan kalau dia tidak bisa kirim ke dl yang di restrict
Hi mas Gugum,
Bisa coba menggunakan PolicyD untuk melakukan itu :https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
I have a DL. The Dl has 120 members. When i Expand DL and Scroll, the Dl email address showing into loop for several.
But when number of member <=100, there is not problem.
Can you help me?
Is the showing Bug?
I am usually use CLI instead of GUI for checking 😉
My users dislike shell :-(((((.
I solved my problem. I edited js/ContactsCore_all.js.zgz and changed DL_PAGE_SIZE variable. The default value of DL_PAGE_SIZE is 100.
[zimbra@kopano ~]$ zmmilterctl restart
Stopping milter server…done.
Starting milter server…done.
[zimbra@kopano ~]$ zmmilterctl status
Milter server is running.
Only added a single user to the owner and the same user to be able to send to the distribution List. But anyone can send emails.
Hi Sourav Dey,
Sometimes you should restart milter several times to get it working 🙂
I made the distribution list restriction, it is working fine, thank you!
I have only one more question: How can I change this replay message?
„571 571 Sender is not allowed to email this distribution list: firstname.lastname@example.org”
I have to translate it, for our users.
Thanking in advance!
You can use Policyd instead of milter. The example configuration can be found here : https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
Could you please guide me how to configure, i Have tired but not working.
Dear iman brother.
I have done it …. but in our case we have split domain into 2 servers . So we we shared external gal… into our primary server. But the solution is working OK with ONLY accounts of primary server . Bit external user not being restricted…they are freely able to send mail to distributions list without even have not any access send rights.
Please i would really oblige for any good workaround for our problem.
Please try to use PolicyD to restrict : https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
Please look forward to hear u on this soon
I used multiserver Zimbra OSE, and i’ve done configure the milter as your tutorial (server on global configuration|mta.) I’ve done restart the milter service through zmmilterctl restart but all user on my distribution list still can send email to the d.l.
Thanks for your share and tutorial.
Please make sure all mta has been configured milter or milter status is active
Is there a way to see list of which mail addresses restrict to send mails any distribution list ?
Thanks for your share. It was really helpfull
By default, DL can sent from any email. If you configure like this post, DL only can sent from some emails that have been defined
🙁 i have done with your process but its not working 🙁
You can use this one if still getting problem : https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
Can i restrict in Zimbra open source ver 7
You can try to use Policyd: https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
thanks for your share,
i want to restrict external users send email to all distribute list.
can i do that ?
i can, how can i do that ?
If you follow this guidance, I think your aim has been achieved 😉
I have a dl with few user allowed to send mail to it, now i want to allow another domain user as gmail to allow sending mail to dl. I added my gmail id and tried to send mail but it gets bounce back saying “571 Sender is not allowed to email this distribution list” but when i check in CLI using ” zmprov ckr dl” it gives me allowed.
Please suggest what I have to do.
Please try to restart milter service after adding allowed user
Thank you for your reply.
I have already tried restarting milter service and got the same bounce back mail.
If you trouble with milter, maybe you can this method : https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
Hope you are doing well.
I would like to restrict users to send a distribution list like below.
a. All internal user can send to the DL.
b. Some of the external users e.g. gmail.com can send.
I am looking for merging these two rules on a single rule.
You can try to allow local domain and gmail.com. Maybe like @internal.domain @gmail.com
first thank you very much for you article.
i want to ask you about the possibility to personilase the error message under zimbra, like when you don’t have right to send mail to DL, iwant apparte my message?
thank you for your help.
Maybe you want try this one: https://imanudin.net/2014/09/29/how-to-restrict-users-sending-to-certain-usersdomains-with-policyd/
I have a VPS and a Dedicated server with ZCS 8.8 OSE (same version of OS too, CentOS7). The DL restriction works fine on the VPS but not on the Dedicated server. What could be wrong? I have tried all the possible steps as explained by you and also referred other Forums too. But no luck. The settings on both servers for Zimbra is also same. Both are production servers and can’t afford to test cbpolicyd.
Hello Sudhish K,
Please make sure the milter service is running. You can compare with your VPS. Especially on listen port for milter
Use the above link it works find for ZCS 8.8.8