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 leah@example.com --password1 secret \ --host2 127.0.0.1 --authmech2 LOGIN --user2 leah@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 "user@domainA.gr" to "user@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 stsiol@yahoo.co.uk To: Spyros Tsiolis stsiol@yahoo.co.uk 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
On 2012-04-02 6:19 AM, Spyros Tsiolis stsiol@yahoo.co.uk 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 "user@domainA.gr" to "user@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
On 2012-04-02 6:19 AM, Spyros Tsiolis stsiol@yahoo.co.uk 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 "user@domainA.gr" to "user@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
On 2012-04-02 6:51 AM, Spyros Tsiolis stsiol@yahoo.co.uk 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
----- Original Message -----
From: Charles Marcus CMarcus@Media-Brokers.com 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 stsiol@yahoo.co.uk 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
On 2012-04-02 8:49 AM, Spyros Tsiolis stsiol@yahoo.co.uk 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
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=account@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/account@domain.gr Apr 02 14:26:02 imap-login: Info: Login: user=account@domain.gr, 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(account@domain.gr,192.168.0.20): lookup: user=account@domain.gr file=/etc/dovecot/passwd Apr 02 14:27:02 auth(default): Info: client out: OK1user=account@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/account@domain.gr Apr 02 14:27:02 imap-login: Info: Login: user=account@domain.gr, 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
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
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
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 "user@domainA.gr" to "user@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
participants (4)
-
Arne K. Haaje
-
Charles Marcus
-
Nikolaos Milas
-
Spyros Tsiolis