Results 1 to 6 of 6

Thread: Restricting number of emails from users to specific domains

  1. #1
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    2

    Default Restricting number of emails from users to specific domains

    Hi,

    Is it possible to restrict the number of emails that a user can send to a specific domain. For example: Is there a way to enforce that a user can send only 10 emails to gmail/ hotmail in a day?

    How can this be enforced?

    Giddy Going

  2. #2
    Join Date
    Nov 2012
    Location
    Bangalore
    Posts
    173
    Rep Power
    2

    Default

    Hi,

    Can you elaborate what exactly what you want to achieve with this limitation.I dont think there is a way to limit no. of email per domain per user in any of the available mailing solutions(please correct me if i am wrong)although there may be a workaround of your problem if you clearly state what you want to achieve.


    Raunaq Malik

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

    Default Restricting number of emails to free email domains

    Quote Originally Posted by Raunaq View Post
    Hi,

    Can you elaborate what exactly what you want to achieve with this limitation.I dont think there is a way to limit no. of email per domain per user in any of the available mailing solutions(please correct me if i am wrong)although there may be a workaround of your problem if you clearly state what you want to achieve.


    Raunaq Malik
    We are trying to limit the number of email messages that our users can send to gmail/ hotmail / yahoo domains. Restricting sending mails to the domain is too restrictive on the users and hence, my management has decided to limit the number of mails a user can send to these domains in a day. Say, we want to implement a policy that a user can utmost send 25 mails per day to domains such as gmail/ hotmail/ yahoo etc.

  4. #4
    Join Date
    Feb 2012
    Location
    India
    Posts
    35
    Rep Power
    3

    Default

    Quote Originally Posted by giddy_going View Post
    We are trying to limit the number of email messages that our users can send to gmail/ hotmail / yahoo domains. Restricting sending mails to the domain is too restrictive on the users and hence, my management has decided to limit the number of mails a user can send to these domains in a day. Say, we want to implement a policy that a user can utmost send 25 mails per day to domains such as gmail/ hotmail/ yahoo etc.
    The restriction will be working by separated and identified restricted user. as an example, user1 can send an email for various domain while user2 could sending an email for local domain only. We could also add another domain for exception, e.g : allowed sending an email for local domain and some pre-defined domain (sister company, a group of company, etc).

    How to applied the restriction ?

    1.Open console
    2.Log on as Zimbra root user (su – zimbra)
    3.Edit /opt/zimbra/conf/postfix_recipient_restrictions.cf and add following restriction :
    check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders
    4.Edit “/opt/zimbra/conf/zmmta.cf” and add following line :
    POSTCONF smtpd_restriction_classes local_only
    POSTCONF local_only FILE postfix_check_recipient_access.cf
    5.Create a new file “/opt/zimbra/conf/postfix_check_recipient_access.cf” and add :
    check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject
    6.Create a new file “/opt/zimbra/postfix/conf/restricted_senders” and add restricted user with the pre-defined format :
    user1@mydomain.com local_only
    7.Create a new file “/opt/zimbra/postfix/conf/local_domains” and list all the domains where “restricted users” allowed to sent mails. Please follow this syntax :
    example.com OK
    anotherdomain.com OK
    mydomain.com OK

    Run the update configuration command :

    postmap /opt/zimbra/postfix/conf/restricted_senders
    postmap /opt/zimbra/postfix/conf/local_domains
    zmmtactl stop
    zmmtactl start

    After applying these setting, all of restricted user will have limited access for sending an email and they will allowed to sending an email for certain domain only as listed on file “/opt/zimbra/postfix/conf/local_domains”

    Note :

    1.These setting will must be re-written after upgrading Zimbra
    2.To restore restricted user access so they could sending for various domain, please : Remove any added configuration on zmmta.cf and make sure that the restriction setting will applied to blank account. Run this command : postconf -e smtpd_restriction_classes=” and zmmtactl reload to restore the setting.
    3.Take backup of the configuration files that are modified.

  5. #5
    Join Date
    Aug 2014
    Posts
    1
    Rep Power
    1

    Default Domain restricted login for email users.

    Hi all,

    I am running courier + authuserdb hosted domain in RHEL 6.5(x86_64). I have one domain that allows people to signup for free mail accounts using a provided webmail(squirrelmail) that uses imap to check the mail.
    Myquestion is, is it possible to restrict a specific domain so that they can only connect to the server if they connect from the localhost(using the webmail) address?


    I am able to login with system account in webmail but not along with hosted domain.
    i dont want to login with system account alone. I need to be login account name with domain.

    I need Domain restricted login ?

    can any one help me on this...


    Thanks,

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Abdul004 View Post
    I am running courier + authuserdb hosted domain in RHEL 6.5(x86_64). I have one domain that allows people to signup for free mail accounts using a provided webmail(squirrelmail) that uses imap to check the mail.
    Myquestion is, is it possible to restrict a specific domain so that they can only connect to the server if they connect from the localhost(using the webmail) address?
    These forums are for support of Zimbra Collaboration Server, what does your question have to do with that product?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. Limiting Incoming Emails to specific Domains
    By BigEd77 in forum Administrators
    Replies: 2
    Last Post: 04-23-2012, 11:34 AM
  2. Limiting Incoming Emails to specific Domains
    By BigEd77 in forum Installation
    Replies: 0
    Last Post: 04-20-2012, 07:19 AM
  3. Replies: 3
    Last Post: 01-11-2012, 10:57 PM
  4. Replies: 2
    Last Post: 01-16-2011, 11:53 PM
  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
  •