<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Arial">hi,</font></p>
<p><font face="Arial">Orignially, I have :</font></p>
<p><font face="Arial"><b>mail_location =
mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u</b> that I
change to : <b>mail_location =
maildir:/var/spool2/mail/%u:LAYOUT=fs:INBOX=/var/spool/mail/%u
</b><br>
<br>
</font></p>
<p><font face="Arial">The verdict..; This part : work fine for : </font><font
face="Arial"><font face="Arial"> <b>maildir:/var/spool2/mail/%u:</b>
<br>
</font></font></p>
<p><font face="Arial">but does'n't work out correctly for : </font><b><font
face="Arial"><font face="Arial">INBOX=/var/spool/mail/%u</font></font></b></p>
<p><font face="Arial" color="#ff0000">2 possibilities :</font></p>
<p><font face="Arial">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...</font></p>
<p><font face="Arial">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 <b>is a file</b> ) and<b> Dovecot who needs to get a
folder </b>and to get %u/tmp ; %u/curl; etc....</font></p>
<p><font face="Arial">So, that way this is incompatible.. what is
wrong ??<br>
</font></p>
<p><font face="Arial">Please what should I do for this INBOX part ?<br>
</font></p>
<p>Thanks</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 16/07/2021 à 15:54, Stephane Magnier
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:358ea827-038d-8b7a-4416-00492fad5e52@netcourrier.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font face="Arial">Hi,</font></p>
<p><font face="Arial">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 <br>
</font></p>
<p><font face="Arial">I am using sendmail<br>
</font></p>
<p><font face="Arial">I choose the lmtp service for that and I
have into Dovecot<br>
</font></p>
<p><font face="Arial">Maildir : mail_location =
maildir:/var/spool3/mail/%u:LAYOUT=fs<br>
<br>
</font></p>
<blockquote>
<p><font face="Arial">service lmtp {<br>
unix_listener /var/spool/mail/dovecot-lmtp {<br>
mode = 0600<br>
user = mail<br>
group = mail<br>
}<br>
inet_listener lmtp {<br>
address = ::1, 127.0.0.1<br>
<br>
}<br>
}</font></p>
</blockquote>
<p><font face="Arial"><br>
</font></p>
<p><font face="Arial">into <b>sendmail.mc</b>.. I have : </font><font
face="Arial"><tt><br>
</tt></font></p>
<ul>
<li><font face="Arial"><tt>FEATURE(`local_lmtp',`[IPC]',`FILE
/var/spool/mail/dovecot-lmtp')dnl</tt></font></li>
</ul>
<p><tt><font face="Arial">But if I add : Feature(dovecot) or
Feature( local_lmtp) it doesn't compile..</font></tt></p>
<pre>m4:/etc/mail/sendmail.mc:154: cannot open `/usr/share/sendmail-cf/mailer/dovecot.m4': No such file or directory
</pre>
<p>So, how can explain that any emails coming into /var/spool/mail
has to be sent to Dovecot ??</p>
<p>Thanks and regards</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 16/07/2021 à 10:44, Aki Tuomi a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:64635199.2447.1626425076417@appsuite-dev-gw2.open-xchange.com">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 16/07/2021 11:41 Stephane Magnier <a class="moz-txt-link-rfc2396E" href="mailto:steph.mag220@netcourrier.com" moz-do-not-send="true"><steph.mag220@netcourrier.com></a> 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 ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">mbox has very limited support for folders.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">So, I would probably need to use maildir.. ( <a class="moz-txt-link-freetext" href="https://doc.dovecot.org/configuration_manual/mail_location/Maildir/" moz-do-not-send="true">https://doc.dovecot.org/configuration_manual/mail_location/Maildir/</a> ]
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?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">yes.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">( 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
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">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?
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">What do you think ?... before trying and breaking everything :-)... if so, I will be killed
Thanks and regards
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Aki
</pre>
</blockquote>
</blockquote>
</body>
</html>