[Dovecot] Two INBOX locations

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed May 24 17:10:22 EEST 2006


arilinux wrote:
> Hello
> 
> I'm running dovecot v1.0.beta3 on a fedora 4 machine.
> 
> I have two kinds of clients:
> - first use IMAP and receive their mails (maildir) in /home/%u/mail
> - second use POP and receive their mails (mbox) in /var/mail/%u
> 
> Problem is when I want to provide an access for second with squirrelmail
> which use IMAP, as the INBOX is in /var/mail/%u and IMAP settings tell that
> INBOX is in /home/%u/mail, they can't view their emails.
> 
> Is there a way to tell to dovecot to search IMAP mails both in
> /home/%u/mail
> and in /var/mail/%u
> 
> Thanks
> 
> 
>> Emmanuel RIZZI
>> ERILOG
>> 103 rue Beaupoil
>> 39210 DOMBLANS
>> Tel: 03 84 44 66 66
>> Fax: 03 84 44 62 00
>>
>>
>>
> 

You can do this if you have a userdb as passwd-file (or mysql, I think)
where you can store the mail_env for that user, something like:

pop3user1:x:1234:1234:::/home/pop3user1::mbox:/var/mail/pop3user1
imapuser1:x:1235:1235:::/home/imapuser1::maildir:/home/imapuser1/mail

note that passdb doesn't need to be the same (we use LDAP via PAM, and
build our userdb file overnight from NIS).

Best Wishes,
Chris

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094


More information about the dovecot mailing list