1

Topic: Migrating to iRed. Dovecote Deliver issues

====
Centos 6.2
iRedMail mysql backend
====

I am migrating from isp's imap mail server to local imap mail server on iRed.
I need to move messages for some mailboxes so that users would not be affected.
I decided to use fetchmail for this task.

There were no trouble with moving inbox folder, but now i need to move "sent items"

There's command i use:

fetchmail -u user@isp.server -p imap -a -k -r Sent --mda "/usr/libexec/dovecot/deliver -a user@local.server - m Sent"  isp.server

but i get this

"fetchmail: MDA returned nonzero status 75"

What am i doing wrong ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Migrating to iRed. Dovecote Deliver issues

Quote from Dovecot LDA wiki article: http://wiki.dovecot.org/LDA

75 (EX_TEMPFAIL): A temporary failure. This is returned for almost all failures. See the log file for details.

So, is there any related log in Dovecot log files? They're /var/log/sieve.log and/or /var/log/dovecot.log.

3

Re: Migrating to iRed. Dovecote Deliver issues

ZhangHuangbin wrote:

Quote from Dovecot LDA wiki article: http://wiki.dovecot.org/LDA

75 (EX_TEMPFAIL): A temporary failure. This is returned for almost all failures. See the log file for details.

So, is there any related log in Dovecot log files? They're /var/log/sieve.log and/or /var/log/dovecot.log.

Mar 30 11:41:07 lda(muzzzdy): Fatal: setgid(502(vmail) from mail_gid setting) failed with euid=500(muzzzdy), gid=0(root), egid=0(root): Operation not permitted (This binary should probably be called with process group set to 502(vmail) instead of 0(root))

aha, so i should proly be logged as user of another group?

4

Re: Migrating to iRed. Dovecote Deliver issues

Well i logged in shell as vmail run

fetchmail -u user@isp.server -p imap -a -k -r Sent --mda "/usr/libexec/dovecot/deliver -a user@local.server - m Sent"  isp.server

got in log

Mar 30 12:53:07 lda(vmail): Info: msgid=<4549979fb02c70e9075ea1de9f62a1cd@isp.server>: saved mail to Sent
Mar 30 12:53:07 lda(vmail): Info: msgid=<2f1a8a3ead606a1939c78a8b6e68a7a3@isp.server>: saved mail to Sent
Mar 30 12:53:07 lda(vmail): Info: msgid=<9c83a0a817a95ae14f1a4c07305cb693@isp.server>: saved mail to Sent
Mar 30 12:53:07 lda(vmail): Info: msgid=<a9911aded0599d3ab98d80e40df49765@isp.server>: saved mail to Sent

But  user@local.server got nothing in Sent folder...

5

Re: Migrating to iRed. Dovecote Deliver issues

Try using '.Sent' as Sent folder instead of 'Sent'. (There's a DOT.)

6

Re: Migrating to iRed. Dovecote Deliver issues

ZhangHuangbin wrote:

Try using '.Sent' as Sent folder instead of 'Sent'. (There's a DOT.)

nopes, did not work

Mar 30 13:15:54 lda(vmail): Info: msgid=<a9911aded0599d3ab98d80e40df49765@isp.server> save failed to open mailbox .Sent: Invalid mailbox name

7

Re: Migrating to iRed. Dovecote Deliver issues

ZhangHuangbin wrote:

Try using '.Sent' as Sent folder instead of 'Sent'. (There's a DOT.)

I've changed MDA parameter from "-a user@local.server" to "-d user@local.server" and voilà everything is it's place.

thank you for the tips Zhang Huangbin.

8

Re: Migrating to iRed. Dovecote Deliver issues

Could you share the full command which works?

9 (edited by Muzzzdy 2012-03-30 20:28:18)

Re: Migrating to iRed. Dovecote Deliver issues

ZhangHuangbin wrote:

Could you share the full command which works?

#log as vmail
su - -s /bin/bash vmail
#fetch mail and put into folder Sent
fetchmail -u user@isp.server -p imap -a -k -r Sent --mda "/usr/libexec/dovecot/deliver -d user@local.server - m Sent"  isp.server

10

Re: Migrating to iRed. Dovecote Deliver issues

Thanks for your sharing. smile