[Dovecot] User with multiple domains
Hi,
I am running Dovecot on Linux Debian with Exim4 with a number multiple domains.
I have a new user who want to use a single username with more than one domain eg:
test@domainone.com test@domaintwo.com test@domainthree.com
Exim is working fine with mail correctly with mail going to
/home/domainone.com/test/Maildir/new/ /home/domaintwo.com/test/Maildir/new/ /home/domainthree.com/test/Maildir/new/
The Dovecot password files are in
/home/domainone.com/etc/passwd.dovecot /home/domaintwo.com/etc/passwd.dovecot /home/domainthree.com/etc/passwd.dovecot
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com.
Help Please
Peter
On 6/2/2009 9:44 AM, Peter Sparkes wrote:
The Dovecot password files are in
/home/domainone.com/etc/passwd.dovecot /home/domaintwo.com/etc/passwd.dovecot /home/domainthree.com/etc/passwd.dovecot
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com.
Help Please
dovecot -n output?
--
Best regards,
Charles
Charles Marcus wrote:
On 6/2/2009 9:44 AM, Peter Sparkes wrote:
The Dovecot password files are in
/home/domainone.com/etc/passwd.dovecot /home/domaintwo.com/etc/passwd.dovecot /home/domainthree.com/etc/passwd.dovecot
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com.
Help Please
dovecot -n output?
# /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_extra_groups: mail mail_location: maildir:/home/%d/%n/Maildir mail_debug: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: passwd-file args: /home/%d/etc/passwd.dovecot userdb: driver: passwd userdb: driver: passwd-file args: /home/%d/etc/passwd.dovecot
Peter
On Tue, 2009-06-02 at 17:06 +0100, Peter Sparkes wrote:
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com. .. auth default: verbose: yes debug: yes debug_passwords: yes
So, what does it log with these?
Timo Sirainen wrote:
On Tue, 2009-06-02 at 17:06 +0100, Peter Sparkes wrote:
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com.
..
auth default: verbose: yes debug: yes debug_passwords: yes
So, what does it log with these?
Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): Effective uid=1206, gid=1109 Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): maildir: data=/home/aandt.co.uk/sales/Maildir Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): maildir: root=/home/aandt.co.uk/sales/Maildir, index=/home/aandt.co.uk/sales/Maildir, control=, inbox= Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.3456.66ecc191bc79f78f) failed: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.3456.08d076a7e7a61ba4) failed: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-06-02 23:23:23] Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): No INBOX for user top=0/0, retr=0/0, del=0/0, size=0 Jun 2 23:23:23 silkliving dovecot: pop3-login: Login: user=sales@aandt.co.uk, method=PLAIN, rip=91.85.130.224, lip=89.16.164.21
Peter Sparkes wrote:
Timo Sirainen wrote:
On Tue, 2009-06-02 at 17:06 +0100, Peter Sparkes wrote:
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com.
..
auth default: verbose: yes debug: yes debug_passwords: yes
So, what does it log with these?
Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): Effective uid=1206, gid=1109 Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): maildir: data=/home/aandt.co.uk/sales/Maildir Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): maildir: root=/home/aandt.co.uk/sales/Maildir, index=/home/aandt.co.uk/sales/Maildir, control=, inbox= Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.3456.66ecc191bc79f78f) failed: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.3456.08d076a7e7a61ba4) failed: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-06-02 23:23:23] Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): No INBOX for user top=0/0, retr=0/0, del=0/0, size=0 Jun 2 23:23:23 silkliving dovecot: pop3-login: Login: user=sales@aandt.co.uk, method=PLAIN, rip=91.85.130.224, lip=89.16.164.21
The mail.warn log contains Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.19161.eddfd8117a24d1aa) failed: Permission denied Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): open(/home/aandt.co.uk/sales/Maildir/.temp.silkliving.vm.bytemark.co.uk.19161.53f46bc81f5f7009) failed: Permission denied Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-06-03 06:47:02]
and the Maildir does not contain the following files which are in the user Maildir which are working correctly (these users only have email accounts in one domain): dovecot-uidlist, dovecot.index, dovecot.index.cache and dovecot.index.log
Peter
Peter Sparkes wrote:
Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-06-03 06:47:02]
and the Maildir does not contain the following files which are in the user Maildir which are working correctly (these users only have email accounts in one domain): dovecot-uidlist, dovecot.index, dovecot.index.cache and dovecot.index.log
Peter
": Permission denied" - that is reason why mailbox is unaccessible. Of course maildir files cant be created if permission is denied. Check premissions of "/home/aandt.co.uk/sales/Maildir/"
Uldis
Uldis Pakuls wrote:
Peter Sparkes wrote:
Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): file_dotlock_open() failed with file /home/aandt.co.uk/sales/Maildir/dovecot.index.log: Permission denied Jun 3 06:47:02 silkliving dovecot: POP3(sales@aandt.co.uk): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2009-06-03 06:47:02]
and the Maildir does not contain the following files which are in the user Maildir which are working correctly (these users only have email accounts in one domain): dovecot-uidlist, dovecot.index, dovecot.index.cache and dovecot.index.log
Peter
": Permission denied" - that is reason why mailbox is unaccessible. Of course maildir files cant be created if permission is denied. Check premissions of "/home/aandt.co.uk/sales/Maildir/"
Uldis
As far as I can see the Permission are correct, all the other username domain combinations are working correctly . However to enable my client to get all his emails, I have (in Exim) sent the sales emails to another user. I will reproduce the same conditions on a couple of domains I use for testing and report back
Thanks all for help
Peter
On Tue, 2009-06-02 at 23:26 +0100, Peter Sparkes wrote:
Timo Sirainen wrote:
On Tue, 2009-06-02 at 17:06 +0100, Peter Sparkes wrote:
When trying to retrieve email using Dovecot for test@domaintwo.com the password is not recognised although it is for test@domainone.com.
..
auth default: verbose: yes debug: yes debug_passwords: yes
So, what does it log with these?
Jun 2 23:23:23 silkliving dovecot: POP3(sales@aandt.co.uk): Effective uid=1206, gid=1109
With those auth_debug* settings it should also have auth(..) logs. You only showed what mail_debug=yes logs.
participants (4)
-
Charles Marcus
-
Peter Sparkes
-
Timo Sirainen
-
Uldis Pakuls