folders and subfolders

Stephane Magnier steph.mag220 at netcourrier.com
Fri Jul 16 22:33:08 EEST 2021


hi,

Orignially, I have :

*mail_location = mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u* that 
I change to : *mail_location = 
maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u *

The verdict..; This part : work fine for : *maildir:/var/spool2/mail/%u:*

but does'n't work out correctly for  : *INBOX=/var/spool/mail/%u*

2 possibilities :

1) I've tried NOT to give access to Mail access on INBOX and I didn't 
succeed in making it understand that I want my /var/spool/mail/%u to 
move to the "MailDir" part...

2) I give access to the INBOX. I leave as it is... but the problem is 
:Sendmail is using /var/spool/mail%u  ( where %u *is a file* )  
and*Dovecot who needs to get a folder *and to get %u/tmp ; %u/curl; etc....

So, that way this is incompatible..  what is wrong ??

Please what should I do for this INBOX part ?

Thanks


Le 16/07/2021 à 15:54, Stephane Magnier a écrit :
>
> 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/48dcf3f6/attachment-0001.html>


More information about the dovecot mailing list