1

Topic: Migrating from iredmail to iredmail server

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version:0.7.4 with OpenLdap
- Linux/BSD distribution name and version:Centos 6.2
- Any related log? Log is helpful for troubleshooting.
====

i have setup a new iredmail servers for testing recovery,manged to migrated ldap and corresponding databases successfully
i have migrated the mailboxes too.

i cant send any email to the migrated accounts when i try to send i get the following errors on logs

May  7 14:10:35 pop3 postfix/pipe[4552]: 90DBE4141C8: to=<abc@example.com>, relay=dovecot, delay=0.1, delays=0.03/0.01/0/0.05, dsn=5.1.1, status=bounced (user unknown)

but when i add a new account and test the mail is being delivered to that account,please assist what might be causing this?

----

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

2

Re: Migrating from iredmail to iredmail server

Please trun on debug mode in Dovecot, then check its log file (/var/log/dovecot.log, /var/log/sieve.log) to figure out the root cause.

Reference:

- How to debug Dovecot and Sieve rules
  http://www.iredmail.org/forum/topic453- … rules.html

3

Re: Migrating from iredmail to iredmail server

Thanks,

i did below and i get the following on the logs

May 07 15:07:19 imap(abc@example.com): Debug: Home dir not found: /var/vmail/vmail1/example.com/a/b/abc-2011.10.06.16.46
am suprised why does it look in vmail1? How can i change imap to look in the correct folder?

4

Re: Migrating from iredmail to iredmail server

Maildir path is stored in SQL/LDAP, what you need to do is fixing it in SQL/LDAP.

5

Re: Migrating from iredmail to iredmail server

Dear Zhang,

i have checked on ldap.conf as well as slapd.conf i dont see any maildir path defined?
i only see these coments

# Grant correct privileges to vmail/vmailadmin.
#Set ACL for vmail/vmailadmin.

Although they dont have any maildir path also.

6

Re: Migrating from iredmail to iredmail server

Bozra wrote:

May 07 15:07:19 imap(abc@example.com): Debug: Home dir not found: /var/vmail/vmail1/example.com/a/b/abc-2011.10.06.16.46

Dovecot (IMAP server) is trying to access maildir path: /var/vmail/vmail1/example.com/a/b/abc-2011.10.06.16.46.

Is this maildir path a typo error or it's the full path in log file? It's not correct. It should be:

/var/vmail/vmail1/example.com/a/b/c/abc-2011.10.06.16.46.xx/Maildir/

You can find the full maildir path with phpLDAPadmin.

7

Re: Migrating from iredmail to iredmail server

Dear Zhang,

Thats a typo the actual path is

May 08 16:26:29 imap(bozra@example.com): Debug: dict quota: user=bozra@example.com, uri=proxy::quotadict, noenforcing=0
May 08 16:26:29 imap(bozra@example.com): Debug: maildir++: root=/var/vmail/example.com/b/o/z/bozra-2011.10.06.16.46.27//Maildir, index=, control=, inbox=/var/vmail/example.com/b/o/z/bozra-2011.10.06.16.46.27//Maildir, alt=
May 08 16:26:29 imap(bozra@example.com): Debug: Namespace : Using permissions from /var/vmail/example.com/b/o/z/bozra-2011.10.06.16.46.27//Maildir: mode=0700 gid=-1

8

Re: Migrating from iredmail to iredmail server

Bozra wrote:

Debug: maildir++: root=/var/vmail/example.com/b/o/z/bozra-2011.10.06.16.46.27//Maildir, index=, control=, inbox=/var/vmail/example.com/b/o/z/bozra-2011.10.06.16.46.27//Maildir, alt=

Your maildir path misses 'vmail1'.

Please try this:

1) Open /etc/dovecot/dovecot-ldap.conf, find this:

user_attrs      = ...,homeDirectory=home,mailMessageStore=mail=maildir:/var/vmail/%$/Maildir/,...

2) Replace 'mailMessageStore=mail=maildir:/var/vmail/%$/Maildir/,' by below one:

user_attrs      = ...,homeDirectory=home,mail=maildir:~/Maildir/,...

Restarting Dovecot, and test again.

If it doesn't work, please paste debug log here.

9

Re: Migrating from iredmail to iredmail server

Dear Zhang,

i changed that and below is what i got on error log

ay 10 13:30:09 auth: Fatal: ldap: LDAP attribute 'mail' used multiple times. This is currently unsupported.
May 10 13:30:09 master: Error: service(auth): command startup failed, throttling
May 10 13:32:18 master: Warning: Killed with signal 15 (by pid=10989 uid=0 code=kill)
May 10 13:32:19 master: Info: Dovecot v2.0.18 starting up (core dumps disabled)
May 10 13:33:31 master: Warning: Killed with signal 15 (by pid=11048 uid=0 code=kill)
May 10 13:33:32 master: Info: Dovecot v2.0.18 starting up (core dumps disabled)
May 10 13:36:42 master: Warning: Killed with signal 15 (by pid=11073 uid=0 code=kill)
May 10 13:36:43 master: Info: Dovecot v2.0.18 starting up (core dumps disabled)
May 10 13:36:46 master: Warning: Killed with signal 15 (by pid=11090 uid=0 code=kill)
May 10 13:36:47 master: Info: Dovecot v2.0.18 starting up (core dumps disabled)

10

Re: Migrating from iredmail to iredmail server

I'm so sorry that there's no typo error in my forum post. It should be:

user_attrs      = ...,homeDirectory=home,=mail=maildir:~/Maildir/,...