folders and subfolders
Stephane Magnier
steph.mag220 at netcourrier.com
Fri Jul 16 16:54:55 EEST 2021
Hi,
So, I tried to change mbox to maildir.. that sounds to be OK for the
changes... I can create some folders and subfolders. The problem is that
I cannot see any emails arriving into my mailbox
I am using sendmail
I choose the lmtp service for that and I have into Dovecot
Maildir : mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs
service lmtp {
unix_listener /var/spool/mail/dovecot-lmtp {
mode = 0600
user = mail
group = mail
}
inet_listener lmtp {
address = ::1, 127.0.0.1
}
}
into *sendmail.mc*.. I have :
* FEATURE(`local_lmtp',`[IPC]',`FILE /var/spool/mail/dovecot-lmtp')dnl
But if I add : Feature(dovecot) or Feature( local_lmtp) it doesn't
compile..
m4:/etc/mail/sendmail.mc:154: cannot open `/usr/share/sendmail-cf/mailer/dovecot.m4': No such file or directory
So, how can explain that any emails coming into /var/spool/mail has to
be sent to Dovecot ??
Thanks and regards
Le 16/07/2021 à 10:44, Aki Tuomi a écrit :
>> On 16/07/2021 11:41 Stephane Magnier <steph.mag220 at netcourrier.com> wrote:
>>
>>
>> Hi,
>> Still looking for the way to create folders and sub folders..
>> Today, I am using "mbox", which apparently doesn't work for this ? correct ?
> mbox has very limited support for folders.
>
>> So, I would probably need to use maildir.. ( https://doc.dovecot.org/configuration_manual/mail_location/Maildir/ ]
>> Today, what I am using is :mbox,which is gather all the mailboxes of user 1, user 2 in one folder... like : mbox:/var/spool2/mail/%u
>> 1) I suppose, that If I am using "mbox" with.. : LAYOUT=fs, I won't get these folders and subfolders ? - Correct ?
>>
>> 2) Instead of having : "maildir:~/Maildir " which, I suppose got eachuser folder into their own home directory .. correct ? Can I have : maildir:/var/spool2/mail/%u?
> yes.
>
>> ( I would prefer to gather all users' mailbox into one folder like /var/spool2/mail/ )
>> 3) if so, mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u => can become : maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u
>>
> yes. And while you're doing this, you might as well start using lda or lmtp and drop the INBOX parameter. There is no need to keep INBOX in /var/spool/mail/%u unless your users expect direct access?
>
>> What do you think ?... before trying and breaking everything :-)... if so, I will be killed
>>
>> Thanks and regards
>>
> Aki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210716/d6842918/attachment.html>
More information about the dovecot
mailing list