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

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 02-21-2010, 05:46 AM
Starter Member
 
Posts: 6
Unhappy zmmailbox error

Hi guys,

quite new with zimbra & also this forum.

I got problem migrating emails using zmmailbox. see below the error. any idea why?
fyi i have no problem login in as admin through web.

[zimbra@zimbra ~]$ /opt/zimbra/bin/zmmailbox -z -m kidam addmessage /Draft /tmp/kidam/saved-messages/mail_saved-messages1.txt
ERROR: service.FAILURE (system failure: Request not allowed on port 443)

[zimbra@zimbra ~]$ /opt/zimbra/bin/zmmailbox -z -u https://localhost:7071 -m kidam addmessage /Draft /tmp/kidam/saved-messages/mail_saved-messages1.txt
ERROR: service.FAILURE (system failure: Request not allowed on port 7071)


$ zmcontrol -v

Release 6.0.3_GA_1915.F11_64_20091118095802 F11_64 FOSS edition.

thanks in advance
Reply With Quote
  #2 (permalink)  
Old 02-21-2010, 06:38 AM
Zimbra Consultant & Moderator
 
Posts: 20,319
Default

Quote:
Originally Posted by ashterix View Post
[zimbra@zimbra ~]$ /opt/zimbra/bin/zmmailbox -z -m kidam addmessage /Draft /tmp/kidam/saved-messages/mail_saved-messages1.txt
ERROR: service.FAILURE (system failure: Request not allowed on port 443)
That might be the error or the fact you haven't supplied the full user@domain.com

Quote:
Originally Posted by ashterix View Post
[zimbra@zimbra ~]$ /opt/zimbra/bin/zmmailbox -z -u https://localhost:7071 -m kidam addmessage /Draft /tmp/kidam/saved-messages/mail_saved-messages1.txt
ERROR: service.FAILURE (system failure: Request not allowed on port 7071)
That's the admin web ui port, you can't do that.

If this is a new install and you're behind a NAT router, have you used a Split DNS (you need to)?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 02-21-2010, 06:50 AM
Starter Member
 
Posts: 6
Default

Quote:
Originally Posted by phoenix View Post
That might be the error or the fact you haven't supplied the full user@domain.com

That's the admin web ui port, you can't do that.

If this is a new install and you're behind a NAT router, have you used a Split DNS (you need to)?
same error even i used full fqdn.

$ /opt/zimbra/bin/zmmailbox -v -z -m kidam@domain.com addmessage /Draft /tmp/kidam/saved-messages/mail_saved-messages1.txt
ERROR: service.FAILURE (system failure: Request not allowed on port 443)
com.zimbra.common.soap.SoapFaultException: system failure: Request not allowed on port 443
ExceptionId:btpool0-16:https://127.0.0.1:443/service/admin/...4a9c5e21358d80
Code:service.FAILURE
at com.zimbra.common.soap.Soap12Protocol.soapFault(So ap12Protocol.java:86)
at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:302)
at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:261)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:304)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:205)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:354)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:318)
at com.zimbra.cs.account.soap.SoapProvisioning.invoke (SoapProvisioning.java:319)
at com.zimbra.cs.account.soap.SoapProvisioning.soapAd minAuthenticate(SoapProvisioning.java:272)
at com.zimbra.cs.zclient.ZMailboxUtil.adminAuth(ZMail boxUtil.java:605)
at com.zimbra.cs.zclient.ZMailboxUtil.initMailbox(ZMa ilboxUtil.java:661)
at com.zimbra.cs.zclient.ZMailboxUtil.main(ZMailboxUt il.java:2596)


Yes, this is new install but not behind NAT.
Reply With Quote
  #4 (permalink)  
Old 02-21-2010, 11:43 PM
Zimbra Consultant & Moderator
 
Posts: 20,319
Default

In what mode is the server running, have you used zmtlsctl to change it? If it's not in https then change it to that and try your command again.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 02-22-2010, 12:06 AM
Starter Member
 
Posts: 6
Default

Quote:
Originally Posted by phoenix View Post
In what mode is the server running, have you used zmtlsctl to change it? If it's not in https then change it to that and try your command again.
i've tried all combination, zmtlsctl http, https, both & mixed but no luck.
any idea what's wrong? all services running fine...

[zimbra@zimbra ~]$ zmcontrol status
Host zimbra.xxxxx.com
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running
Reply With Quote
  #6 (permalink)  
Old 02-22-2010, 04:14 AM
Moderator
 
Posts: 7,929
Default

Code:
zmmailbox -z -m uxbod@domain.com am /Drafts /tmp/message.txt 
177161 (/tmp/message.txt)
Seems to work okay here. How did you format mail_saved-messages1.txt ?
__________________
Reply With Quote
  #7 (permalink)  
Old 02-22-2010, 08:00 PM
Starter Member
 
Posts: 6
Default

Quote:
Originally Posted by uxbod View Post
Code:
zmmailbox -z -m uxbod@domain.com am /Drafts /tmp/message.txt 
177161 (/tmp/message.txt)
Seems to work okay here. How did you format mail_saved-messages1.txt ?
yup i think the mail format not right!
$ /opt/zimbra/bin/zmprov -z -s localhost:7071
prov> sm kidam
mailbox: kidam@xxxxx.com, size: 0 B, messages: 0, unread: 0
mbox kidam@xxxxx.com> am /Drafts /tmp/kidam/saved-messages/mail_saved-messages1.txt
ERROR: zclient.CLIENT_ERROR (/tmp/kidam/saved-messages/mail_saved-messages1.txt does not contain a valid RFC 822 message)

i converted the mail (openwebmail mailbox) using some script found here [SOLVED] Script for migration from Openwebmail to Zimbra 4.5.6
do you hv example of the format? just want to test to make sure the command works fine. thanks
Reply With Quote
  #8 (permalink)  
Old 02-23-2010, 01:24 AM
Moderator
 
Posts: 7,929
Default

Code:
From: "--[ UxBoD ]--" <uxbod@domain.com>
Reply-To: "--[ UxBoD ]--" <uxbod@domain.com>
To: xyz <uxbod@domain.com>
Subject: Test Importing a Message to Draft
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

This should appear in my Drafts folder!

Thanks, UxBoD
__________________
Reply With Quote
  #9 (permalink)  
Old 02-23-2010, 03:32 AM
Starter Member
 
Posts: 6
Default

other error occured!

$ /opt/zimbra/bin/zmprov -z -s localhost:7071
prov> sm kidam
mailbox: kidam@xxxxx.com, size: 0 B, messages: 0, unread: 0
mbox kidam@xxxxx.com> am /Drafts /tmp/test.txt
ERROR: zclient.UPLOAD_FAILED (Attachment post failed, status=401)
Reply With Quote
  #10 (permalink)  
Old 02-23-2010, 03:49 AM
Moderator
 
Posts: 7,929
Default

Code:
zmmailbox -z -m user@domain.com am /Drafts /tmp/message.txt
__________________
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.