| Main Archive Page > Month Archives > postfix-users archives |
On 10/9/2010 10:36 AM, mouss wrote:
> Le 09/10/2010 15:54, Márcio Luciano Donada a écrit :
>> Em 9/10/2010 09:43, mouss escreveu:
>>> Le 09/10/2010 00:11, Márcio Luciano Donada a écrit :
>>>> I am configuring a server to read a basic ldap, everything is working
>>>> wonders, but to deliver the e-mail, postfix is not creating the
>>>> maildir
>>>> of the user, delivering only a mailbox file, but note that the
>>>> configuration that follows below, I have the directive home_mailbox =
>>>> Maildir/. I'm using version 2.6 on FreeBSD 8.2
>>> for that user (assuming you are using virtual mailboxes), check the
>>> value returned by the map:
>>> # postmap -q someuser@example.com ldap:mailboxmaps
>>>
>> mx# postmap -q mdonada@domain.com.br
>> ldap:/usr/local/etc/postfix/ldap/ldap-mailbox-user.cf
>> mdonada
>>
>
> you need to add a trailing slash. the query should return "mdonada/"
> (with a slash at the end), otherwise, postfix will consider that you
> want mbox, not maildir.
>
>> As far as I understand it, the postfix is able to locate the user, but
>> in time to deliver the mail it is not creating the Maildir, (all your
>> directory structure), which I believe he should do, regardless of MDA.
>> Mouss Thanks for listening.
>>
>
WHOA, slow down everyone! NO folders have to exist BUT, in master.cf of
postfix, you must NOT have the "-n" option, which specifically tells
dovecot's LDA to not create the directories.
Here is the config from my master.cf which utilizes all possible
features of dovecot:
dovecot unix - n n - - pipe
flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -f
${sender} -d ${user}@${nexthop} -m ${extension}
a lot of config examples include a "-n" before the "-m ${extension}",
including the dovecot wiki! This should NOT be the default as usually
people want folders automatically created.
Good Luck,
Jerrale G.
SC Senior Admin