postfix-sender-restriction

http://wiki.zimbra.com/wiki/Ajcody-MTA-Postfix-Topics#For_ESMTP_Auth_is_LOGIN_-_Example

http://wiki.zimbra.com/wiki/Restrict_sending_to_certain_domains

here xyz.com is my domain.

[root@desktop51 ~]# su – zimbra

[zimbra@desktop51 ~]$ cd postfix/conf/

[zimbra@desktop51 conf]$ cat s_sender_list
guest@xyz.com    sender_list

[zimbra@desktop51 conf]$ postmap  s_sender_list

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

[zimbra@desktop51 conf]$ postmap  s_recipient_list

[zimbra@desktop51 conf]$ postconf  -d | grep smtpd_restriction_classes
smtpd_restriction_classes =

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

[zimbra@desktop51 conf]$ postconf -e “sender_list = check_recipient_access hash:/opt/zimbra/postfix/conf/s_recipient_list, reject”

add this
[zimbra@desktop51 conf]$ cat /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
check_sender_access hash:/opt/zimbra/postfix/conf/s_sender_list

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. 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