Results 1 to 3 of 3

Thread: Configure postfix to accept mails from a certain IP range and block the rest

  1. #1
    Hatrix is offline Translation Moderator
    Join Date
    Aug 2009
    Location
    Palma de Mallorca, Spain
    Posts
    66
    Rep Power
    6

    Default Configure postfix to accept mails from a certain IP range and block the rest

    Hello,

    first, we still have 5.0.9 in production, we have a upgrade path for this year to 8.0.x, but I need to implement this on 5.0.9:

    We have lot's of accounts (facebook@, socialmedia@, support@subdomainXX., etc.) which we want to restrict who can sent mails from. We got some breaches where our users used weak passwords on those accounts and spammers used our servers as mail relays.

    Now, we want to restrict those accounts to be only useable for sending from our internal network.

    Therefore I would like to implement restrictions like:

    <Email> <Internal Lan> :OK
    <Email> <The rest> :REJECT

    I am not sure how to do this in postfix / zimbra, because all the sender or recipient restrictions use simple lookuptables where I can only specify either a domain, ip or an email, there seems to be no lookup which permits to say this email from this range OK, etc.

    Any help appreciated,
    best

    Hat

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    Default

    Search the wiki (or the forums) for the word "restrict".
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Hatrix is offline Translation Moderator
    Join Date
    Aug 2009
    Location
    Palma de Mallorca, Spain
    Posts
    66
    Rep Power
    6

    Default

    Quote Originally Posted by phoenix View Post
    Search the wiki (or the forums) for the word "restrict".
    Hello,

    that's not really what I want, those restrict WHO can send to an email (like WHO can send to a DISTRIBUTION list). But what I want is to block at the SMTP level the sender of an email.

    Like only smtp connections from 192.168.x.x are allowed to send as socialmedia@, all other IP's should not be allowed to send emails as socialmedia@

    But the two list example my steer mi in the right direction, with luck I just need to apply those to sender restrictions instead of recipient restricionts and maybe the other list permits IP's instead of domains,

    thanks,
    best
    Hat

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Configure postfix in ZCS v8 as theres no postmap command
    By SFX Group in forum Administrators
    Replies: 7
    Last Post: 12-17-2012, 07:52 PM
  2. Replies: 0
    Last Post: 12-15-2012, 10:34 PM
  3. Replies: 2
    Last Post: 12-05-2010, 08:19 AM
  4. [SOLVED] Postfix don't accept NAS alert emails
    By owl700 in forum Administrators
    Replies: 5
    Last Post: 05-10-2010, 06:46 AM
  5. postfix won't accept connections on port 25
    By Mike Carifio in forum Administrators
    Replies: 5
    Last Post: 12-29-2005, 08:05 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
  •