Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-2011, 03:17 AM
New Member
 
Posts: 4
Default [SOLVED] Blocking client hosts: am I doing it right?

Hi,

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:

Code:
$ su - zimbra
1. Check current config on client restrictions:
Code:
$ zmlocalconfig postfix_smtpd_client_restrictions
postfix_smtpd_client_restrictions = reject_unauth_pipelining
2. Add my file to the client restrictions
Code:
$ zmlocalconfig -e postfix_smtpd_client_restrictions="reject_unauth_pipelining hash:/opt/zimbra/postfix/conf/client_access"
3. Add the abusing hosts (example hosts here, but you know what I'm talking about)
Code:
$ echo "1.2.3.4 REJECT"          >> /opt/zimbra/postfix/conf/client_access
$ echo "79.99.34.0/24 REJECT"    >> /opt/zimbra/postfix/conf/client_access
$ echo "enlarge-your-p3nis.com REJECT"   >> /opt/zimbra/postfix/conf/client_access/conf/client_access
4. Do the postmap stuff
Code:
postmap /opt/zimbra/postfix/conf/client_access
5. Restart Zimbra
Code:
zmmtactl stop && zmmtactl start
6. Coffee

Questions:

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

Last edited by samkrieg; 03-29-2011 at 03:19 AM.. Reason: adding question mark.
Reply With Quote
  #2 (permalink)  
Old 04-04-2011, 06:23 AM
New Member
 
Posts: 4
Default

Yes, this works and this looks like the propert way to do it.

Last edited by samkrieg; 04-07-2011 at 02:32 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.