/opt/zimbra/postfix/conf/sales-senders
user1@domain.com OK
user2@domain.com OK
/opt/zimbra/postfix/conf/accounts-senders
user3@domain.com OK
user4@domain.com OK
/opt/zimbra/postfix/conf/protected_recipients
accounts-dl@domain.com accounts-senders-list
sales-dl@bksec.com sales-senders-list
/opt/zimbra/postfix/conf/update-sec-list
#!/bin/bash
echo "rebuild authorised sales-list senders..."
postmap /opt/zimbra/postfix/conf/sales-senders
echo "rebuild authorised accounts-list senders..."
postmap /opt/zimbra/postfix/conf/accounts-list-senders
echo "REBUILD protected_recipeints..."
postmap /opt/zimbra/postfix/conf/protected_recipients
/opt/zimbra/postfix/conf/main.cf
sales-senders-list = check_sender_access hash:/opt/zimbra/postfix/conf/sales-senders, reject
accounts-senders-list = check_sender_access hash:/opt/zimbra/postfix/conf/accounts-senders, reject
smtpd_restriction_classes = sales-senders-list, accounts-list
/opt/zimbra/conf/postfix_recipient_restrictions.cf
hash:/opt/zimbra/postfix/conf/protected_recipients
************ Auto CC of an account **************
to get it to work it did the following steps
In /opt/zimbra/postfix/conf create a file called "sender_bcc" and to it:
"employee@domain.com
monitor@domain.com"
In /opt/zimbra/postfix/conf/main.conf add
"sender_bcc_maps = hash:/opt/zimbra/postfix/conf/sender_bcc"
then run as zimbra user
"postmap /opt/zimbra/postfix/conf/sender_bcc"
restart postfix -
"postfix reload"
Bookmarks