postfix-recipient-restriction in zimbra

http://wiki.zimbra.com/wiki/RestrictPostfixRecipients

here xyz.com is my domain.

 

[root@desktop51 ~]# su – zimbra
[zimbra@desktop51 ~]$ cd postfix/conf/

[zimbra@desktop51 conf]$ cat r_sender_list
xyz.com    OK

[zimbra@desktop51 conf]$ cat r_recipient_list
guest@xyz.com    recipient_list

[zimbra@desktop51 conf]$ postmap r_sender_list
[zimbra@desktop51 conf]$ postmap r_recipient_list

[zimbra@desktop51 conf]$ postconf  -e “smtpd_restriction_classes=sender_list,recipient_list”

[zimbra@desktop51 conf]$ postconf  -e “recipient_list=check_sender_access hash:/opt/zimbra/postfix/conf/r_sender_list, reject”

[zimbra@desktop51 conf]$ cat /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/r_recipient_list

[zimbra@desktop51 conf]$ postfix reload

[root@desktop225 bipin-data]#

Advertisements

About bpn4it

Feel Free in Linux. Bipin Patel bpn4it@gmail.com Ahmadabad, Gujarat, India
This entry was posted in Bipin hands-on and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s