User Tools

Site Tools


internet:mail:zimbra:zimbra_white_black

This is an old revision of the document!


Zimbra - Whitelist or Blacklist

By Sender E-Mail Address

:!: This will affect all users!

As root:

vim /opt/zimbra/data/spamassassin/localrules/sauser.cf

Add at the bottom, modifying for your needs:

## Black and White List
whitelist_from statistics@reporting.smtproutes.com
blacklist_from spammer@example.com

Restart the filter:

zmamavisdctl restart

Examples of Valid Entries

  • spammer@example.com - blocks all email from spammer@example.com
  • example.com - blocks all email from ANY address at example.com

By IP Address

Zimbra 8.5+

:!: In a pinch, you can add an IP address to the Postfix mynetworks definition of trusted hosts.

Become the zimbra user:

su - zimbra

Whitelist

vim /opt/zimbra/conf/postfix_rbl_override

xxx.xxx.xxx.xxx OK

then:

postmap /opt/zimbra/conf/postfix_rbl_override

zmprov mcf +zimbraMtaRestriction 'check_client_access lmdb:/opt/zimbra/conf/postfix_rbl_override'

Blacklist

vim /opt/zimbra/conf/postfix_blacklist

xxx.xxx.xxx.xxx REJECT

then:

postmap /opt/zimbra/conf/postfix_blacklist

zmprov mcf +zimbraMtaRestriction 'check_client_access lmdb:/opt/zimbra/conf/postfix_blacklist'

Restart the MTA

zmmtactl restart
internet/mail/zimbra/zimbra_white_black.1511118083.txt.gz · Last modified: 2017/11/19 12:01 by gcooper