How to Delete,Create,Modify and Restrict Distribution list in zimbra

How to Delete,Create,Modify and Restrict Distribution list in zimbra

by -
1 2442

How to Get, Add, Delete, Distribution List using zmprov and How to restrict DistributionList.

:- How to create DistributionList

[[email protected] ~]$ zmprov cdl [email protected]

:- How to add DistributionListMember.

[[email protected] ~]$ zmprov adlm [email protected] [email protected]


:- How to list all DistributionList.

[[email protected] ~]$ zmprov gadl
[email protected]

:- How to check DistributionListMember in our exsiting DL

[[email protected] ~]$ zmprov gdl [email protected] | grep zimbraMailForwardingAddress: | awk {‘print $2’}
[email protected]
[email protected]

Note:- Here is only one member which add earlier.
:- Now i am going to add more member.

[[email protected] ~]$ zmprov adlm [email protected] [email protected]
[[email protected] ~]$ zmprov adlm [email protected] [email protected]

:- How to remove DistributionListMember.

[[email protected] ~]$ zmprov rdlm [email protected] [email protected]

:- How to rename DistributionList.

[[email protected] ~]$ zmprov rdl [email protected] [email protected]

:- How to Delete DistributionList

[[email protected] ~]$ zmprov ddl [email protected]

How to restrict DistributionList

By default, Zimbra distribution list or group list can receive email from anywhere. This can be dangerous because it could be a target of spam attackers.

We do that through recipent restraction.



:- Login as zimbra user Put your domain or user who can send email to your protected DL or users

[[email protected] ~]# su – zimbra
[[email protected] ~]$ vi /opt/zimbra/postfix/conf/permitted_senders
[email protected] Ok
[email protected] Ok Ok

Note:- We can can allowed user or domain as per requirement

:- This is your list of email addresses that may only receive email from permitted senders which we have created above

[[email protected] ~]$ vim /opt/zimbra/postfix/conf/protected_
[email protected] permitted_
[email protected] permitted_senders

Note:- In above file we can put DL,Email,Domain as per requirement.

:- Now we have to do postmap

[[email protected] ~]$ postmap /opt/zimbra/postfix/conf/permitted_senders
[[email protected] ~]$ postmap /opt/zimbra/postfix/conf/protected_recipients
[[email protected] ]$ vim /opt/zimbra/conf/zmconfigd/
check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients <——-Put this line—>
%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:localhost:@@[email protected]@%%
%%contains VAR:zimbraMtaRestriction reject_invalid_helo_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_helo_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_sender%%
%%contains VAR:zimbraMtaRestriction reject_unknown_client_hostname%%
%%contains VAR:zimbraMtaRestriction reject_unknown_helo_hostname%%
%%contains VAR:zimbraMtaRestriction reject_unknown_sender_domain%%
%%explode reject_rbl_client VAR:zimbraMtaRestrictionRBLs%%
%%contains VAR:zimbraMtaRestriction check_policy_service unix:private/policy%%

:- Put these lines at botam in

[[email protected] ]$ vim /opt/zimbra/postfix/conf/
permitted_senders = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
smtpd_restriction_classes = permitted_senders

[[email protected]]$ postfix reload
/postfix-script: refreshing the Postfix mail system


Note:- Please check mail through sending mail.Only prabhat([email protected]) can send mail.


How to restrict DL in zimbra

DL Restriction in zimbra

:- Send mail from other account ([email protected])

Note:- This user ([email protected])   can not sendmail on [email protected] DL

Screenshot from 2015-06-24 19:54:52

:- You can also check in zimbra.log that [email protected] is not able to sendmail on DL


Enjoy  🙂

Download PDF

CEO, KV IT-Solutions Pvt. Ltd. | [email protected] | 9810028374|
Linux Professional and an Industrial Trainer | 20 + years Experience in IT Industry

” We are born free, No Gate and Windows can snatch our freedom “


0 1672

0 1328

0 1188


Leave a Reply