Results 1 to 7 of 7

Thread: Restricting a group of users to certain domains

  1. #1
    cnvivek is offline Active Member
    Join Date
    May 2013
    Posts
    27
    Rep Power
    2

    Default Restricting a group of users to certain domains

    Hi I am new to this forum and also for Zimbra mail server, I had configured Zimbra open source 8.0.2 for my office. It is working fine, now I want to restrict a group users should mail only to few domain and others can send to any domain. I had find some info in this URL
    HTML Code:
    http://wiki.zimbra.com/index.php?title=Restrict_users_to_certain_domain
    which I feel will suit my requirement. After following the steps found in the URL still users are able to send mails to restricted domain.

    When I stop and start zmmtactl I am getting the below error

    zmmtactl start
    Rewriting configuration files...done.
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/local_domains
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/local_domains.db
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/master.cf
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/restricted_senders
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/restricted_senders.db
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/tag_as_foreign.re
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/tag_as_originating.re
    /postfix-script: starting the Postfix mail system
    Starting saslauthd...done.
    Started opendkim: pid 4894

    Please help me out in this

  2. #2
    rsaeks is offline Active Member
    Join Date
    Jan 2013
    Location
    Chicago, IL
    Posts
    38
    Rep Power
    2

    Default

    I'd be interested in finding out the fix for this as well.

  3. #3
    king0770's Avatar
    king0770 is offline Zimbra Employee
    Join Date
    Sep 2007
    Posts
    186
    Rep Power
    7

    Default

    There is an RFE that might be of interest to you...

    Bug 70599 – RFE: Milter Service + sendToDomain

  4. #4
    cnvivek is offline Active Member
    Join Date
    May 2013
    Posts
    27
    Rep Power
    2

    Default

    Hi I had worked and tested an alternative URILRestrict sending to certain domains - Zimbra :: Wiki. Following the same steps as if in the URL now I am able to block sending mails to particular domains.
    And another thing I noted is we can allow a particular email id of a blocked domain and I had implemented my own changes all are working perfectly

    The important point to get this concept working is "step c"
    I have Zimbra opensource 8.0.2
    do exactly as said "step c"
    here you need to work on zmconfigd.cf instead of zmmta.cf
    you need to do changes in "SECTION mta DEPENDS amavis"

    these lines stated in "step c"
    POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions.cf
    POSTCONF smtpd_restriction_classes restrict_tpmail
    POSTCONF restrict_tpmail FILE postfix_restrict_tpmail.cf
    should be below this line
    POSTCONF virtual_transport LOCAL postfix_virtual_transport

    I had tried putting changes as first line of "SECTION mta DEPENDS amavis" these are not working so please follow as stated in "step c"

    Now I say what are my changes

    My changes in "step a"
    cd /opt/zimbra/conf
    echo "user1@mydomain.com restrict_tpmail" > tpmail_senders
    echo "user2@mydomain.com restrict_tpmail" >> tpmail_senders
    postmap tpmail_senders

    My changes in "step b
    cd /opt/zimbra/conf
    echo "alloweddomain1.com ok" > tpmail_recipients
    echo "alloweddomain2.com ok" >> tpmail_recipients
    echo "alloweddomain3.com ok" >> tpmail_recipients
    echo "allowedmailid@notalloweddomain.com ok" >> tpmail_recipients
    postmap tpmail_recipients"

    No other changes

    After completing all steps please run
    zmmtactl stop
    zmmtactl start

    It throw errors like below but blocking works

    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /opt/zimbra/postfix/sbin/postconf: warning: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf: unused parameter: smtpd_restriction_class=restrict_tpmail
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/main.cf
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/master.cf
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/tag_as_foreign.re
    /postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.10-20121007.2z/conf/tag_as_originating.re
    /postfix-script: starting the Postfix mail system
    Starting saslauthd...done.
    Started opendkim: pid 29778


    Note:
    You should login as zimbra user do these steps
    All the steps should be done at /opt/zimbra/conf/

    Any queries pls reply to post

  5. #5
    cnvivek is offline Active Member
    Join Date
    May 2013
    Posts
    27
    Rep Power
    2

    Default

    Dear Admin I don't know how to close this thread as solved please close this thread as solved

    Thank you

  6. #6
    rsaeks is offline Active Member
    Join Date
    Jan 2013
    Location
    Chicago, IL
    Posts
    38
    Rep Power
    2

    Default

    Thank you very much for posting this!

  7. #7
    haneeshclt is offline Starter Member
    Join Date
    Aug 2009
    Location
    India
    Posts
    1
    Rep Power
    6

    Default Thanks for posting this

    A big thanks for posting this useful info

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Restricting number of emails from users to specific domains
    By giddy_going in forum Administrators
    Replies: 5
    Last Post: 08-14-2014, 05:09 AM
  2. Replies: 0
    Last Post: 04-25-2013, 04:26 AM
  3. Replies: 3
    Last Post: 01-11-2012, 11:57 PM
  4. Replies: 2
    Last Post: 01-17-2011, 12:53 AM
  5. Restricting users to send mails to outside domains
    By ronaldo217 in forum Administrators
    Replies: 3
    Last Post: 07-30-2010, 10:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •