Results 1 to 2 of 2

Thread: Zimbra per domain restriction with multiple userlist

  1. #1
    Join Date
    Jun 2012
    Posts
    9
    Rep Power
    3

    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 user@domain.com in place of an entire domain.com)

    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 ,
    shashikant

  2. #2
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    3

    Default

    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 "vivek@yourdomain.com restrict_tpmail" > tpmail_senders
    #echo "prabhat@yourdomain.com restrict_tpmail" >> tpmail_senders
    #postmap tpmail_senders
    -->tpmail_senders is file that store the user that can send mail to limited domain
    ================================================== ===========================
    #echo "yourdomain.com ok" > tpmail_recipients
    #echo "gmail.com ok" >> tpmail_recipients
    #echo "hotmail.com ok" >> tpmail_recipients
    #postmap tpmail_recipients"
    -->tpmail_recipients is file that store the domain where user can send mail only
    ================================================== ==============================
    #vi zmconfigd.cf
    search
    /SECTION mta DEPENDS amavis -->Insert in last of this section

    #POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions.cf
    #POSTCONF smtpd_restriction_classes restrict_tpmail
    #POSTCONF restrict_tpmail FILE postfix_restrict_tpmail.cf
    #POSTCONF virtual_transport LOCAL postfix_virtual_transport

    save&exit
    ================================================== ===============================
    #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
    save&quit
    ================================================== ================================
    #cd /opt/zimbra/conf
    #echo "check_sender_access hash:/opt/zimbra/conf/tpmail_senders" > postfix_sender_restrictions.cf
    #echo "check_recipient_access hash:/opt/zimbra/conf/tpmail_recipients, reject" >>
    postfix_restrict_tpmail.cf
    ================================================== ================================
    zmmtactl stop
    zmmtactl start
    ================================================== =================================
    Now vivek@yourdomain.com and prabhat@yourdomain.com can send mail only to given domain that are listed in
    tpmail_recipients

Similar Threads

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