Results 1 to 10 of 10

Thread: Restrict Postfix Recipients

  1. #1
    kaushik209 is offline Member
    Join Date
    Apr 2009
    Location
    India
    Posts
    11
    Rep Power
    6

    Lightbulb Restrict Postfix Recipients

    Hi
    I was looking for some process I can restrict senders to send mails to some distribution list except allowed ones. I found this link
    RestrictPostfixRecipients - Zimbra :: Wiki

    I am using zimbra 5.0.2
    Release 5.0.2_GA_1975.RHEL5_20080130221917 RHEL5 FOSS edition

    The steps mentioned in the wiki is not working. Whenever I follow the steps zimbra stops sending mails shows "451 4.3.5 Server configuration error"
    Any suggestions how to make the restriction happen.

    Thank you in anticipation

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

    Default

    Quote Originally Posted by kaushik209 View Post
    The steps mentioned in the wiki is not working. Whenever I follow the steps zimbra stops sending mails shows "451 4.3.5 Server configuration error"
    Any suggestions how to make the restriction happen.
    The wiki article does work, you probably have made some error - recheck your implementation of those instructions. You could also search the forums for some further details.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    kaushik209 is offline Member
    Join Date
    Apr 2009
    Location
    India
    Posts
    11
    Rep Power
    6

    Default

    Thanks Bill......but I have done it 8 times..checked every line...............I have then implemented it on another zimbra...but the results are same.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Quote Originally Posted by kaushik209 View Post
    Thanks Bill......but I have done it 8 times..checked every line...............I have then implemented it on another zimbra...but the results are same.
    Well, it works for other people on the forums. You'd better post some more information about what, exactly, you've done including examples and some further details from the log files.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    kaushik209 is offline Member
    Join Date
    Apr 2009
    Location
    India
    Posts
    11
    Rep Power
    6

    Default

    Well..firstly I created /opt/zimbra/postfix/conf/permitted_senders and made below entry
    localhost OK
    abc.com OK
    zimbra.abc.com OK

    Then I created /opt/zimbra/postfix/conf/protected_recipients and made below entries
    xyz@abc.com permitted_senders_list

    Then I made a bash script in /opt/zimbra/postfix/conf/update_protected_recipients with below entries
    #!/bin/bash
    echo "rebuild permitted_senders"
    postmap /opt/zimbra/postfix/conf/permitted_senders
    echo "rebuild protected_recipients"
    postmap /opt/zimbra/postfix/conf/protected_recipients

    And made this script executable by chmod 755
    and executed which made two files under /opt/zimbra/postfix/conf
    1)permitted_recipients.db
    2)protected_recipients.db

    Then I made below entries in /opt/zimbra/conf/main.cf
    permitted_senders_list = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
    smtpd_restriction_classes = permitted_senders_list

    Then edited /opt/zimbra/conf/postfix_recipient_restrictions.cf and made first line entry
    check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients

    Then I restarted postfix by
    postfix reload

    After this I tried to send mail from webmail of any user of abc.com to the distribution list but everytime it showed one error msg of

    "The following recipient(s) cannot be reached:

    'xyz@abc.com' on 22/09/2009 10:34 AM

    451 4.3.5 Server configuration error"
    Please check If i have done anything wrong.

  6. #6
    kaushik209 is offline Member
    Join Date
    Apr 2009
    Location
    India
    Posts
    11
    Rep Power
    6

    Default

    Sep 22 03:30:26 zimbraxxx postfix/smtp[8059]: 5A2B414A50CD: to=<xyz@abc.com>, relay=zimbrax.abc.com[xxx.xxx.xxx.xxx]:25, delay=73490, delays=73489/0.96/0.05/0.04, dsn=4.3.5, status=deferred (host zimbrax.abc.com[xxx.xxx.xxx.xxx] said: 451 4.3.5 Server configuration error (in reply to RCPT TO command))

    This is what I received from logs

  7. #7
    rmacian is offline Starter Member
    Join Date
    May 2010
    Posts
    1
    Rep Power
    5

    Default

    In version 6 is this the only way to do this? It's not possible to limit the senders within the UI?

  8. #8
    Thiago Camargo Martins is offline Active Member
    Join Date
    Mar 2008
    Location
    São Paulo - Brasil
    Posts
    26
    Rep Power
    7

    Default Hi!

    I have this setup working in my network, more precisely 12 Zimbra servers, both open source and network edition but, I'll review the entire procedure to help you guys...

  9. #9
    Thiago Camargo Martins is offline Active Member
    Join Date
    Mar 2008
    Location
    São Paulo - Brasil
    Posts
    26
    Rep Power
    7

    Default Hi!

    Guys, this procedure have some problems with the new versions of the Zimbra, me and my expert in Postfix's man are working to fix it immediatly.

  10. #10
    Thiago Camargo Martins is offline Active Member
    Join Date
    Mar 2008
    Location
    São Paulo - Brasil
    Posts
    26
    Rep Power
    7

    Default Oops!

    Wrong post!! Sorry!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. postdrop fail to create file after upgrade to 5.0.3
    By echoadisan in forum Installation
    Replies: 23
    Last Post: 07-15-2013, 03:02 PM
  2. Replies: 9
    Last Post: 10-25-2009, 08:20 AM
  3. Restrict Postfix Recipients
    By digitaltendencies in forum Administrators
    Replies: 2
    Last Post: 06-25-2009, 03:00 PM
  4. [SOLVED] Distribution list
    By chandu in forum Administrators
    Replies: 16
    Last Post: 04-02-2009, 05:17 AM
  5. changed ip addr/zmmailboxdctl not running
    By pwhite76 in forum Installation
    Replies: 23
    Last Post: 03-11-2009, 11:43 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
  •