Results 1 to 3 of 3

Thread: Best way to block one domain from connecting ?

  1. #1
    Join Date
    Oct 2009
    Dublin, IRELAND
    Rep Power

    Default Best way to block one domain from connecting ?

    Every day there is at least one attempt from a dynamic IP address at to relay email through my mail server.

    Is it worth my while blocking this completely ?

    And if it is, how do I go about it ?

    Note: all our domain mail is delivered via an offsite mail sanitiser - so 99% of it comes from a single IP address. The other legitimate server connecting are our own off site servers. So if it easier to specifically allow just a few networks - rather than to specifically block just a few networks - I would be happy to do it that way too.

    Thanks in advance.

  2. #2
    Join Date
    Mar 2007
    Rep Power


    I guess you can make use of smtpd_sender_restrictions or smtpd_recipient_restrictions:

    Postfix Configuration Parameters
    Postfix Configuration Parameters

    Also check out the related zimbra wiki page:
    Domain level blocking of users - Zimbra :: Wiki

    Or, I've not tried it with your specific situation, but can't you get away with blocking it off at the firewall level like with iptables?

  3. #3
    Join Date
    Nov 2006
    Rep Power


    As a alternative install Welcome to the Home of OSSEC and allow it to use Active Response on your Zimbra server. That way if a host attempts to relay and it is not allowed then a IP tables rule will automatically be created.

Similar Threads

  1. block external domain
    By ocbineesh in forum Administrators
    Replies: 1
    Last Post: 04-29-2010, 05:55 AM
  2. [SOLVED] Block my internal domain from sending out
    By dchristiaan in forum Administrators
    Replies: 1
    Last Post: 08-21-2009, 09:12 PM
  3. Replies: 7
    Last Post: 04-27-2009, 02:49 AM
  4. Replies: 3
    Last Post: 11-12-2008, 03:26 AM
  5. Replies: 20
    Last Post: 03-18-2008, 05:37 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