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
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