<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<div class="moz-cite-prefix">Le 20/07/2021 à 18:43, Stephane Magnier
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:0b0d7ac5-3318-0b70-574a-93561daf795b@netcourrier.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><br>
</p>
<div class="moz-cite-prefix">Le 20/07/2021 à 18:39, Alexander
Dalloz a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:bf2aa9be-ca2f-f442-7a6a-b6bb11ff1154@uni-x.org">Am
20.07.2021 um 18:31 schrieb Stephane Magnier: <br>
<blockquote type="cite"> <br>
Le 20/07/2021 à 18:25, Alexander Dalloz a écrit : <br>
<blockquote type="cite">Am 20.07.2021 um 09:25 schrieb
Stephane Magnier: <br>
<blockquote type="cite">Jul 20 09:13:13 mbox1
sendmail[5596]: 16K7D9xA005595: to=user1, delay=00:00:04,
xdelay=00:00:04, mailer=local, pri=3480, dsn=2.0.0,
stat=Sent <br>
Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states:
II <br>
<br>
<br>
<br>
and absolutely NOTHING on Dovecot log file.. and I cannot
see anything <br>
</blockquote>
<br>
Sendmail is using the local mailer as you can see above. <br>
<br>
Your Sendmail m4 config is overly complex. For which purpose
do you set <br>
<br>
LOCAL_DOMAIN(`mbox1.xxxx.net')dnl <br>
<br>
And yes, Dovecot is the LMTP server side which provides a
TCP socket on port 24. Sendmail is the LMTP client in your
case. <br>
<br>
Alexander <br>
<br>
</blockquote>
<br>
To be honest.. I don't know : I thought that the server being
mbox1.xxxx.netn, I declared mbox1.xxxx.net in it.. <br>
<br>
OK I remove it.. <br>
</blockquote>
<br>
You can validate which domains your Sendmail treats as local aka
class w by <br>
<br>
echo '$=w' | sendmail -bt <br>
<br>
In case you want or need to override the Sendmail's host
identity you can specify <br>
<br>
define(`confDOMAIN_NAME', `example.com')dnl <br>
<br>
Alexander <br>
</blockquote>
<p><br>
</p>
<p><font face="Arial">Hi</font></p>
<p><font face="Arial">I found this... I"'ve made some test.. not
very susccesful at the moment, but could it be a possibility
to dig up ?<br>
</font></p>
<p><font face="Arial">I found this page</font></p>
<p><a
href="http://etutorials.org/server+administration/sendmail/part+i+build+and+install/chapter+4.+configure+sendmail.cf+with+m4/featurelocal_lmtp/"
moz-do-not-send="true">http://etutorials.org/server+administration/sendmail/part+i+build+and+install/chapter+4.+configure+sendmail.cf+with+m4/featurelocal_lmtp/</a></p>
<p>Where they explained just to add this</p>
<pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; display: block; padding: 9.5px; margin: 0px 0px 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-radius: 4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">FEATURE(`local_lmtp')
MAILER(`local')</pre>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I can also see :</div>
<div class="moz-cite-prefix">
<pre style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; display: block; padding: 9.5px; margin: 0px 0px 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: break-word; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-radius: 4px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">FEATURE(`local_lmtp', `/usr/sbin/mail.local')
MAILER(`local')</pre>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">So, having Dovecot : 10-master.conf</div>
<div class="moz-cite-prefix"> service lmtp {<br>
unix_listener /var/run/lmtp {<br>
mode = 0660<br>
user = mail<br>
group = mail<br>
}<br>
}<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I wrote
FEATURE(`localhost_lmtp',`/var/run/lmtp')</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Jul 20 18:22:29 mbox1
sm-msp-queue[8380]: starting daemon (8.15.2): queueing@01:00:00<br>
Jul 20 18:22:29 mbox1 sendmail[8382]: 16KG6Rtr006493:
SYSERR(root): Cannot exec /var/run/lmtp: Permission denied<br>
Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: smtpquit:
mailer local exited with exit value 71<br>
Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: to=azt000,
delay=00:16:00, xdelay=00:00:00, mailer=local, pri=6225520,
relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local<br>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I also try to change chmod lmtp..
0660 or 640.. nothing is working (</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">OK, that was just a test :-(<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
</blockquote>
<p><font face="Arial">Hi, <br>
</font></p>
<p><font face="Arial">This is working out now. So to sum up the
situation.. <br>
</font></p>
<p><font face="Arial">I am using an OS CentOS v8 with Dovecot v
2.3.8 and Sendmail v 8.15.2</font></p>
<p><font face="Arial">Making an LMTP Server :</font></p>
<p><b><font face="Arial">on Sendmail ( /etc/mail/sendmail.mc )</font></b></p>
<blockquote>
<p><font face="Arial">FEATURE(`local_lmtp',`[IPC]',`FILE
/var/run/lmtp')<br>
</font></p>
<p>MAILER(`local')<br>
MAILER(`smtp')</p>
</blockquote>
<p><b>On Dovecot</b></p>
<blockquote>
<pre>service lmtp {
inet_listener lmtp {
port = 24
}
unix_listener /var/run/lmtp {
group = mail
mode = 0660
user = mail
}
}</pre>
<p>
</p>
<pre>protocol lmtp {
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@intranet.office.itx">it@intranet.office.itx</a>
}</pre>
<p><br>
</p>
</blockquote>
<p>Ad that's it really... Hope this will help for the others in the
future<br>
</p>
</body>
</html>