Le 20/07/2021 à 18:43, Stephane Magnier a écrit :


Le 20/07/2021 à 18:39, Alexander Dalloz a écrit :
Am 20.07.2021 um 18:31 schrieb Stephane Magnier:

Le 20/07/2021 à 18:25, Alexander Dalloz a écrit :
Am 20.07.2021 um 09:25 schrieb Stephane Magnier:
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
Jul 20 09:13:13 mbox1 spamd[1081]: prefork: child states: II



and absolutely NOTHING on Dovecot log file.. and I cannot see anything

Sendmail is using the local mailer as you can see above.

Your Sendmail m4 config is overly complex. For which purpose do you set

LOCAL_DOMAIN(`mbox1.xxxx.net')dnl

And yes, Dovecot is the LMTP server side which provides a TCP socket on port 24. Sendmail is the LMTP client in your case.

Alexander


To be honest.. I don't know : I thought that the server being mbox1.xxxx.netn, I declared mbox1.xxxx.net in it..

OK I remove it..

You can validate which domains your Sendmail treats as local aka class w by

echo '$=w' | sendmail -bt

In case you want or need to override the Sendmail's host identity you can specify

define(`confDOMAIN_NAME', `example.com')dnl

Alexander


Hi

I found this... I"'ve made some test.. not very susccesful at the moment, but could it be a possibility to dig up ?

I found this page

http://etutorials.org/server+administration/sendmail/part+i+build+and+install/chapter+4.+configure+sendmail.cf+with+m4/featurelocal_lmtp/

Where they explained just to add this

FEATURE(`local_lmtp')
MAILER(`local')

I can also see :
FEATURE(`local_lmtp', `/usr/sbin/mail.local')
MAILER(`local')

So, having Dovecot : 10-master.conf
     service lmtp {
  unix_listener /var/run/lmtp {
    mode = 0660
    user = mail
    group = mail
    }
  }

I wrote FEATURE(`localhost_lmtp',`/var/run/lmtp')

Jul 20 18:22:29 mbox1 sm-msp-queue[8380]: starting daemon (8.15.2): queueing@01:00:00
Jul 20 18:22:29 mbox1 sendmail[8382]: 16KG6Rtr006493: SYSERR(root): Cannot exec /var/run/lmtp: Permission denied
Jul 20 18:22:29 mbox1 sendmail[8367]: 16KG6Rtr006493: smtpquit: mailer local exited with exit value 71
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


I also try to change chmod lmtp.. 0660 or 640.. nothing is working (

OK, that was just a test :-(



Hi,

This is working out now. So to sum up the situation..

I am using an OS CentOS v8 with Dovecot v 2.3.8 and Sendmail v 8.15.2

Making an LMTP Server  :

on Sendmail ( /etc/mail/sendmail.mc )

FEATURE(`local_lmtp',`[IPC]',`FILE /var/run/lmtp')

MAILER(`local')
MAILER(`smtp')

On Dovecot

service lmtp {
  inet_listener lmtp {
    port = 24
  }
  unix_listener /var/run/lmtp {
    group = mail
    mode = 0660
    user = mail
  }
}

protocol lmtp {
  mail_fsync = optimized
  mail_plugins = autocreate quota acl fts fts_solr zlib mail_log notify sieve
  postmaster_address = it@intranet.office.itx
}


Ad that's it really... Hope this will help for the others in the future