Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 03-15-2006, 06:28 AM
csyperski csyperski is offline
Member
 
Join Date: Oct 2005
Posts: 13
csyperski is on a distinguished road
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.
Reply With Quote
  #2 (permalink)  
Old 03-15-2006, 08:25 AM
marcmac marcmac is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 2,068
marcmac is on a distinguished road
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.
Reply With Quote
  #3 (permalink)  
Old 03-15-2006, 01:42 PM
csyperski csyperski is offline
Member
 
Join Date: Oct 2005
Posts: 13
csyperski is on a distinguished road
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.
Reply With Quote
  #4 (permalink)  
Old 12-01-2006, 07:59 AM
nino_ricky nino_ricky is offline
Junior Member
 
Join Date: Nov 2006
Posts: 1
nino_ricky is on a distinguished road
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending but not receiving pbwebguy Administrators 11 06-22-2006 12:58 AM
Problem sending and Receiving mail geroshea Installation 3 03-06-2006 09:16 AM
web client not sending or receiving mail eaperezh Administrators 2 02-16-2006 05:46 PM
Not receiving internal mail jacko Installation 6 10-04-2005 12:42 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0