[Dovecot] lda and mail_location

Mark Edwards mark at antsclimbtree.com
Thu Jun 28 20:31:29 EEST 2007


On Jun 28, 2007, at 9:04 AM, Timo Sirainen wrote:

>> My dovecot-ldap.conf contains:
>> user_attrs = homeDirectory=home,mailbox=mail
>>
>> I'm setting mailbox=mail because otherwise dovecot uses postfix's
>> destination, which is the entire destination email address.  Are my
>> only choices to either use postfix's supplied destination, or to
>> override that and explicitly set the home directory and mailbox type
>> in the LDAP database?
>
> Do you mean you want to drop the domain part for all users (use %n and
> not %u in mail_location), or do you mean you just want to handle some
> aliases? I think you should be able to handle aliases on Postfix side.

The former.  I get it now, I didn't understand the interaction and  
hierarchy between userdb settings and global settings.

One thing that confused me is that setting the home attribute in  
userdb doesn't override mail_location, and in fact doesn't seem to  
have any affect unless the mail attribute is set.  So, is it correct  
that mail_location is the rule, unless mail is set in user_attrs, in  
which case mail_location is overridden with the attributes from  
user_attrs?  Is that how it works?

--
Mark Edwards




More information about the dovecot mailing list