Zimbra 8.6.0 Add black and white list method

Source: Internet
Author: User

Zimbra version 8.6.0

Cause a partial non-canonical mailbox send message is rejected after the Zimbra DNS check is turned on.
Workaround: You can add a whitelist to this part of the mailbox

Zimrba Wiki Documentation Example:
Https://wiki.zimbra.com/wiki/Specific_Whitelist/Blacklist_per_IP
Because the example only describes the black-and-white list IP address, it is not known whether the domain name is feasible.

Because Zimbra also uses postfix as the MTA, the method that is in effect in the configuration also makes Postfix configuration items smtpd_recipient_restrictions changes.

View Postfix Documentation
Http://www.postfix.org/SMTPD_ACCESS_README.html

Through multiple documents can confirm the change of thinking, directly modify the Postfix sender Check configuration item smtpd_recipient_restrictions, because Zimbra Postmap generated database is. Lmdb, not. db so you can't use hash directly: Need to use Lmdb:
Lmdb using reference files: http://www.postfix.org/DATABASE_README.html

Create a sender_checks file under the/etc/postfix/directory
Modify the Sender_checks permission to Zimbra:zimbra
Fill in the Sender_checks file
Example12939.com REJECT
Example12940.com OK

Su Zimbra
Pass
Postmap/etc/postfix/sender_checks
Generate a file in this directory as:
Sender_checks.lmdb

If the smtpd_recipient_restrictions item is modified directly in/opt/zimbra/postfix/conf/main.cf, zmmtactl restart; Zmconfigdctl Restart; /OPT/ZIMBRA/POSTFIX/CONF/MAIN.CF will be restored after reboot
The Zimbra configuration file has a smtpd_recipient_restrictions.cf in CD/OPT/ZIMBRA/CONF/ZMCONFIGD, in/opt/zimbra/postfix/conf/ The configuration in which the MAIN.CF is in effect is configured in the file.

After permit_mynetworks in the file, add:
Vim/opt/zimbra/conf/zmconfigd/smtpd_recipient_rest
Permit_mynetworks
Check_sender_access Lmdb:/etc/postfix/sender_checks

And then re-enter the configuration
Zmmtactl Restart; Zmconfigdctl Restart;

Discover that using all mailboxes in example12940.com is not rejected because it is not a standard reverse domain name resolution

Post-add black and white lists only need to be executed under the Zimbra account
Modify
/etc/postfix/sender_checks file
Postmap/etc/postfix/sender_checks Rebuilding the Lmdb database

Zimbra 8.6.0 Add black and white list method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.