[Dovecot] Dovecot

Pascal Volk user+dovecot at localhost.localdomain.org
Mon Oct 26 18:45:12 EET 2009


On 10/26/2009 05:26 PM Claudio Prono wrote:
> 
> Sorry but for me is not clear what u say... I can't specify a mail
> location manually? Like /var/mail/virtual/%d/%u ?
> 
> Regards,
> 
> Claudio.

You have to modify your user_query in the dovecot-sql.conf file.
Use for example:
user_query = SELECT CONCAT('/var/mail/virtual/', '%d', '/', '%n') \
    as home, ... FROM table WHERE ...

In your dovecot.conf file set: mail_location = maildir:~/Mialdir

The tilde (~) will be expanded to the home value from the user_query


Regards,
Pascal
-- 
The trapper recommends today: cafefeed.0929917 at localdomain.org


More information about the dovecot mailing list