Re: [Dovecot] Mail migration troubles
On 3/4/2012 6:06 μμ, Spyros Tsiolis wrote: What do you mean by namespace ? See: http://wiki2.dovecot.org/Namespaces Best regards, Nick
Re: [Dovecot] Mail migration troubles
Also, What do you mean by namespace ? I am sorry I didn't get that one : >> dovecot -n output would have helped. Mainly: do you have a namespace >> prefix or not? That's about the only thing I can think of related to >> that error message (e.g. dovecot has non-empty namespace prefix, while >> TB has empty namespace prefix). I missed the "namespace" thing. s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis
Re: [Dovecot] Mail migration troubles
Hi Timo, > > From: Timo Sirainen >To: Spyros Tsiolis >Cc: Dovecot >Sent: Tuesday, 3 April 2012, 8:32 >Subject: Re: [Dovecot] Mail migration troubles > >On Sun, 2012-04-01 at 22:54 +0100, Spyros Tsiolis wrote: >> However, I have this nagging problem with most of the thunderbird >> MTAs. When I try to delete some "test" messages I sent to make sure >> that everything works, it comes back with the following message on >> the bottom of the Thunderbird window : >> >> "The current operation on InBox did not succeed. >> The mail server for account "acco...@bloomingdomain.gr" >> responded [TRYCREATE] mailbox doesn't exist : Trash" > >That error probably happens when deleting a message. Yes, it does Timo. Thank you. >> Dovecot v1.2.15 AFAIK Actually it's v1.2.16 >dovecot -n output would have helped. Mainly: do you have a namespace >prefix or not? That's about the only thing I can think of related to >that error message (e.g. dovecot has non-empty namespace prefix, while >TB has empty namespace prefix). Why do I keep forgetting this ? Damn the gods :-) !@#$ :-) Here's the output of "dovecot -n" : [root@mailgate ~]# dovecot -n # 1.2.16: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.17.4.el5 i686 CentOS release 5.5 (Final) ext3 base_dir: /var/run/dovecot/ log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/dovecot-info.log ssl_parameters_regenerate: 48 verbose_ssl: yes login_dir: /var/run/dovecot//login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_greeting: * Dovecot ready * login_max_processes_count: 64 mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir mail_plugins: zlib auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /etc/dovecot/passwd passdb: driver: pam userdb: driver: static args: uid=vmail gid=vmail home=/home/vmail/%u userdb: driver: passwd [root@mailgate ~]# I suspect it's some freak thunderbird bug. It's the only explanation. I've migrated about 20 mailboxes and it's the only one acting up. Thanks again Timo, s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis
Re: [Dovecot] Mail migration troubles
On Sun, 2012-04-01 at 22:54 +0100, Spyros Tsiolis wrote: > However, I have this nagging problem with most of the thunderbird > MTAs. When I try to delete some "test" messages I sent to make sure > that everything works, it comes back with the following message on > the bottom of the Thunderbird window : > > "The current operation on InBox did not succeed. > The mail server for account "acco...@bloomingdomain.gr" > responded [TRYCREATE] mailbox doesn't exist : Trash" That error probably happens when deleting a message. > Dovecot v1.2.15 AFAIK dovecot -n output would have helped. Mainly: do you have a namespace prefix or not? That's about the only thing I can think of related to that error message (e.g. dovecot has non-empty namespace prefix, while TB has empty namespace prefix).
Re: [Dovecot] Mail migration troubles
Hi again Charles, >>> Did you compare FS permissions on a working setup and the >>> non-working one? I don't have a non-working setup of dovecot >> Well, I checked the dovecot log files >> (dovecot-info.log / dovecot.log) >> It doesn't show something suspicious. >> Just the usual login logout and >> password chatter. > > Well, maybe one of the reasons people don't always try to help you is you > often just don't respond with answers to questions... Oh, I see. It's like what I ask questions about issues and get answers on other issues... > WHAT ARE THE FS PERMISSIONS ON THAT USERS MAIL FOLDERS? And don't just say > 'they are ok' - SHOW them... All users run with the virtual mail account (vmail) accounts (if I recall correctly) are stored in %maildir format. Do you want me to display user perms ? OK ! Fine. Here's the contents of the folder with the problem : [root@mailserver mailaccount]# ls -l total 8 drwx-- 6 vmail vmail 4096 Apr 2 17:08 Maildir -rw-rw-rw- 1 vmail vmail 141 Mar 30 17:21 user.tab Is this what you need ? I didn't answer this not because I don't want to but because I don't know if this is what you want. There's no need to shout. > And how about SHOWING SOME LOG EXCERPTS (and increase verbosity if needed), > instead of just saying you don't see anything relevant. Here goes : Apr 02 14:26:02 auth(default): Info: client out: OK1user=acco...@domain.gr Apr 02 14:26:02 auth(default): Info: master in: REQUEST1785294431 Apr 02 14:26:02 auth(default): Info: master out: USER1785account@domain.gruid=501gid=502home=/ho me/vmail/acco...@domain.gr Apr 02 14:26:02 imap-login: Info: Login: user=, method=PLAIN, rip=192.168.0.20, lip=192.168.1. 4, TLS Apr 02 14:26:02 auth(default): Info: new auth connection: pid=29450 Apr 02 14:27:02 auth(default): Info: client in: AUTH1PLAINservice=imapsecuredlip=192.168.1.4rip=192. 168.0.20lport=993rport=4494 Apr 02 14:27:02 auth(default): Info: client out: CONT1 Apr 02 14:27:02 auth(default): Info: client in: CONT1AHRpY2ldA29ZnzWzc9c5cgxTQA== Apr 02 14:27:02 auth(default): Info: passwd-file(acco...@domain.gr,192.168.0.20): lookup: user=acco...@domain.gr file=/etc/dovecot/passwd Apr 02 14:27:02 auth(default): Info: client out: OK1user=acco...@domain.gr Apr 02 14:27:02 auth(default): Info: master in: REQUEST1786294501 Apr 02 14:27:02 auth(default): Info: master out: USER1786account@domain.gruid=501gid=502home=/ho me/vmail/acco...@domain.gr Apr 02 14:27:02 imap-login: Info: Login: user=, method=PLAIN, rip=192.168.0.20, lip=192.168.1. 4, TLS Apr 02 14:27:02 auth(default): Info: new auth connection: pid=29453 s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis
Re: [Dovecot] Mail migration troubles
On 2012-04-02 8:49 AM, Spyros Tsiolis wrote: On2 April 2012, 12:55, Charles Marcus wrote: On 2012-04-02 6:51 AM, Spyros Tsiolis wrote: As far as I can tell everything went well except for one user (so far) that he tries to move fresh mail to (mv'd) folders and it doesn't get there. Also when he tries to delete messages, they don't get deleted. I did "cp -r" actually and kept the old mailboxes nearby just in case. What do the logs show when he tries this? Did you compare FS permissions on a working setup and the non-working one? Well, I checked the dovecot log files (dovecot-info.log / dovecot.log) It doesn't show something suspicious. Just the usual login logout and password chatter. Well, maybe one of the reasons people don't always try to help you is you often just don't respond with answers to questions... WHAT ARE THE FS PERMISSIONS ON THAT USERS MAIL FOLDERS? And don't just say 'they are ok' - SHOW them... And how about SHOWING SOME LOG EXCERPTS (and increase verbosity if needed), instead of just saying you don't see anything relevant. -- Best regards, Charles
Re: [Dovecot] Mail migration troubles
- Original Message - > From: Charles Marcus > To: dovecot@dovecot.org > Cc: > Sent: Monday, 2 April 2012, 12:55 > Subject: Re: [Dovecot] Mail migration troubles > > On 2012-04-02 6:51 AM, Spyros Tsiolis wrote: >> As far as I can tell everything went well except for one >> user (so far) that he tries to move fresh mail to (mv'd) >> folders and it doesn't get there. >> Also when he tries to delete messages, they don't get >> deleted. >> I did "cp -r" actually and kept the old mailboxes nearby >> just in case. > > What do the logs show when he tries this? > > Did you compare FS permissions on a working setup and the non-working one? > > -- > Best regards, > > Charles > Hi Charles, Well, I checked the dovecot log files (dovecot-info.log / dovecot.log) It doesn't show something suspicious. Just the usual login logout and password chatter. At this point, I suspect it's thunderbird again. I asked the rest of the people how they are doing and they said they were doing fine. So I suspect there's something wrong with this specific dovecot installation. Thank you though, s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis
Re: [Dovecot] Mail migration troubles
> On 2/4/2012 1:51 μμ, Spyros Tsiolis wrote: > >> I did "cp -r" actually and kept the old mailboxes nearby >> just in case. > > If on CentOS/RHEL (don't know for other systems), you could try using > explicitly: > > /bin/cp -pr > > for better results, because cp is aliased. > > You might already be aware of this, but just in case... > > Nick > Hi Nick, No I didn't know this. I mean I had it stored in the back of my head but to tell you the truth I would never use it. Yes, thank you kindly for pointing that. I'll use that switch from now on. And , yes, I am using CentOS. Can't live without it, no matter what the people say :-) Thank you again, s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis
Re: [Dovecot] Mail migration troubles
On 2/4/2012 1:51 μμ, Spyros Tsiolis wrote: I did "cp -r" actually and kept the old mailboxes nearby just in case. If on CentOS/RHEL (don't know for other systems), you could try using explicitly: /bin/cp -pr for better results, because cp is aliased. You might already be aware of this, but just in case... Nick
Re: [Dovecot] Mail migration troubles
On 2012-04-02 6:51 AM, Spyros Tsiolis wrote: As far as I can tell everything went well except for one user (so far) that he tries to move fresh mail to (mv'd) folders and it doesn't get there. Also when he tries to delete messages, they don't get deleted. I did "cp -r" actually and kept the old mailboxes nearby just in case. What do the logs show when he tries this? Did you compare FS permissions on a working setup and the non-working one? -- Best regards, Charles
Re: [Dovecot] Mail migration troubles
> On 2012-04-02 6:19 AM, Spyros Tsiolis wrote: >> Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ? >> E.g. in my example, I only copy mailboxes from an old > "u...@domaina.gr" to >> "u...@domainb.gr". >> >> Is the above all I need ? >> >> Is there a native dovecot tool for this or should I just use imapsync ? > > Are these on ths same box? If so, why not just mv them?? Hi Charles, Yes, on the same box, on the same drive, on the same partition/filesystem. I have a box with dovecot/XMail (pop3/smtp) and two domains; DomainA and DomainB The company bosses decided to move about 20 mailboxes from DomainA to DomainB. As far as I can tell everything went well except for one user (so far) that he tries to move fresh mail to (mv'd) folders and it doesn't get there. Also when he tries to delete messages, they don't get deleted. I did "cp -r" actually and kept the old mailboxes nearby just in case. Thanks, s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis
Re: [Dovecot] Mail migration troubles
Mandag 2. april 2012 11.19.47 skrev Spyros Tsiolis: [snip] > Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ? > E.g. in my example, I only copy mailboxes from an old "u...@domaina.gr" to > "u...@domainb.gr". > > Is the above all I need ? That worked for me when creating a backup copy of a mailbox, but with a different login. I copied mailbox A to mailbox B, then created an entry in the auth table that pointed to mailbox B. This was with maildir. I don't know if it works the same with all other types. Regards, Arne -- Arne K. Haaje http://www.drlinux.no/ LinkedIn: http://no.linkedin.com/pub/arne-haaje/27/189/bb
Re: [Dovecot] Mail migration troubles
On 2012-04-02 6:19 AM, Spyros Tsiolis wrote: Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ? E.g. in my example, I only copy mailboxes from an old "u...@domaina.gr" to "u...@domainb.gr". Is the above all I need ? Is there a native dovecot tool for this or should I just use imapsync ? Are these on ths same box? If so, why not just mv them?? -- Best regards, Charles
Re: [Dovecot] Mail migration troubles
I have a suspicion that, as usual, no one is going to answer my message. Because of the fact that this is a call for help and no-one ever bothers, I 'll just have to re-phrase my question : Here's what I found on the dovecot wiki : imapsync Here's an example of how to run imapsync for a single user: imapsync --syncinternaldates \ --host1 192.168.1.57 --authmech1 LOGIN --user1 l...@example.com --password1 secret \ --host2 127.0.0.1--authmech2 LOGIN --user2 l...@example.com --password2 secret It is quite easy to script this for a number of users, assuming you have their passwords. Even if you do not, imapsync also supports logging in as an admin user that has the ability to copy message for sub users, and a variety of other authentication options. Is the above what I need if I migrate mailboxes FROM dovecot TO dovecot ? E.g. in my example, I only copy mailboxes from an old "u...@domaina.gr" to "u...@domainb.gr". Is the above all I need ? Is there a native dovecot tool for this or should I just use imapsync ? Thank you again, s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis - Original Message - > From: Spyros Tsiolis > To: Spyros Tsiolis > Cc: > Sent: Monday, 2 April 2012, 11:24 > Subject: Re: [Dovecot] Mail migration troubles > > Hello again, > > Well, it seems I have trouble with the migration after all. > After the migration and eventhough all folders and messages > are on their respective places, any new mail users get > inside their mailbox cannot be dragged-and-dropped to > their respective folders. > > So, if a user has a folder with my name on it and I send > him an e-mail, the user will try to drag-and-drop that > message to the folder with my name, but the message won't > move. > > Any gurus out there on this ? > Any help would be greatly appreciated. > > spyros > > > > > "I merely function as a channel that filters > music through the chaos of noise" > - Vangelis >
[Dovecot] Mail migration troubles
Hello all, OK, I would really appreciate your help on this. I managed to do a pretty straight-forward and flawless migration on dovecot from one domain to another. However, I have this nagging problem with most of the thunderbird MTAs. When I try to delete some "test" messages I sent to make sure that everything works, it comes back with the following message on the bottom of the Thunderbird window : "The current operation on InBox did not succeed. The mail server for account "acco...@bloomingdomain.gr" responded [TRYCREATE] mailbox doesn't exist : Trash" Now, I know it has to do something with automatically creating a trash folder. But don't know anything more. Could someone shed some light on this ? Dovecot v1.2.15 AFAIK CentOS 5.5 x86 (32-bit) other stuff On Clients : Thunderbird v11.0.1 (XP Pro / 32-bit) s. "I merely function as a channel that filters music through the chaos of noise" - Vangelis