Results 1 to 2 of 2

Thread: [SOLVED] Blocking client hosts: am I doing it right?

  1. #1
    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    4
    Rep Power
    5

    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 04:19 AM. Reason: adding question mark.

  2. #2
    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    4
    Rep Power
    5

    Default

    Yes, this works and this looks like the propert way to do it.
    Last edited by samkrieg; 04-07-2011 at 03:32 AM.

Similar Threads

  1. Replies: 8
    Last Post: 10-31-2012, 08:15 PM
  2. Replies: 3
    Last Post: 03-27-2008, 10:52 AM
  3. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  4. Web Client Performance and Basic client features
    By fviero in forum Administrators
    Replies: 1
    Last Post: 11-23-2007, 05:34 AM
  5. Deploying Zimbra Client (zimbra.war)
    By zocs in forum Installation
    Replies: 2
    Last Post: 07-25-2007, 06:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •