[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Sendmail] Apparition de l'authentification sur 127.0.0.1 depuis une mise à jour récente



	Bonjour à tous,

	J'ai un petit souci avec une grosse configuration sendmail (merci de ne
pas commencer par me dire qu'il faut passer à autre chose).

	Cette configuration fonctionne correctement depuis des années avec
toutes les grouilles nécessaires (dmarc, dkim, clamav, spamassassin,
greylist...) et traite plusieurs dizaines de mails par jours.

	Ce serveur demande une authentification sur le port submission depuis
les IP externes, et ne demandait pas d'authentification sur les deux
interfaces loopback (v4 et v6).

	Depuis une mise à jour récente (mais je n'arrive pas à trouver
laquelle), une authentification est arrivée sur le loopback, ce qui
empêche par exemple root de recevoir les messages d'alerte des
différents daemons (dont smartctl, je me suis aperçu du truc après un
plantage disque de week-end).

Root rayleigh:[/etc/mail] > sendmail -v root@localhost
test
root@localhost... Connecting to [127.0.0.1] port 587 via relay...
220 rayleigh.systella.fr ESMTP Sendmail 8.18.1/8.18.1/Debian-5; Mon, 22
Jul 2024 11:12:21 +0200; (No UCE/UBE) logging access from:
localhost(OK)-smmsp@localhost [127.0.0.1]
>>> EHLO rayleigh.systella.fr
250-rayleigh.systella.fr Hello smmsp@localhost [127.0.0.1], pleased to
meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-STARTTLS
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO rayleigh.systella.fr
250-rayleigh.systella.fr Hello smmsp@localhost [127.0.0.1], pleased to
meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<bertrand@rayleigh.systella.fr> SIZE=5
530 5.7.0 Authentication required
bertrand... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=1029
530 5.7.0 Authentication required
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=2053
530 5.7.0 Authentication required
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 rayleigh.systella.fr closing connection
Root rayleigh:[/etc/mail] >

	Je précise que rien n'a changé dans cette configuration (j'ai même
ressorti une archive de l'an passé pour être sûr). Dans access, j'ai bien :

Root rayleigh:[/etc/mail] > cat access
GreetPause:192.168 0
# Pas d'authentification pour 127.0.0.1
SRV_Features:127.0.0.1 A

mais qui semble être ignoré.

	Mon sendmail.mc ne semble rien contenir de particulier :

divert(0)dnl
define(`_USE_ETC_MAIL_')dnl
define(`CERT_DIR',`/etc/letsencrypt/live/systella.fr')dnl
define(`confTLS_FALLBACK_TO_CLEAR', `true')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.12.3-6.6 2003-09-17 22:44:06 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
FEATURE(`masquerade_envelope')dnl
MASQUERADE_AS(`systella.fr')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
VIRTUSER_DOMAIN_FILE(`-o /etc/mail/virtuserdomains')dnl
FEATURE(`access_db',`hash -o -T<TMPF> /etc/mail/access')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`smrsh')dnl
FEATURE(`mailertable')dnl
FEATURE(`greet_pause',1000)dnl
FEATURE(`local_procmail')dnl

LOCAL_CONFIG
include(`/etc/mail/sasl/sasl.m4')dnl
include(`/etc/mail/tls/starttls.m4')dnl
include(`/etc/mail/milter-greylist.m4')dnl
INPUT_MAIL_FILTER(`spamassassin',
`S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl,
F=, T=S:4m;R:4m')dnl
INPUT_MAIL_FILTER(`opendkim', `S=inet:8892@localhost')dnl
INPUT_MAIL_FILTER(`pyspffilter',
`S=local:/var/run/spf-milter-python/spfmiltersock')dnl
INPUT_MAIL_FILTER(`opendmarc', `S=local:/run/opendmarc/opendmarc.sock')dnl
define(`confINPUT_MAIL_FILTERS',
`pyspffilter,opendkim,opendmarc,greylist,spamassassin,clamav')dnl
define(`STATUS_FILE', `/var/lib/sendmail/sendmail.st')dnl
define(`STATUS_FILE', `/var/lib/sendmail/sm-client.st')dnl

FEATURE(`no_default_msa', `dnl')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA, Family=inet')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTAv6, Family=inet6')dnl
DAEMON_OPTIONS(`Port=submission, M=Ea, Name=MSA, Family=inet')dnl
DAEMON_OPTIONS(`Port=submission, M=Ea, Name=MSA, Family=inet6')dnl

MAILER_DEFINITIONS
MAILER(local)dnl
MAILER(smtp)dnl

	Si quelqu'un avait un début d'explication...

	Bien cordialement,

	JB




Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: