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

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
  #11 (permalink)  
Old 10-10-2009, 05:33 AM
Intermediate Member
 
Posts: 21
Default

Thanks for that quick reply - but now when I try to run the command the output I get is
Quote:
/opt/zimbra/bin/zmshutil: line 39: Error: command not found
Error: executing: /opt/zimbra/bin/zmlocalconfig -q -m export
do you know what went wrong?

Thanks
chodid

Last edited by Chodid; 10-10-2009 at 05:55 AM..
Reply With Quote
  #12 (permalink)  
Old 10-10-2009, 06:51 AM
Moderator
 
Posts: 7,911
Default

Why are you running zmlocalconfig and not zmmailbox ?
__________________
Reply With Quote
  #13 (permalink)  
Old 10-10-2009, 08:06 AM
Intermediate Member
 
Posts: 21
Default

I am running zmmailbox, thats the whole action:
Code:
root@srv2050:~# su zimbra
zimbra@srv2050:/root$ zmmailbox -z -m account@domain.tld emtpyFolder /Inbox
/opt/zimbra/bin/zmshutil: line 39: Error: command not found
Error: executing: /opt/zimbra/bin/zmlocalconfig -q -m export
zimbra@srv2050:/root$
Reply With Quote
  #14 (permalink)  
Old 10-10-2009, 08:28 AM
Moderator
 
Posts: 7,911
Default

Code:
su - zimbra
if you do not specify the dash in between then in will not source in zimbras profile and paths.
__________________
Reply With Quote
  #15 (permalink)  
Old 10-10-2009, 08:42 AM
Intermediate Member
 
Posts: 21
Default

Code:
root@srv2050:~# su - zimbra
zimbra@srv2050:~$ zmmailbox -z -m account@domain.tld emptyFolder /Inbox
/opt/zimbra/bin/zmshutil: line 39: Error: command not found
Error: executing: /opt/zimbra/bin/zmlocalconfig -q -m export
zimbra@srv2050:~$
Still the same problem. I read around a little, from what it seems like the zmlocalconfig -q -m export problem seems to coincide with a wrong DNS setup, could that be the case here too?
Reply With Quote
  #16 (permalink)  
Old 10-10-2009, 10:57 AM
Moderator
 
Posts: 7,911
Default

I would have though not TBH ... Always worth checking your DNS so
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes (copy 'n' paste)
ls -l /opt/zimbra/bin/zmlocalconfig
ls -l /opt/zimbra/bin/zmshutil
__________________
Reply With Quote
  #17 (permalink)  
Old 10-11-2009, 06:34 AM
Intermediate Member
 
Posts: 21
Default

cat /etc/hosts
Code:
127.0.0.1 localhost
95.129.49.*** srv2050.provider.tld
cat /etc/resolv.conf
Code:
nameserver 95.129.49.***
dig yourdomain mx
Code:
; <<>> DiG 9.4.2-P2 <<>> domain.net mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27934
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;domain.net.                    IN      MX

;; ANSWER SECTION:
domain.net.             604800  IN      MX      10 mail.domain.net.

;; AUTHORITY SECTION:
domain.net.             604800  IN      NS      mail.domain.net.

;; ADDITIONAL SECTION:
mail.domain.net.        604800  IN      A       95.129.49.***

;; Query time: 0 msec
;; SERVER: 95.129.49.***#53(95.129.49.***)
;; WHEN: Sun Oct 11 12:25:27 2009
;; MSG SIZE  rcvd: 79
dig yourdomain any
Code:
; <<>> DiG 9.4.2-P2 <<>> chadid.net any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12535
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;domain.net.                    IN      ANY

;; ANSWER SECTION:
domain.net.             604800  IN      SOA     mail.domain.net.
admin.domain.net.          70725 604800 86400 2419200 604800
domain.net.             604800  IN      NS      mail.domain.net.
domain.net.             604800  IN      MX      10 mail.domain.net.
domain.net.             604800  IN      A       95.129.49.***

;; ADDITIONAL SECTION:
mail.domain.net.        604800  IN      A       95.129.49.***

;; Query time: 20 msec
;; SERVER: 95.129.49.**#53(95.129.49.***)
;; WHEN: Sun Oct 11 12:26:11 2009
;; MSG SIZE  rcvd: 137
host `hostname`
Code:
srv2050.provider.tld has address 95.129.49.***
ls -l /opt/zimbra/bin/zmlocalconfig
Code:
-rwxr-xr-x 1 root root 1647 Sep 12 06:59 /opt/zimbra/bin/zmlocalconfig
ls -l /opt/zimbra/bin/zmshutil
Code:
-rwxr-xr-x 1 root root 1758 Sep 12 06:59 /opt/zimbra/bin/zmshutil
Thanks for all the really quick answers so far. I hope it's ok that I changed the domains and IP adresses but if its necessary for me to post the whole thing then tell me

Best regards
Reply With Quote
  #18 (permalink)  
Old 10-11-2009, 07:39 AM
Moderator
 
Posts: 7,911
Default

/etc/hosts is not correct; it should be
Code:
127.0.0.1           localhost.localdomain localhost
95.129.49.*** srv2050.provider.tld srv2050
and the MX record should point to srv2050.provider.tld.
__________________
Reply With Quote
  #19 (permalink)  
Old 10-11-2009, 09:26 AM
Intermediate Member
 
Posts: 21
Default

Thanks so much for your help, now it suddenly works

Is there a similar command to move the contents of an entire folder into another folder?

Best regards
Reply With Quote
  #20 (permalink)  
Old 10-12-2009, 01:20 AM
Moderator
 
Posts: 7,911
Default

Zmmailbox - Zimbra :: Wiki
__________________
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.