DL/Distribution List restriction in Zimbra Mailserver

In zimbra Mailserver you can restrict/allow specific user to send mail in DL .
Follow the steps to perform the task

Login to zimbra user

Go to file and search  = smtpd_recipient_restrictions
$vim /opt/zimbra/conf/zmconfigd.cf

copy line of zmconfigd/smtpd_recipient_restrictions.cf and edit

$  /opt/zimbra/conf
$vim zmconfigd/smtpd_recipient_restrictions.cf
###paste in 2nd line.....
check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients

or, for Zimbra 8.6 or above version change hash to texthash

check_recipient_access texthash:/opt/zimbra/postfix/conf/protected_recipients

Create file here
$cd /opt/zimbra/postfix/conf/

$touch permitted_senders

$vim permitted_senders
shahzad@example.com ok

$touch protected_recipients
$vim protected_recipients
mail2all@example.com permitted_senders

Add Parameter in bottom of postfix config file
$vim /opt/zimbra/postfix/conf/main.cf
permitted_senders = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
smtpd_restriction_classes = permitted_senders

update file
$postmap protected_recipients
$postmap permitted_senders

Reload posftix 
$postfix reload

Now you can test the setup, if you find any difficulty to perform this task, you can comment below of this article.

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment