[Dovecot] Help with logging in and getting mail

Asheesh Laroia asheesh at asheesh.org
Sun Dec 30 09:02:07 EET 2007


On Sat, 29 Dec 2007, Andrew Falanga wrote:

> On Saturday 29 December 2007 14:20:47 Timo Sirainen wrote:
>> On Sat, 2007-12-29 at 14:00 -0700, Andrew Falanga wrote:
>>> mail_location: mbox:~/mail/:INBOX=/var/mail/%u
>>
>> ..
>>
>>>   userdb:
>>>     driver: sql
>>>     args: /usr/local/etc/dovecot-sql.conf
>>
>> ..
>>
>>> Dec 29 15:01:54 whitbap dovecot: POP3(jdunkin):
>>> mkdir_parents(/var/mail/vmail//mail) failed: Not a directory
>>
>> Your SQL lookup returns "/var/mail/vmail/" as the user's home directory.
>> You'll need to have a proper per-user directory as their home. For
>> example have the user_query return '/home/virtual/%u' as home. See
>> http://wiki.dovecot.org/VirtualUsers#homedirs
>
> Ok, I'm beginning to grasp this.  However, my understanding is still
> incomplete somehow.  The changes I've made thus far are:
>
> 1) now, all virtual users have a "home" directory in /virtusers/%u
> 2) home field in the PostgreSQL database says, /virtusers/<userid>
>
> The errors as before are no longer being shown.  However, as I stated before,
> I have sendmail configured with aliases to "map" a virtual users, such as
> jdunkin, to the system user vmail.  This user is getting all the mail for the
> aliases (virtual user accounts).  How do I get the mail to each virtual user?

Sounds like you would like to call e.g. Dovecot Deliver from sendmail 
*based on the incoming username* instead of simply dropping the emails 
into "vbox".

-- Asheesh.

-- 
Somebody's terminal is dropping bits.  I found a pile of them over in the
corner.


More information about the dovecot mailing list