Mail problem after Maildir conversion

itsbk

Verified User
Joined
Feb 21, 2007
Messages
3
Hello,

I recently converted my DA server to maildir format. After that I am facing some issues with the mail delivery. As per the page http://www.directadmin.com/features.php?id=230 the mailbox to an alias domain should be a symlink to the main domain. But in my case I am having different mailboxes for main and alias domains.
Mails send to [email protected] is delivered to /home/user/imap/maindomain.com/abc/ and mails to the alias domain [email protected] is being delivered to /home/user/imap/aliasdomain.com/abc. Mails are getting delivered correctly in this manner. But the issues is that the passwd files for both these virtual domains is having the path to the maindomain, ie

cat /etc/virtual/maindomain.com/passwd
abc:xxxx:/home/user/imap/maindomain.com/abc/:uid:gid


cat /etc/virtual/aliasdomain.com/passwd
abc:xxxx:/home/user/imap/maindomain.com/abc/:uid:gid

As a result when logged in via imap/pop3, dovecot looks in this path no matter whether the login is for maindomain or alias domain.
In short mails to the alias domain cannot be fetched.
Any help is much appreciated

Thanks
 
It's hard to say what happened. Was some manual intervention required to get the mail to work separately? My guess is that the file for aliasdomain was never properly changed.

It's likely that new addresses will be added incorrectly, since DA aliases weren't meant to be used in this way.

Change it manually.

Jeff
 
Thanks for the reply.

But when new addresses are added it is created in the same manner. That is the maildir path is added related to the alias domain and dovecot cant read it. can we use a custom default_mail_env in dovecot as a work around ?
 
My best guess (only a guess) is that something in the Dovecot install didn't get done properly.

I think I'd follow the Dovecot install over again, from beginning to end. Depending on if you deleted mailboxes or not, that could cause a lot of duplicate emails.

Jeff
 
Back
Top