<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">I've tried to work with the option NOT to get
the INBOX, and to use "lmtp"</font></p>
<p><font face="Arial">Email are stoill blocked into sendmail</font></p>
<p><font face="Arial"><br>
</font></p>
<p><font face="Arial"><br>
</font></p>
<p><font face="Arial">Here is my <u><b>sendmail config</b></u></font></p>
<p>define(`confLOCAL_MAILER', `local_lmtp')dnl<br>
dnl ############################ FIN OPENDKIM ###### <br>
dnl ###### boost traitement ############"dnl<br>
FEATURE(`access_db', `hash -T<TMPF> -o
/etc/mail/access.db')dnl<br>
dnl # define(`confCONNECTION_RATE_THROTTLE',2800)dnl<br>
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl<br>
<b>FEATURE(`local_lmtp')</b><br>
MAILER(local)dnl<br>
MAILER(smtp)dnl<br>
MAILER(procmail)dnl<br>
MAILER(dovecot)dnl -><font color="#ff0000"> maybe totally
useless if I declare : MAILER( local )</font><br>
</p>
<p><br>
</p>
<p>and my dovecot config</p>
<pre># 2.3.8 (9df20d2db): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.8 (b7b03ba2)
# OS: Linux 4.18.0-305.7.1.el8_4.x86_64 x86_64 CentOS Linux release 8.4.2105 xfs
# Hostname: mbox1.aztgrp.net
auth_mechanisms = plain login
auth_username_format = %u
default_vsz_limit = 4 G
listen = *
login_trusted_networks = 192.18.0.0/16 127.0.0.1 ::1
mail_access_groups = dovecot
mail_fsync = always
<b>mail_location = maildir:/var/spool3/mail/%u:LAYOUT=fs</b>
mail_plugins = " quota"
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
mbox_very_dirty_syncs = yes
mbox_write_locks = fcntl
mmap_disable = yes
namespace inbox {
disabled = no
ignore_on_failure = no
inbox = yes
list = yes
location =
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
autoexpunge = 12 weeks
special_use = \Junk
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Trash {
auto = no
autoexpunge = 12 weeks
special_use = \Trash
}
mailbox virtual/All {
auto = no
special_use = \All
}
prefix =
subscriptions = yes
type = private
}
passdb {
driver = pam
}
plugin {
quota_grace = 10%%
quota_max_mail_size = 100M
quota_rule = *:storage=10000M
quota_rule2 = Trash:Storage=+100M
quota_status_nouser = DUNNO
quota_status_overquota = 552 5.2.2 Mailbox is full
quota_status_success = DUNNO
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = <a class="moz-txt-link-freetext" href="file:~/sieve;active=~/.dovecot.sieve">file:~/sieve;active=~/.dovecot.sieve</a>
}
pop3_uidl_format = %v-%u
service auth {
unix_listener auth-master {
mode = 0666
}
}
service dict {
unix_listener dict {
mode = 0600
user = mail
}
}
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service lmtp {
inet_listener lmtp {
address = 127.0.0.1 ::1
port = 24
}
unix_listener /var/run/lmtp {
group = mail
mode = 0660
user = mail
}
}
service pop3-login {
inet_listener pop3 {
address = *
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
user = mail
}
user = dovecot
}
service submission {
process_limit = 250
}
ssl = required
ssl_ca = </etc/mail/ssl/ssl1/STAR_qqq_net.ca-bundle
ssl_cert = </etc/mail/ssl/ssl1/STAR_qqq_net.crt
ssl_cipher_list = HIGH:!aNULL:!ADH:!DH:!RC4:!MD5:!RSA
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
driver = passwd
}
verbose_proctitle = yes
protocol lmtp {
<font color="#ff0000"><b> info_log_path = /var/log/dovecot-lmtp.log</b></font>
mail_fsync = optimized
mail_plugins = autocreate quota acl fts fts_solr zlib mail_log notify sieve
postmaster_address = <a class="moz-txt-link-abbreviated" href="mailto:it@iqqq.com">it@iqqq.com</a>
}
protocol lda {
mail_fsync = optimized
mail_plugins = " quota sieve quota"
}
protocol imap {
mail_max_userip_connections = 80
mail_plugins = " quota quota imap_quota"
ssl_cert = </etc/mail/ssl/ssl1/STAR_qqq_net.crt
ssl_key = # hidden, use -P to show it
}
protocol pop3 {
mail_max_userip_connections = 10
mail_plugins = " quota"
}
protocol submission {
mail_max_userip_connections = 10
mail_plugins = " quota"
}
<font size="+2">And my /var/log/dovecot-lmtp.log
Jun 18 21:33:08 imap-login: Info: Login: user=<xxx>, method=PLAIN, rip=109.ss.ss.ss lip=192.18.3.226, mpid=13075, TLS, session=<fb67ZA/FutltvmZQ>
Jun 18 21:35:41 imap-login: Info: Login: user=<xxx>, method=PLAIN, rip=109.ss.ss.ss, lip=192.18.3.226, mpid=14036, TLS, session=<o4zQbQ/FAuJtvmZQ>
Jun 18 21:38:43 imap(azt000)<14036><o4zQbQ/FAuJtvmZQ>: Info: <b>Server shutting down.</b> in=67 out=625 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jun 18 21:38:43 imap(azt000)<13075><fb67ZA/FutltvmZQ>: Info:<b> Server shutting down</b>. in=478 out=2094 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
</font>
</pre>
<div class="moz-cite-prefix">Le 16/07/2021 à 21:33, Stephane Magnier
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:600ed14e-13b7-e5c4-2029-d9c4eb9c8e1b@netcourrier.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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>
</blockquote>
</body>
</html>