<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>Do you agree that if I 'm listening on opened ports, I should see
      twice the port 24 ?</p>
    <p>I stopped the  sendmail service  .. I start Dovecot :nmap give me
      this <br>
    </p>
    <p><b>/var/log/dovecot-info.log</b><br>
    </p>
    <p>Jul 20 08:47:50 master: Info: Dovecot v2.3.8 (9df20d2db) <b>starting
        up for imap, pop3, lmtp</b></p>
    <p>and nmap<br>
    </p>
    <div class="moz-forward-container">PORT      STATE SERVICE<br>
      22/tcp    open  ssh<br>
      <font color="#ff0000"><b>24/tcp    open  priv-mail</b></font><br>
      110/tcp   open  pop3<br>
      111/tcp   open  rpcbind<br>
      631/tcp   open  ipp<br>
      783/tcp   open  spamassassin<br>
      993/tcp   open  imaps<br>
      995/tcp   open  pop3s<br>
      10000/tcp open  snet-sensor-mgmt</div>
    <div class="moz-forward-container">=> I can see the port 24
      running<br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">now, closing dovecot service and
      starting sendmail</div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">PORT      STATE SERVICE<br>
      22/tcp    open  ssh<br>
      25/tcp    open  smtp<br>
      111/tcp   open  rpcbind<br>
      465/tcp   open  smtps<br>
      587/tcp   open  submission<br>
      631/tcp   open  ipp<br>
      783/tcp   open  spamassassin<br>
      900/tcp   open  omginitialrefs<br>
      10000/tcp open  snet-sensor-mgmt<br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">So, this is no port 24 opened
      -> this is sendmail, which is not working as lmtp port. I can
      alos recognize all the opened ports.. this is any lmtp server
      running<br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">Do you agree ?  if not, how can I
      trace the lmtp port ?<br>
    </div>
    <div class="moz-forward-container">The log file for Sendmail,
      doesn't say anything at all <br>
    </div>
    <div class="moz-forward-container">When an email is coming.. I
      cannot see anywhere something linked ot lmtp..  absolutely non
      existant</div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">================</div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">Sendmail CF is</div>
    <div class="moz-forward-container"><br>
    </div>
    <blockquote>
      <div class="moz-forward-container"><font size="-1">divert(-1)dnl<br>
          include(`/usr/share/sendmail-cf/m4/cf.m4')dnl<br>
          VERSIONID(`setup for linux')dnl<br>
          OSTYPE(`linux')dnl<br>
          dnl ##
define(`confPRIVACY_FLAGS',`authwarnings,novrfy,noexpn,restrictqrun,needmailhelo,needvrfyhelo,restrictqrun')dnl
          <br>
          LOCAL_DOMAIN(`mbox1.xxxx.net')dnl<br>
          # DeliveryMode=queueonly<br>
          define(`confDELIVERY_MODE',`background')dnl<br>
          dnl ###################################"""""""""# dnl<br>
          dnl ###### spamass-milter #####<br>
MAIL_FILTER(`spamassassin',`S=local:/run/spamass-milter/spamass-milter.sock,
          F=, T=C:15m;S:4m;R:4m;E:10m')dnl<br>
          define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name},
          {if_name}, {if_addr}')dnl<br>
          dnl ######<br>
          dnl ################  security #####<br>
          define(`confCT_FILE', `/etc/mail/trusted.list')dnl<br>
          define(`confMAX_MESSAGE_SIZE',24000000)<br>
          define(`confSAFE_QUEUE',`true')dnl<br>
          dnl ############  connection SPAM ###########<br>
          define(`confDOUBLE_BOUNCE_ADDRESS',`<a class="moz-txt-link-abbreviated" href="mailto:it@xxx.com">it@xxx.com</a>')<br>
          dnl ###### DNSBL####<br>
          FEATURE(`dnsbl',`dnsbl.office.itx')dnl<br>
          dnl # FEATURE(`dnsbl',`sbl.spamhaus.org')dnl<br>
          dnl # FEATURE(`dnsbl',`rbl.metunet.com ',`"Email suspected to
          be a spam with the IP address: "$&{client_addr} " -
          contact us via another way if you are not a SPAM"')dnl<br>
          dnl ######<br>
          dnl  ######### min connection Regulate flow #########<br>
          define(`confMAX_DAEMON_CHILDREN',312)<br>
          define(`confMAX_QUEUE_CHILDREN',120)dnl<br>
          define(`confMAX_RUNNERS_PER_QUEUE',5)dnl<br>
          define(`confMAX_QUEUE_RUN_SIZE',200)dnl<br>
          dnl ############################# dnl<br>
          FEATURE(`delay_checks')dnl<br>
          FEATURE(`access_db', `hash -T<TMPF> -o
          /etc/mail/access.db')dnl<br>
          FEATURE(`ratecontrol',`nodelay',`terminate',`conncontrol')dnl<br>
          define(`confCONNECTION_RATE_THROTTLE',30)dnl<br>
          dnl # define(`confCONNECTION_RATE_WINDOW_SIZE',90s)dnl<br>
          define(`confMAXRCPTSPERMESSAGE', `15')dnl<br>
          define(`confBAD_RCPT_THROTTLE',12)dnl<br>
          define(`confTRY_NULL_MX_LIST', `True')dnl<br>
          define(`confCW_FILE',`/etc/mail/local-host-names')dnl<br>
          define(`confNO_RCPT_ACTION',`add-to-undisclosed')dnl<br>
          define(`confRRT_IMPLIES_DSN')dnl<br>
          dnl ##<br>
          dnl ### milter-limit <br>
          define(`confMILTER_MACROS_EOM', `{msg_id}')dnl<br>
          dnl ##<br>
          dnl ######################dnl<br>
          dnl ################  Def RELAY <br>
          dnl # FEATURE(`relay_hosts_only')dnl <br>
          define(`SMTP_MAILER_FLAGS',`l8')dnl<br>
          define(`ESMTP_MAILER_FLAGS',`l8')dnl<br>
          define(`SMART_HOST',`sas.intranet.office.itx')<br>
          define(`RELAY_MAILER',`RELAY')dnl<br>
          dnl #####<br>
          define(`confSMTP_LOGIN_MSG',`mbox1.xxxx.net - $b')<br>
          define(`confQUEUE_SORT_ORDER',`Time')dnl<br>
          define(`confDEF_USER_ID', ``8:12'')dnl<br>
          dnl define(`confAUTO_REBUILD')dnl<br>
          dnl #define(`confTO_CONNECT',0)dnl<br>
          define(`confTRY_NULL_MX_LIST', `True')dnl<br>
          define(`confDONT_PROBE_INTERFACES', `True')dnl<br>
          define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl<br>
          define(`ALIAS_FILE', `/etc/aliases')dnl<br>
          define(`STATUS_FILE', `/var/log/mail/statistics')dnl<br>
          define(`UUCP_MAILER_MAX', `2000000')dnl<br>
          define(`confTIME_ZONE',`CEST')dnl<br>
          define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl<br>
          define(`confQUEUE_SORT_ORDER',priority)dnl<br>
          define(`confTO_QUEUERETURN',`2h')<br>
          define(`confTO_QUEUEWARN',`10m')<br>
          dnl ####### 03/11/20<br>
          define(`confWORK_RECIPIENT_FACTOR', `1000')dnl<br>
          define(`confWORK_TIME_FACTOR',6000)dnl<br>
          define(`confTO_HOSTSTATUS',`15m')dnl<br>
          dnl # define(`confTO_DATAINIT', `6m')dnl<br>
          dnl # define(`confTO_DATABLOCK', `35m')dnl<br>
          dnl # define(`confTO_DATAFINAL', `35m')dnl<br>
          dnl #### Max load average for sending dnl<br>
          dnl # ax load average for receiving dnl<br>
          define(`confQUEUE_LA',30)<br>
          define(`confREFUSE_LA',156)dnl<br>
          define(`confDELAY_LA',3)dnl<br>
          dnl # define(`confTO_IDENT',0)<br>
          dnl #########  Direct go everywhere<br>
          dnl # FEATURE(`accept_unresolvable_domains')dnl<br>
          dnl # FEATURE(`accept_unqualified_senders')dnl<br>
          define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl<br>
          dnl # <br>
          define(`confBIND_OPTS', `-DNSRCH -DEFNAMES
          +WorkAroundBrokenAAAA')dnl<br>
          dnl ##############################<br>
          dnl # If you're operating in a DSCP/RFC-4594 environment with
          QoSdnl<br>
          define(`confINET_QOS',`AF33')dnl<br>
          dnl ### ne souhaite pas necessairement le cryptage<br>
          dnl # define(`confTLS_SRV_OPTIONS', `V')dnl<br>
          FEATURE(delay_checks)dnl<br>
          FEATURE(`no_default_msa', `dnl')dnl<br>
          FEATURE(`smrsh', `/usr/sbin/smrsh')dnl<br>
          FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl<br>
          FEATURE(`virtusertable', `hash -o
          /etc/mail/virtusertable.db')dnl<br>
          FEATURE(redirect)dnl<br>
          FEATURE(domaintable)dnl<br>
          FEATURE(always_add_domain)dnl<br>
          FEATURE(use_cw_file)dnl<br>
          FEATURE(use_ct_file)dnl<br>
          FEATURE(`nocanonify',`canonify_hosts')dnl<br>
          dnl #FEATURE(`blacklist_recipients')dnl    <br>
          dnl #<br>
          dnl #### sasl ####<br>
          define(`confAUTH_OPTIONS',`A,')<br>
          TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl<br>
          define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5
          CRAM-MD5')dnl<br>
          dnl #<br>
          dnl
###########################################################################dnl<br>
          dnl
###########################################################################dnl<br>
          dnl ######################   SSL/ STARTTLS
          ####################dnl<br>
          define(`confCACERT_PATH', `/etc/mail/ssl/ssl1')dnl<br>
          define(`confCACERT',
          `/etc/mail/ssl/ssl1/STAR_xxx_net.ca-bundle')dnl<br>
          define(`confSERVER_CERT',
          `/etc/mail/ssl/ssl1/STAR_xxx_net.crt')dnl<br>
          define(`confSERVER_KEY', `/etc/mail/ssl/ssl1/private.key')dnl<br>
define(`confCLIENT_CERT',`/etc/mail/ssl/ssl1/STAR_xxx_net.crt')dnl<br>
          define(`confCLIENT_KEY',`/etc/mail/ssl/ssl1/private.key')dnl<br>
          dnl
###########################################################################dnl<br>
          dnl ############  OPENDKIM
          ####################################  <br>
          MAIL_FILTER(`opendkim', `<a class="moz-txt-link-abbreviated" href="mailto:S=inet:8891@127.0.0.1">S=inet:8891@127.0.0.1</a>')dnl<br>
          define(`confMILTER_MACROS_ENVFROM', `i, {auth_type},
          {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer},
          {mail_host}, {mail_addr}')dnl<br>
          define(`confMILTER_MACROS_ENVRCPT',`r, v, b, Z, {auth_type},
          {greylist}, {auth_ssf}')dnl<br>
          define(`confRECEIVED_HEADER',`( _Code originator:
          MBOX1_901_13_)_$?{auth_type}Abused? contact-us_at ** abuse@</font><font
          size="-1">foo.saa**')dnl<br>
          dnl #### Local lmtp/Dovecot ######<br>
          dnl # define(`DOVECOT_MAILER_ARGS', `TCP $h 24')dnl<br>
          dnl ####FEATURE(`local_lmtp',`[IPC]',`FILE
          /var/run/dovecot/lmtp')dnl<br>
          dnl ############################  FIN OPENDKIM ######       
               <br>
          dnl ###### boost traitement ############"dnl<br>
          dnl
          #############################################################<br>
          DAEMON_OPTIONS(`Name=MTA,Family=inet,Port=25')<br>
          DAEMON_OPTIONS(`Name=MTA2,Family=inet6,Port=587,Modifiers=aE')<br>
          DAEMON_OPTIONS(`Name=MSA,Family=inet6,Port=465,Modifiers=asE')<br>
          DAEMON_OPTIONS(`Name=TRANS, family=inet,
          Port=900,Modifiers=bh')<br>
          FEATURE(`access_db', `hash -T<TMPF> -o
          /etc/mail/access.db')dnl<br>
          dnl # define(`confCONNECTION_RATE_THROTTLE',2800)dnl<br>
          dnl # FEATURE(local_procmail, `', `procmail -t -Y -a $h -d
          $u')dnl<br>
        </font></div>
      <div class="moz-forward-container"><font size="-1"><font size="-1">MAILER(dovecot)dnl</font></font></div>
      <div class="moz-forward-container"><font size="-1">MAILER(smtp)dnl<br>
        </font></div>
      <div class="moz-forward-container"><br>
      </div>
      <div class="moz-forward-container"><br>
      </div>
    </blockquote>
    <div class="moz-forward-container">and
      /usr/share/sendmail-cf/mail/dovecot.m4</div>
    <div class="moz-forward-container"><br>
      Mdovecot,      P=[IPC],<br>
                      F=l59DFMPhnu,<br>
                      S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,<br>
                      U=mail:mail,<br>
                      T=DNS/RFC822/SMTP,<br>
                      A=TCP localhost 24<br>
      <br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    REceiving  an email
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
      Jul 20 09:13:09 mbox1 sendmail[5595]: STARTTLS=server,
      relay=sas.intranet.office.itx [172.18.2.85], version=TLSv1.3,
      verify=NO, cipher=TLS_AES_256_GCM_SHA384, bits=256/256<br>
      Jul 20 09:13:09 mbox1 sendmail[5595]: 16K7D9xA005595:
      from=<a class="moz-txt-link-rfc2396E" href="mailto:alertalert13@azer.com"><alertalert13@azer.com></a>, size=2443, class=0, nrcpts=1,
      msgid=<a class="moz-txt-link-rfc2396E" href="mailto:52761626765166@mail.azer.com"><52761626765166@mail.azer.com></a>, proto=ESMTPS,
      daemon=TRANS, relay=sas.intranet.office.itx [172.18.2.85]<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: spamd: connection from ::1
      [::1]:50664 to port 783, fd 5<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: spamd: setuid to user1
      succeeded<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: spamd: processing message
      <a class="moz-txt-link-rfc2396E" href="mailto:52761626765166@mail.azer.com"><52761626765166@mail.azer.com></a> for user1:1001<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: dns: no callback for id
      63256/IN/A/sas1-d367461f7756.qloud-c.yandex.net, ignored, packet
      on next debug line<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: dns: no likely matching queries
      for id 63256<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: dns: no callback for id
      29336/IN/TXT/sas1-d367461f7756.qloud-c.yandex.net, ignored, packet
      on next debug line<br>
      Jul 20 09:13:09 mbox1 spamd[1858]: dns: no likely matching queries
      for id 29336<br>
      Jul 20 09:13:13 mbox1 spamd[1858]: spamd: clean message
      (-292.6/5.0) for user1:1001 in 3.7 seconds, 2582 bytes.<br>
      Jul 20 09:13:13 mbox1 spamd[1858]: spamd: result: . -292 -
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HELO_DYNAMIC_IPADDR,HTML_MESSAGE,HTML_MIME_NO_HTML_TAG,MAIL_GENERAL,MIME_HTML_ONLY,PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_SOFTFAIL,T_SPF_HELO_TEMPERROR,UNPARSEABLE_RELAY,URIBL_BLOCKED
scantime=3.7,size=2582,user=user1,uid=1001,required_score=5.0,rhost=::1,raddr=::1,rport=50664,mid=<a class="moz-txt-link-rfc2396E" href="mailto:52761626765166@mail.azer.com"><52761626765166@mail.azer.com></a>,autolearn=ham
      autolearn_force=no<br>
      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</div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container"><br>
    </div>
    <div class="moz-forward-container">and absolutely NOTHING on Dovecot
      log file.. and I cannot see anything<br>
    </div>
    <div class="moz-forward-container"><br>
      -------- Message transféré --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Sujet :
            </th>
            <td>Re: Fwd: folders and subfolders</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Date : </th>
            <td>Mon, 19 Jul 2021 18:03:31 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">De : </th>
            <td>Alexander Dalloz <a class="moz-txt-link-rfc2396E" href="mailto:ad+lists@uni-x.org"><ad+lists@uni-x.org></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Pour : </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      Am 19.07.2021 um 06:49 schrieb Stephane Magnier:<br>
      <blockquote type="cite">define(`DOVECOT_MAILER_ARGS', `TCP $h
        24')dnl<br>
      </blockquote>
      <br>
      Why do you define that here? It is already in your dovecot.m4.<br>
      <br>
      <blockquote type="cite">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>
        dnl # FEATURE(`local_lmtp') dnl<br>
        MAILER(dovecot)dnl<br>
        dnl  #MAILER(smtp)dnl<br>
      </blockquote>
      <br>
      You need the SMTP MAILER!<br>
      <br>
      <blockquote type="cite">dnl #MAILER(procmail)dnl<br>
      </blockquote>
      <br>
      Do not place anything below the MAILER definitions. There are very
      few exceptions. See<br>
      <br>
      <br>
      <br>
      "Beware: MAILER declarations should always be at the end of the
      configuration file."<br>
      <br>
      <blockquote type="cite">dnl
        #############################################################<br>
        DAEMON_OPTIONS(`Name=MTA,Family=inet,Port=25')<br>
        DAEMON_OPTIONS(`Name=MTA2,Family=inet6,Port=587,Modifiers=aE')<br>
        DAEMON_OPTIONS(`Name=MSA,Family=inet6,Port=465,Modifiers=asE')<br>
        DAEMON_OPTIONS(`Name=TRANS, family=inet, Port=900,Modifiers=bh')<br>
      </blockquote>
      <br>
      In case adding the SMTP MAILER does not fix your issue at this
      state, please provide log details which represents the errors
      reported by Sendmail and/or dovecot.<br>
      <br>
      Alexander<br>
    </div>
  </body>
</html>