Results 1 to 4 of 4

Thread: Setting Restrictions on Sending and Receiving

  1. #1
    Join Date
    Oct 2005
    Posts
    13
    Rep Power
    10

    Default Setting Restrictions on Sending and Receiving

    I work for a High School District which is considering using Zimbra for 4000 student email accounts, but I am having a problem setting some postfix configs. I have to setup zimbra to restict students so they can send and recieve from the domain in which they belong plus a few white listed domains. I am attempting to modify the
    smtpd_recipient_restrictions
    to include "check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders"
    but it seems that everything I restart zimbra this setting is reset to
    "smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_sender, reject_unauth_destination, permit"

    Am I not going to be able to modify this in postfix? Is there a easier way to block sending and recieving to all domains with the exception of a few whitelisted sites. Thanks in advance for any help that you can offer.

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    This is one of the postfix config items we manage, so it's rewritten on startup. You'll want to edit the file /opt/zimbra/conf/postfix_recipient_restrictions.cf, which is a template for this config value. I'd add your value directly after permit_mynetworks. Then restart postfix.

    The file is one value per line, with some substitution syntax that you don't need to worry about.

    WARNING - this will get wiped out on upgrade (the .cf will be overwritten) so keep a copy somewhere.

  3. #3
    Join Date
    Oct 2005
    Posts
    13
    Rep Power
    10

    Default Anyone looking to do the same thing, this is what we did

    Anyone looking to do the same thing, this is what we did


    reject_non_fqdn_recipient
    permit_sasl_authenticated
    hash:/opt/zimbra/postfix/conf/accessFile // add this to /opt/zimbra/conf/postfix_recipient_restrictions.cf
    permit_mynetworks
    %%contains VAR:zimbraMtaRestriction reject_invalid_hostname%%
    %%contains VAR:zimbraMtaRestriction reject_non_fqdn_hostname%%
    %%contains VAR:zimbraMtaRestriction reject_non_fqdn_sender%%
    %%contains VAR:zimbraMtaRestriction reject_unknown_client%%
    %%contains VAR:zimbraMtaRestriction reject_unknown_hostname%%
    %%contains VAR:zimbraMtaRestriction reject_unknown_sender_domain%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client dnsbl.njabl.org%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client opm.blitzed.org%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client relays.ordb.org%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client cbl.abuseat.org%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client bl.spamcop.net%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client dnsbl.sorbs.net%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client sbl.spamhaus.org%%
    %%contains VAR:zimbraMtaRestriction reject_rbl_client relays.mail-abuse.org%%
    reject_unauth_destination
    permit




    in /opt/zimbra/postfix/conf/main.cf modify to include:
    smtpd_client_restrictions = hash:/opt/zimbra/postfix/conf/accessFile, reject_unauth_pipelining
    smptd_sender_restrictions = hash:/opt/zimbra/postfix/conf/accessFile

    then create
    /opt/zimbra/postfix/conf/accessFile
    net reject
    com reject
    org reject
    hotmail.com OK // This will reject all email from any .com, .org, or .net domain but allow hotmail.com

    remember to compile the /opt/zimbra/postfix/conf/accessFile with postmap.

  4. #4
    Join Date
    Nov 2006
    Posts
    1
    Rep Power
    8

    Default Block sending mails to specific domains

    Hi,

    I work with users that only needs to send mails to a specific domain. Example:

    user1 only needs to send to domain1.com
    user2 needs to send to domain1.com and domain2.com

    With this a can control spams and a lot of problems with external mails. Please somebody can help me with this.

    Thanks.

Similar Threads

  1. Sending but not receiving
    By pbwebguy in forum Administrators
    Replies: 11
    Last Post: 06-22-2006, 12:58 AM
  2. Problem sending and Receiving mail
    By geroshea in forum Installation
    Replies: 3
    Last Post: 03-06-2006, 09:16 AM
  3. web client not sending or receiving mail
    By eaperezh in forum Administrators
    Replies: 2
    Last Post: 02-16-2006, 05:46 PM
  4. Not receiving internal mail
    By jacko in forum Installation
    Replies: 6
    Last Post: 10-04-2005, 12: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
  •