Results 1 to 2 of 2

Thread: Zimbra per domain restriction with multiple userlist

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Rep Power

    Question Zimbra per domain restriction with multiple userlist

    Dear Team,

    I am using zimbra open source 7.2.0 . i want below settings,
    userlist 1 should send mail to gmail and locally only
    userlist2 should send mail to hotmail and locally only
    I have refered below links :-
    Restrict users to certain domain - Zimbra :: Wiki
    Further_Restricting_Postfix_Recipient - Irfan-Notes - Zimbra :: Wiki
    (Should be able to do it by in place of an entire

    See also, other direction/possibilities:
    Restrict sending to certain domains - Zimbra :: Wiki
    RestrictPostfixRecipients - Zimbra :: Wiki

    I can able to restrict userlist1 is send mail to gmail and locally but
    userlist2 could not restrict send mail to hotmail and locally
    plz help me.........

    Thnaks ,

  2. #2
    Join Date
    Nov 2012
    Rep Power


    posible to restrict some user to send mail outside in zimbra 8.0.2

    ================================================== =========================
    You should login as zimbra user do these steps
    #su - zimbra
    ================================================== =========================
    All the steps should be done at /opt/zimbra/conf/
    #cd /opt/zimbra/conf/
    ================================================== =========================
    #echo " restrict_tpmail" > tpmail_senders
    #echo " restrict_tpmail" >> tpmail_senders
    #postmap tpmail_senders
    -->tpmail_senders is file that store the user that can send mail to limited domain
    ================================================== ===========================
    #echo " ok" > tpmail_recipients
    #echo " ok" >> tpmail_recipients
    #echo " ok" >> tpmail_recipients
    #postmap tpmail_recipients"
    -->tpmail_recipients is file that store the domain where user can send mail only
    ================================================== ==============================
    /SECTION mta DEPENDS amavis -->Insert in last of this section

    #POSTCONF smtpd_sender_restrictions FILE
    #POSTCONF smtpd_restriction_classes restrict_tpmail
    #POSTCONF restrict_tpmail FILE
    #POSTCONF virtual_transport LOCAL postfix_virtual_transport

    ================================================== ===============================
    #cd /opt/zimbra/postfix/conf/
    insert below line at end of file
    vi main.conf
    smtpd_sender_restrictions = check_sender_access hash:/opt/zimbra/conf/tpmail_senders
    smtpd_restriction_classes = restrict_tpmail
    restrict_tpmail = check_recipient_access hash:/opt/zimbra/conf/tpmail_recipients, reject
    ================================================== ================================
    #cd /opt/zimbra/conf
    #echo "check_sender_access hash:/opt/zimbra/conf/tpmail_senders" >
    #echo "check_recipient_access hash:/opt/zimbra/conf/tpmail_recipients, reject" >>
    ================================================== ================================
    zmmtactl stop
    zmmtactl start
    ================================================== =================================
    Now and can send mail only to given domain that are listed in

Similar Threads

  1. Zimbra per domain restriction
    By Asghar in forum Administrators
    Replies: 2
    Last Post: 07-08-2013, 09:58 PM
  2. multiple LDAP servers for multiple domain?
    By tiger2000 in forum Administrators
    Replies: 0
    Last Post: 11-24-2009, 12:18 AM
  3. One Domain, Multiple Locations, Multiple Servers(?)
    By soxfan in forum Administrators
    Replies: 2
    Last Post: 03-13-2007, 09:42 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