Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-2012, 11:54 PM
Loyal Member
 
Posts: 95
Question Unable to Restricting users to send mails to certain domains in Release 7.1.0_GA_3140

Hi,
I have configured exctaly according to bellow link
Restrict users to certain domain - Zimbra :: Wiki

same will work fine in old zimbra foss version but not work with Release 7.1.0_GA_3140.RHEL5_64_20110329150833 CentOS5_64 FOSS edition ( it will blocking all domains and all addresses insted of defined in /opt/zimbra/postfix/conf/local_domains )

Thanks and waiting for suggestions.

Last edited by phoenix; 01-04-2012 at 12:06 AM..
Reply With Quote
  #2 (permalink)  
Old 01-04-2012, 12:28 AM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by sadiq007 View Post
Hi,
I have configured exctaly according to bellow link
Restrict users to certain domain - Zimbra :: Wiki

same will work fine in old zimbra foss version but not work with Release 7.1.0_GA_3140.RHEL5_64_20110329150833 CentOS5_64 FOSS edition ( it will blocking all domains and all addresses insted of defined in /opt/zimbra/postfix/conf/local_domains )

Thanks and waiting for suggestions.
The above link works like a charm on mine. Could you please paste the contents of each file as noticed on the above link?

In my experience, if the setting will blocking all domains and all addresses instead of defined in /opt/zimbra/postfix/conf/local_domains, most likely there are an errors on one of more related files.
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #3 (permalink)  
Old 01-04-2012, 12:51 AM
Loyal Member
 
Posts: 95
Default

[zimbra@mail]$ more /opt/zimbra/conf/postfix_recipient_restrictions.cf

check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders
%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:127.0.0.1:10031%%
reject_non_fqdn_recipient
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
reject_unlisted_recipient


[zimbra@mail]$ more /opt/zimbra/conf/zmmta.cf | grep -2 "SECTION mta"

SECTION mta DEPENDS amavis
POSTCONF smtpd_restriction_classes local_only
POSTCONF local_only FILE postfix_check_recipient_access.cf


[zimbra@mail]$ more /opt/zimbra/conf/postfix_check_recipient_access.cf

#permit to only specified addresses and sending all others are also blocked
check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject


[zimbra@mail]$ more /opt/zimbra/postfix/conf/restricted_senders
# sending restriction
test@mydomain.com local_only

[zimbra@mail]$ more /opt/zimbra/postfix/conf/local_domains

administrator@mydomain.com OK
test@mydomain.com OK
user1@mydomain.com OK
user2@mydomain.com OK

[zimbra@mail]$ su
chown root /opt/zimbra/postfix/conf/*.*
chown root /opt/zimbra/postfix/conf/*
chgrp postfix /opt/zimbra/postfix/conf/*.*
chgrp postfix /opt/zimbra/postfix/conf/*
postmap /opt/zimbra/postfix/conf/local_domains
postmap /opt/zimbra/postfix/conf/restricted_senders

[zimbra@mail]$exit
[zimbra@mail]$zmmtactl stop; zmmtactl start

now insted of given addresses user1@mydomain.com; user2@mydomain.com etc... i am unable to send mail to any addresses.

Last edited by sadiq007; 01-04-2012 at 12:52 AM.. Reason: add more
Reply With Quote
  #4 (permalink)  
Old 01-04-2012, 01:47 AM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by sadiq007 View Post
...

[zimbra@mail]$ more /opt/zimbra/postfix/conf/local_domains

administrator@mydomain.com OK
test@mydomain.com OK
user1@mydomain.com OK
user2@mydomain.com OK

...

now insted of given addresses user1@mydomain.com; user2@mydomain.com etc... i am unable to send mail to any addresses.
Are you sure /opt/zimbra/postfix/conf/local_domains contains an email address instead of domain name?

IMHO, /opt/zimbra/postfix/conf/local_domains should contains your local domains (it should mydomain.com instead of an email address), isn't it?
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #5 (permalink)  
Old 01-04-2012, 02:20 AM
Loyal Member
 
Posts: 95
Default

No dear we can assign both things domain and addresses also, both will work in my old zimbra version bellow is my complete /opt/zimbra/postfix/conf/local_domains

administrator@mydomain.com OK
test@mydomain.com OK
user1@mydomain.com OK
user2@mydomain.com OK
mydomain2.com OK
domain3.com OK

but still everything is blocked for that user.

Last edited by sadiq007; 01-04-2012 at 02:20 AM.. Reason: add more
Reply With Quote
  #6 (permalink)  
Old 01-11-2012, 10:57 PM
Loyal Member
 
Posts: 95
Default

Any updates?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.