Results 1 to 2 of 2

Thread: Zimbra 8.0 Restrict sending to specific domains?

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Austin, TX
    Posts
    27
    Rep Power
    5

    Question Zimbra 8.0 Restrict sending to specific domains?

    I'm looking at this guide: Restrict sending to certain domains - Zimbra :: Wiki
    Just upgraded an internal only email system to Zimbra 8.0 (Release 8.0.0_GA_5434.RHEL6_64_20120907144639 CentOS6_64 FOSS edition.)
    It is set with .local domain name so most outside email servers will reject everything, but I'd rather continue limiting it to internal usage only.
    Looking around Zimbra 8.0 has changed quite a few things so that postfix changes get saved between upgrades.
    This makes those instructions above not work any longer.
    I haven't been able to find a good guide on customizing postfix on Zimbra 8.0 so I can at least try a few things out.
    Anyone have an idea or know how to go about setting this up for Zimbra 8.0?

  2. #2
    Join Date
    Aug 2010
    Location
    Austin, TX
    Posts
    27
    Rep Power
    5

    Default

    I got a temporary fix in place for mine. Here is everything I did in case anyone needs this urgently.

    Followed steps A & B from link above as zimbra.

    Made a copy of smtpd_sender_restrictions.cf and saved it outside of Zimbra folder as a backup.
    I added this line to bottom of /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
    Code:
    check_sender_access hash:/opt/zimbra/conf/tpmail_senders
    Made a copy of main.cf and saved it outside of Zimbra folder as a backup.
    I added these lines to bottom of /opt/zimbra/postfix/conf/main.cf
    Code:
    smtpd_restriction_classes = restrict_tpmail
    restrict_tpmail = check_recipient_access hash:/opt/zimbra/conf/tpmail_recipients, reject
    After doing zmcontrol stop & start it was working for me.
    The necessary line was added to smtpd_sender_restrictions and the two lines at bottom of main.cf were still there.


    This definitely cannot be the right way to go about it and I didn't expect it to even work since main.cf is supposed to be rewritten.
    Looks like it's not always fully rewriting the main.cf file and only rewrites the lines it is told to. I'm guessing smtpd_sender_restrictions comes from that other file.


    I wanted this working by morning so until I hear of a better way it'll work.

Similar Threads

  1. Replies: 1
    Last Post: 09-17-2012, 10:50 AM
  2. Restrict sending to certain domains except admin
    By stenlylee in forum Administrators
    Replies: 0
    Last Post: 04-04-2012, 04:03 PM
  3. [SOLVED] restrict sending mails to other domains
    By stalker in forum Administrators
    Replies: 12
    Last Post: 12-09-2011, 08:13 AM
  4. Replies: 5
    Last Post: 06-17-2011, 11:57 PM
  5. Replies: 1
    Last Post: 02-16-2009, 11:09 PM

Tags for this Thread

Posting Permissions

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