restrict user to send mail to particular email address only
Results 1 to 7 of 7

Thread: restrict user to send mail to particular email address only

  1. #1
    Member
    Join Date
    Jun 2012
    Posts
    21

    restrict user to send mail to particular email address only

    Dear Sir,

    I want to do setting in zimbra 7.1.3 open source edition. restrict user to send mail to perticular email address.

    example:- abc@xyz.com should not sent mail to abc@gmail.com ID only.
    he can sent mail to other gmail IDs.

    How can I accomplish this task?

    please help me.

    Thanks,
    shashikant sutar

  2. #2
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,354
    Hello Shashikant!

    In order to forbid your users to send emails to a single email address or to a whole domain you specify one or more postfix transport rules.
    To do so on Zimbra 7.1.3 follow this steps:

    - Create a new file called "postfix_transport" in /opt/zimbra/conf/
    - Enter the email addresses and domains you want to block in the following format:

    Code:
    email@domain.com          error: Forbidden Recipient Address
    domain.com          error: Forbidden Recipient Domain
    (you can change the error message after "error:" with one of your choice)

    - Save and close the file
    - Use postmap to create a lookup table based on the file you just created (run the command as the 'zimbra' user)
    Code:
    postmap /opt/zimbra/conf/postfix_transport
    - Edit the localconfig.xml file to add the contents of the lookup table to the "postfix_transport_maps" key

    change:
    Code:
    <key name="postfix_transport_maps">
        <value>proxy:ldap:/opt/zimbra/conf/ldap-transport.cf</value>
      </key>
    to:
    Code:
     
    <key name="postfix_transport_maps">
        <value>hash:/opt/zimbra/conf/postfix_transport, proxy:ldap:/opt/zimbra/conf/ldap-transport.cf</value>
      </key>
    - Save the file and exit.
    - Wait for the MTA service to restart automatically (or restart it manually running `zmmtactl restart` as the zimbra user)

    You can now check the main.cf file to see if the change has been correctly applied and the zmconfigd.log/zimbra.log files to see if there is any error related to the new setting.

    Should you need to add more forbidden addresses/domains, remember to run the `postmap` command I previously mentioned every time to make any change to the postfix_transport file, otherwise the changes won't be taken into account by Zimbra.

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  3. #3
    Member
    Join Date
    Jun 2012
    Posts
    21
    Dear Sir,
    Thanks for your support
    I have implemented resolution. its working for me.
    Thanks,
    shashikant sutar

  4. #4
    Member
    Join Date
    Jun 2012
    Posts
    21

    How can we configure above settings in zimbra 8.0.3

    Dear Cine,

    How can we configure above settings in zimbra open source 8.0.3

    Please give me steps.

    Thanks,

    shashikant sutar

  5. #5
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,354
    Hello shashikant!

    I've never applied this particular configuration on Zimbra 8.x, but the steps should be pretty similar... Did you have any issue applying it?

    IIRC the only difference is the "postfix_transport_maps" key not being in the localconfig.xml file by default, so you'll need to create it instead of editing it...


    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  6. #6
    Member
    Join Date
    Jun 2012
    Posts
    21

    Thanks for your instant Support

    Dear Cine,

    Thanks for your instant support.

    Given steps work for me and its working fine as my requirement.


    Thanks,

    shashikant sutar

  7. #7
    Junior Member
    Join Date
    Feb 2015
    Posts
    1
    Dear ZeXtras Team,

    We have followed above instruction as well as and the present situation is :

    when I put any mail address (like abc@gmail.com) into "postfix_transport" & the result is, I can't send mail from my mail server (ex. mail.xyz.com) to any gmail.com domain.
    or
    When I put domain name (like gmail.com) in that file & the result is, I can't send mail from my mail server (ex. mail.xyz.com) to any gmail.com domain.

    Also I don't understand how can I set the rule for specific user only.

    example:- only abc@xyz.com can't sent mail to abc@gmail.com ID only. But, others@xyz.com can sent mail to abc@gmail.com ID.

    Advance Thanks
    Nahid

LinkBacks (?)

  1. 04-22-2014, 03:55 AM
  2. 04-19-2014, 12:58 PM

Bookmarks

Posting Permissions

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