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 06-21-2010, 12:16 PM
Member
 
Posts: 10
Question How to Restrict User to send mails to outside MTA...

Hi,

I use this url to restrict user to send only internal address. Restrict users to certain domain - Zimbra :: Wiki

Restrict users to certain domain - Zimbra :: Wiki

But when I try to email on same domain (internal email) even with own internal address. Zimbra webmail get this error.

==============================================
method: SendMsgRequest
msg: SMTP server reported: Invalid Addresses
code: mail.SEND_FAILURE
detail: soap:Sender
trace: btpool0-6:1277146599796:9ada8eca246a3dd5
request:

Body: {
SendMsgRequest: {
_jsns: "urn:zimbraMail",
m: {
e: [
0: {
a: "punit@example.com",
p: "punit",
t: "t"
},
1: {
a: "local@example.com",
p: "mail",
t: "f"
}
],
idnt: "6d31671b-c3f9-42d8-8944-ba33d4a4ef30",
mp: [
0: {
content: {
_content: "test"
},
ct: "text/plain"
}
],
su: {
_content: "mails"
}
},
suid: 1277166386077
}
},
Header: {
context: {
_jsns: "urn:zimbra",
account: {
_content: "local@example.com",
by: "name"
},
authToken: "(removed)",
format: {
type: "js"
},
sessionId: {
_content: 158,
id: 158
},
userAgent: {
name: "ZimbraWebClient - FF3.0 (Linux)",
version: "5.0.22_GA_3210.RHEL5"
}
}
}
======================================

And in /var/log/zimbra.log i received the following :-

++++++++++++++++++++++++++++++++++++++++++++++++++
Jun 22 00:26:39 bmail postfix/smtpd[8179]: connect from bmail.hostdns.com[208.43.232.38]
Jun 22 00:26:39 bmail postfix/smtpd[8179]: warning: unknown smtpd restriction: "local_only"
Jun 22 00:26:39 bmail postfix/smtpd[8179]: NOQUEUE: reject: RCPT from bmail.hostdns.com[208.43.232.38]: 451 4.3.5 Server configuration error; from=<local@exapmle.com> to=<punit@example.com> proto=ESMTP helo=<bmail.hostdns.com>
++++++++++++++++++++++++++++++++++++++++++++++++++ ++

So please can anyone help me for the same.

Thanks
p-root
Reply With Quote
  #2 (permalink)  
Old 06-21-2010, 12:23 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Please update your forum profile with the output of the following command (do not post the output in this thread):

Code:
zmcontrol -v
I'd suggest you go through that article again and check that all the changes are correct or you could also post the changes you've made here for verification.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-21-2010, 12:41 PM
Member
 
Posts: 10
Question

Hi,

[zimbra@bmail root]$ zmcontrol -v

Release 5.0.22_GA_3210.RHEL5_20100125190233 RHEL5 FOSS edition

[zimbra@bmail root]$

Also please check my configuration with the following details :-

=================================================
[zimbra@bmail root]$ cat /opt/zimbra/conf/postfix_recipient_restrictions.cf
check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders
reject_non_fqdn_recipient
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
reject_unlisted_recipient
%%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%%
%%explode reject_rbl_client VAR:zimbraMtaRestrictionRBLs%%
%%contains VAR:zimbraMtaRestriction check_policy_service unixrivate/policy%%
permit

[zimbra@bmail root]$ vi /opt/zimbra/conf/zmmta.cf
POSTCONF smtpd_restriction_classes local_only
POSTCONF local_only FILE postfix_check_recipient_access.cf

[zimbra@bmail root]$ cat /opt/zimbra/conf/postfix_check_recipient_access.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains

[zimbra@bmail root]$ cat /opt/zimbra/postfix/conf/restricted_senders
local@example.com local_only

[zimbra@bmail root]$ cat /opt/zimbra/postfix/conf/local_domains
example.com OK
============================================

Thanks.
Reply With Quote
  #4 (permalink)  
Old 06-22-2010, 01:12 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by p-root View Post
[zimbra@bmail root]$ zmcontrol -v

Release 5.0.22_GA_3210.RHEL5_20100125190233 RHEL5 FOSS edition
To save having to ask you which version you're using each time you post I asked you to put that in your forum profile, please do that.

Quote:
Originally Posted by p-root View Post
[zimbra@bmail root]$ cat /opt/zimbra/conf/postfix_check_recipient_access.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains
This setting is incorrect, compare it to the wiki article.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-23-2010, 06:31 AM
Member
 
Posts: 10
Question

Hi,

I have changed in that file but still i am not able to send mails :-

================================================== ===
[zimbra@bmail root]$ vi /opt/zimbra/conf/postfix_check_recipient_access.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject
================================================== ===

Please check and do the need ful.
Reply With Quote
  #6 (permalink)  
Old 07-29-2010, 07:37 AM
Member
 
Posts: 12
Smile Hi...

Hi Frnd...

Just now I crossed ur thread....

Let me know where did u entered the below two lines...

vi /opt/zimbra/conf/zmmta.cf
POSTCONF smtpd_restriction_classes local_only
POSTCONF local_only FILE postfix_check_recipient_access.cf

Becoz Me tooo had d same problem..........After some changes in this zmmta.cf file I got it worked..

Regards,
AK Louis
Reply With Quote
  #7 (permalink)  
Old 11-25-2010, 11:42 PM
Starter Member
 
Posts: 2
Default

Hi,

Can you please let me know where exactly i need to add these lines?
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.