I'm using Zimbra Network Edition v. 6.
I'm fairly new to Zimbra and not familiar with Postfix.
I'm suffering of vilains trying to send emails to my users. I want to block their IP/hostname serverwide.
I want to create a file containing blacklisted hosts. Here's how I think I should do, I need someone to tell me if I'm doing it right or wrong:
1. Check current config on client restrictions:
2. Add my file to the client restrictions
$ zmlocalconfig postfix_smtpd_client_restrictions
postfix_smtpd_client_restrictions = reject_unauth_pipelining
3. Add the abusing hosts (example hosts here, but you know what I'm talking about)
$ zmlocalconfig -e postfix_smtpd_client_restrictions="reject_unauth_pipelining hash:/opt/zimbra/postfix/conf/client_access"
4. Do the postmap stuff
$ echo "220.127.116.11 REJECT" >> /opt/zimbra/postfix/conf/client_access
$ echo "18.104.22.168/24 REJECT" >> /opt/zimbra/postfix/conf/client_access
$ echo "enlarge-your-p3nis.com REJECT" >> /opt/zimbra/postfix/conf/client_access/conf/client_access
5. Restart Zimbra
zmmtactl stop && zmmtactl start
* Using zmlocalconfig, am I doing the proper way with Zimbra?
* Using hash:/some/file, am I doing the proper way with Postfix?
* Does Postfix understand CIDR notation in the file?
* Will my work be overwritten on next update?
* Do I really need to restart Zimbra?
Many thanks for your help.