Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: [SOLVED] How can I empty an entire inbox?

  1. #11
    Chodid is offline Intermediate Member
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    Default

    Thanks for that quick reply - but now when I try to run the command the output I get is
    /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 04:55 AM.

  2. #12
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Why are you running zmlocalconfig and not zmmailbox ?

  3. #13
    Chodid is offline Intermediate Member
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    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$

  4. #14
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    su - zimbra
    if you do not specify the dash in between then in will not source in zimbras profile and paths.

  5. #15
    Chodid is offline Intermediate Member
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    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?

  6. #16
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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

  7. #17
    Chodid is offline Intermediate Member
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    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

  8. #18
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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.

  9. #19
    Chodid is offline Intermediate Member
    Join Date
    Jun 2009
    Posts
    21
    Rep Power
    6

    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

  10. #20
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Postfix problem
    By jimbo in forum Administrators
    Replies: 46
    Last Post: 07-23-2007, 05:24 AM
  2. Automatic reload of inbox?
    By ardiederich in forum Users
    Replies: 4
    Last Post: 04-24-2007, 07:11 AM
  3. imapsync & dovecot
    By PenguinWrangler in forum Migration
    Replies: 3
    Last Post: 01-18-2007, 03:36 PM
  4. Replies: 3
    Last Post: 01-04-2007, 08:58 AM
  5. Url for accessing the inbox folder.
    By Anuradha in forum Administrators
    Replies: 7
    Last Post: 08-12-2006, 06:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •