Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Today's weirdness is tomorrow's reason why. -- Hunter S. Thompson


comp / comp.mail.sendmail / Re: sendmail AUTH

SubjectAuthor
* sendmail AUTHWolfgang Agnes
+* Re: sendmail AUTHAndrzej Adam Filip
|`* Re: sendmail AUTHWolfgang Agnes
| +* Re: sendmail AUTHKalevi Kolttonen
| |`* Re: sendmail AUTHWolfgang Agnes
| | +* Re: sendmail AUTHKalevi Kolttonen
| | |`- Re: sendmail AUTHWolfgang Agnes
| | `* Re: sendmail AUTHBjørn Mork
| |  `- Re: sendmail AUTHWolfgang Agnes
| `* Re: sendmail AUTHAndrzej Adam Filip
|  +- Re: sendmail AUTHWolfgang Agnes
|  `* Re: sendmail AUTHWolfgang Agnes
|   `* Re: sendmail AUTHClaus Aßmann
|    `- Re: sendmail AUTHWolfgang Agnes
`* Re: sendmail AUTHAndrzej Adam Filip
 +- Re: sendmail AUTHWolfgang Agnes
 `* Re: sendmail AUTHMarco Moock
  `- Re: sendmail AUTHBjørn Mork

1
Subject: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Followup: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Thu, 7 Nov 2024 22:47 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: sendmail AUTH
Followup-To: comp.mail.sendmail
Date: Thu, 07 Nov 2024 19:47:37 -0300
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <875xoy7jau.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Thu, 07 Nov 2024 23:47:39 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3af2d4380eb4bfb0d7f9e2427ac76d7b";
logging-data="2993828"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wWBM1Q0R5YJAcIv0MCYjrzoQruFiEiJU="
Cancel-Lock: sha1:Ra5esT97vSd7gFZXca/msllqDok=
sha1:1r1rsQ622v/8YwzplDUmzrYYx3k=
View all headers

--8<-------------------------------------------------------->8---
(*) Followup-To

comp.mail.sendmail

I suggest we take this thread to comp.mail.sendmail.
--8<-------------------------------------------------------->8---

Here's what I see when I say ``HELP'' to my sendmail:

214-2.0.0 This is sendmail version 8.18.1
214-2.0.0 Topics:
214-2.0.0 HELO EHLO MAIL RCPT DATA
214-2.0.0 RSET NOOP QUIT HELP VRFY
214-2.0.0 EXPN VERB ETRN DSN AUTH
214-2.0.0 STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation see
214-2.0.0 http://www.sendmail.org/email-addresses.html
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info

It shows AUTH. But it doesn't show anything else such as PLAIN or
CRAM-MD5. What does that mean? What kind of AUTH support do I have at
the moment?

I have no cyrus packages installed on this FreeBSD. If AUTH suffices to
me, then I wouldn't install anything else.

# pkg info | grep cyrus
#

# uname -a
FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64

Subject: Re: sendmail AUTH
From: Andrzej Adam Filip
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Followup: comp.mail.sendmail
Organization: It is for me to know and for you to find out.
Date: Fri, 8 Nov 2024 04:50 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anfi@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: Re: sendmail AUTH
Followup-To: comp.mail.sendmail
Date: Fri, 08 Nov 2024 05:50:05 +0100
Organization: It is for me to know and for you to find out.
Lines: 58
Message-ID: <anfi+xghsks9vvf-ob85@wp.eu>
References: <875xoy7jau.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 08 Nov 2024 05:51:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a935726cc6e3d37ca56e335428247fed";
logging-data="3233725"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ejWoCuvFrzoF1bF9Wgsl4"
Cancel-Lock: sha1:nnXYJ3wacPGDaGY6SNmOG8O/yJ0=
sha1:vTuA8016srIU08xTHeuNoOB5sPg=
View all headers

Wolfgang Agnes <wagnes@jemoni.to> wrote:
> --8<-------------------------------------------------------->8---
> (*) Followup-To
>
> comp.mail.sendmail
>
> I suggest we take this thread to comp.mail.sendmail.
> --8<-------------------------------------------------------->8---
>
> Here's what I see when I say ``HELP'' to my sendmail:
>
> 214-2.0.0 This is sendmail version 8.18.1
> 214-2.0.0 Topics:
> 214-2.0.0 HELO EHLO MAIL RCPT DATA
> 214-2.0.0 RSET NOOP QUIT HELP VRFY
> 214-2.0.0 EXPN VERB ETRN DSN AUTH
> 214-2.0.0 STARTTLS
> 214-2.0.0 For more info use "HELP <topic>".
> 214-2.0.0 To report bugs in the implementation see
> 214-2.0.0 http://www.sendmail.org/email-addresses.html
> 214-2.0.0 For local information send email to Postmaster at your site.
> 214 2.0.0 End of HELP info
>
> It shows AUTH. But it doesn't show anything else such as PLAIN or
> CRAM-MD5. What does that mean? What kind of AUTH support do I have at
> the moment?
>
> I have no cyrus packages installed on this FreeBSD. If AUTH suffices to
> me, then I wouldn't install anything else.
>
> # pkg info | grep cyrus
> #
>
> # uname -a
> FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC
> amd64

Supported AUTHentication mechanisms are listed in reply to EHLO
(extended HELO) ESMTP command. EHLO replies list SMTP extensions
supported in the ESMTP session/connection.

:> ehlo xxx
:< 250-mail.example.org Hello localhost [127.0.0.1], pleased to meet you
:< 250-ENHANCEDSTATUSCODES
:< 250-PIPELINING
:< 250-EXPN
:< 250-VERB
:< 250-8BITMIME
:< 250-SIZE
:< 250-DSN
:< 250-ETRN
:< 250-AUTH DIGEST-MD5 CRAM-MD5
:< 250-DELIVERBY
:< 250 HELP

--
[Andrew] Andrzej A. Filip

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Followup: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 10:52 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: Re: sendmail AUTH
Followup-To: comp.mail.sendmail
Date: Fri, 08 Nov 2024 07:52:48 -0300
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <87ed3m575r.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 08 Nov 2024 11:52:58 +0100 (CET)
Injection-Info: dont-email.me; posting-host="0ce90ff5ab76d8fd78c052ae41c9ffd2";
logging-data="3339330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XpAo9Ro5pmuhKRXkASeXC79duNPGgyi8="
Cancel-Lock: sha1:6E1OYNC6fgNpo9pWIzzs0QPq5Ks=
sha1:crsbm2TNT4N9puxbdepb2/tbKsc=
View all headers

Andrzej Adam Filip <anfi@onet.eu> writes:

> Wolfgang Agnes <wagnes@jemoni.to> wrote:
>> --8<-------------------------------------------------------->8---
>> (*) Followup-To
>>
>> comp.mail.sendmail
>>
>> I suggest we take this thread to comp.mail.sendmail.
>> --8<-------------------------------------------------------->8---
>>
>> Here's what I see when I say ``HELP'' to my sendmail:
>>
>> 214-2.0.0 This is sendmail version 8.18.1
>> 214-2.0.0 Topics:
>> 214-2.0.0 HELO EHLO MAIL RCPT DATA
>> 214-2.0.0 RSET NOOP QUIT HELP VRFY
>> 214-2.0.0 EXPN VERB ETRN DSN AUTH
>> 214-2.0.0 STARTTLS
>> 214-2.0.0 For more info use "HELP <topic>".
>> 214-2.0.0 To report bugs in the implementation see
>> 214-2.0.0 http://www.sendmail.org/email-addresses.html
>> 214-2.0.0 For local information send email to Postmaster at your site.
>> 214 2.0.0 End of HELP info
>>
>> It shows AUTH. But it doesn't show anything else such as PLAIN or
>> CRAM-MD5. What does that mean? What kind of AUTH support do I have at
>> the moment?
>>
>> I have no cyrus packages installed on this FreeBSD. If AUTH suffices to
>> me, then I wouldn't install anything else.
>>
>> # pkg info | grep cyrus
>> #
>>
>> # uname -a
>> FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC
>> amd64
>
> Supported AUTHentication mechanisms are listed in reply to EHLO
> (extended HELO) ESMTP command. EHLO replies list SMTP extensions
> supported in the ESMTP session/connection.
>
> :> ehlo xxx
> :< 250-mail.example.org Hello localhost [127.0.0.1], pleased to meet you
> :< 250-ENHANCEDSTATUSCODES
> :< 250-PIPELINING
> :< 250-EXPN
> :< 250-VERB
> :< 250-8BITMIME
> :< 250-SIZE
> :< 250-DSN
> :< 250-ETRN
> :< 250-AUTH DIGEST-MD5 CRAM-MD5
> :< 250-DELIVERBY
> :< 250 HELP

Thanks! Then I don't have support for authentication.

--8<-------------------------------------------------------->8---
220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024 07:51:24 -0300 (-03)
EHLO localhost
250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
--8<-------------------------------------------------------->8---

I'll have to recompile Sendmail.

Subject: Re: sendmail AUTH
From: Kalevi Kolttonen
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 15:40 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Fri, 8 Nov 2024 15:40:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <vglbcv$38n6p$2@dont-email.me>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu> <87ed3m575r.fsf@jemoni.to>
Injection-Date: Fri, 08 Nov 2024 16:40:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6b78023f152c50ef7315458c9b06faef";
logging-data="3431641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lDyhp4paAF+tVnNbVpLzMZvl27iWFha8="
User-Agent: tin/2.6.3-20231224 ("Banff") (Linux/6.11.6-200.fc40.x86_64 (x86_64))
Cancel-Lock: sha1:prf7y9g2YmzKy4z155RV7rOY++c=
View all headers

In comp.mail.sendmail Wolfgang Agnes <wagnes@jemoni.to> wrote:
> Thanks! Then I don't have support for authentication.
>
> --8<-------------------------------------------------------->8---
> 220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024 07:51:24 -0300 (-03)
> EHLO localhost
> 250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
> 250-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-8BITMIME
> 250-SIZE
> 250-DSN
> 250-ETRN
> 250-STARTTLS
> 250-DELIVERBY
> 250 HELP
> --8<-------------------------------------------------------->8---
>
> I'll have to recompile Sendmail.

Not necessarily. I cannot remember the exact conditions, but
sometimes AUTH appears only after the client has issued
STARTTLS to enable the encryption layer. Clients do EHLO again
after the encryption layer is working.

br,
KK

Subject: Re: sendmail AUTH
From: Andrzej Adam Filip
Newsgroups: comp.mail.sendmail
Organization: It is for me to know and for you to find out.
Date: Fri, 8 Nov 2024 16:48 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anfi@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Fri, 08 Nov 2024 17:48:01 +0100
Organization: It is for me to know and for you to find out.
Lines: 23
Message-ID: <anfi+sczagkoq8f-ob85@wp.eu>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 08 Nov 2024 17:48:02 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aec5dd55758d7cdd8807b7de5b9d9bc7";
logging-data="3453818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ilDj1US4hkI3Y7dGnQh4P"
Cancel-Lock: sha1:3j6phlsYycuIFJD9fq9jODmnDWM=
sha1:lS2UAKSPFDx04XPXUAkdr74Ht90=
View all headers

Wolfgang Agnes <wagnes@jemoni.to> wrote:
> […]
> --8<-------------------------------------------------------->8---
> 220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024 07:51:24 -0300 (-03)
> EHLO localhost
> 250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
> 250-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-8BITMIME
> 250-SIZE
> 250-DSN
> 250-ETRN
> 250-STARTTLS
> 250-DELIVERBY
> 250 HELP
> --8<-------------------------------------------------------->8---
>
> I'll have to recompile Sendmail.

Take a look at https://www.sendmail.org/~ca/email/auth.html

--
[Andrew] Andrzej A. Filip

Subject: Re: sendmail AUTH
From: Andrzej Adam Filip
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Organization: It is for me to know and for you to find out.
Date: Fri, 8 Nov 2024 16:50 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anfi@onet.eu (Andrzej Adam Filip)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: Re: sendmail AUTH
Date: Fri, 08 Nov 2024 17:50:57 +0100
Organization: It is for me to know and for you to find out.
Lines: 42
Message-ID: <anfi+ebxu7u3i3f-ob85@wp.eu>
References: <875xoy7jau.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 08 Nov 2024 17:51:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="aec5dd55758d7cdd8807b7de5b9d9bc7";
logging-data="3453818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jpJzrWm5RDfBVnh13rD8b"
Cancel-Lock: sha1:6+JJUn8tmSqgseDcvhAz98cUhHo=
sha1:J9dKqm1tKdw/XzQ0Q5qCv1iYkoQ=
View all headers

Wolfgang Agnes <wagnes@jemoni.to> wrote:
> --8<-------------------------------------------------------->8---
> (*) Followup-To
>
> comp.mail.sendmail
>
> I suggest we take this thread to comp.mail.sendmail.
> --8<-------------------------------------------------------->8---
>
> Here's what I see when I say ``HELP'' to my sendmail:
>
> 214-2.0.0 This is sendmail version 8.18.1
> 214-2.0.0 Topics:
> 214-2.0.0 HELO EHLO MAIL RCPT DATA
> 214-2.0.0 RSET NOOP QUIT HELP VRFY
> 214-2.0.0 EXPN VERB ETRN DSN AUTH
> 214-2.0.0 STARTTLS
> 214-2.0.0 For more info use "HELP <topic>".
> 214-2.0.0 To report bugs in the implementation see
> 214-2.0.0 http://www.sendmail.org/email-addresses.html
> 214-2.0.0 For local information send email to Postmaster at your site.
> 214 2.0.0 End of HELP info
>
> It shows AUTH. But it doesn't show anything else such as PLAIN or
> CRAM-MD5. What does that mean? What kind of AUTH support do I have at
> the moment?
>
> I have no cyrus packages installed on this FreeBSD. If AUTH suffices to
> me, then I wouldn't install anything else.
>
> # pkg info | grep cyrus
> #
>
> # uname -a
> FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC
> amd64

Do you plan to use dovecot (IMAP)?
YES => AFAIK postfix offers better dovecot integration than sendmail.

--
[Andrew] Andrzej A. Filip

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 18:40 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Fri, 08 Nov 2024 15:40:17 -0300
Organization: A noiseless patient Spider
Lines: 127
Message-ID: <87ttchzi0e.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to> <vglbcv$38n6p$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 08 Nov 2024 19:40:21 +0100 (CET)
Injection-Info: dont-email.me; posting-host="0ce90ff5ab76d8fd78c052ae41c9ffd2";
logging-data="3491336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vhqJwjkRCw2A8BW3cIQ083x+OuStZquk="
Cancel-Lock: sha1:A2P78j2R80vO7fgw3YVpuEnX094=
sha1:DNJG6m0ohmNVs7Sv89orY0Qsz/E=
View all headers

kalevi@kolttonen.fi (Kalevi Kolttonen) writes:

> In comp.mail.sendmail Wolfgang Agnes <wagnes@jemoni.to> wrote:
>> Thanks! Then I don't have support for authentication.
>>
>> --8<-------------------------------------------------------->8---
>> 220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024
>> 07:51:24 -0300 (-03)
>> EHLO localhost
>> 250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
>> 250-ENHANCEDSTATUSCODES
>> 250-PIPELINING
>> 250-8BITMIME
>> 250-SIZE
>> 250-DSN
>> 250-ETRN
>> 250-STARTTLS
>> 250-DELIVERBY
>> 250 HELP
>> --8<-------------------------------------------------------->8---
>>
>> I'll have to recompile Sendmail.
>
> Not necessarily. I cannot remember the exact conditions, but
> sometimes AUTH appears only after the client has issued
> STARTTLS to enable the encryption layer. Clients do EHLO again
> after the encryption layer is working.

Thanks! I don't know how to investigate it further after I type
STARTTLS. I believe that after I issue STARTTLS, I'd have to speak the
TLS protocol, which I don't know how.

By the way, I think you're thinking is good---you might be thinking that
sendmail wouldn't want credentials traveling in the clear, but I believe
it does accept that if we compile it with AUTH PLAIN, say. I think
saying STARTTLS before will not be required.

The book

sendmail
Bryan Costales, George Jansen
& Claus Assmann with Gregory Neil Shapiro
O'Reilly, 2007, fourth edition, ISBN 978-0-596-51029-9

seems to confirm that I don't have AUTH support. On section 5.1.2.1, we
find:

--8<-------------------------------------------------------->8---
Before you install sendmail, test it to be sure the added SASL support
has worked. You can do this by running sendmail from the directory in
which it was built. Note that you must do this as root:

# obj.*/sendmail/sendmail -bs -Am

Here, we run the newly built sendmail relative to the source
directory. The -bs tells sendmail to speak SMTP on its standard
input. The -Am tells sendmail to use its server configuration file (not
submit.cf), even though it is running in mail-submission mode.

Such a test session might look like this:

220 your.host.domain ESMTP Sendmail 8.14.1/8.14.1; Fri, 14 Dec 2007 11:43:02 -0700
(PST)
ehlo your.host.domain
250-your.host.domain Hello root@localhost, pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 <-- note this line
250-DELIVERBY
250 HELP
quit
221 2.0.0 your.host.domain closing connection

Here, the AUTH SMTP keyword appears, indicating that this site supports SASL
authentication and two modes of authentication as shown earlier.
--8<-------------------------------------------------------->8---

And here's my test:

--8<-------------------------------------------------------->8---
# /usr/sbin/sendmail -bs -Am
220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024 15:29:21 -0300 (-03)
help
214-2.0.0 This is sendmail version 8.18.1
214-2.0.0 Topics:
214-2.0.0 HELO EHLO MAIL RCPT DATA
214-2.0.0 RSET NOOP QUIT HELP VRFY
214-2.0.0 EXPN VERB ETRN DSN AUTH
214-2.0.0 STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation see
214-2.0.0 http://www.sendmail.org/email-addresses.html
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info
EHLO localhost
250-my.host.name Hello root@localhost, pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
STARTTLS
220 2.0.0 Ready to start TLS
HELP <--- I lose the connection here
# --8<-------------------------------------------------------->8---

In maillog, I find:

--8<-------------------------------------------------------->8---
Nov 8 15:29:44 my.host sendmail[16217]: tls_srv_features=(null), relay=(null) [0]
Nov 8 15:29:44 my.host sendmail[16217]: tls_srv_features=empty, stat=0, relay=(null) [0]
--8<-------------------------------------------------------->8---

besides other irrelevant lines.

I find curious, though, that if I don't have SASL support, why should I
see the command AUTH as the answer to HELP? (I seem to have no
mechanism compiled-in for authentication.)

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Followup: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 18:45 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: Re: sendmail AUTH
Followup-To: comp.mail.sendmail
Date: Fri, 08 Nov 2024 15:45:37 -0300
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <87msi9zhri.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+ebxu7u3i3f-ob85@wp.eu>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 08 Nov 2024 19:45:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="0ce90ff5ab76d8fd78c052ae41c9ffd2";
logging-data="3491336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8FEZjRFSFnYrubTpS98ZYSg2dxCoXK5k="
Cancel-Lock: sha1:OPXtZXYxfYqdkqk5+oyKLag8Ihc=
sha1:kxuQXVdeRo2ybFORJh6qPRxG+Ys=
View all headers

Andrzej Adam Filip <anfi@onet.eu> writes:

> Wolfgang Agnes <wagnes@jemoni.to> wrote:
>> --8<-------------------------------------------------------->8---
>> (*) Followup-To
>>
>> comp.mail.sendmail
>>
>> I suggest we take this thread to comp.mail.sendmail.
>> --8<-------------------------------------------------------->8---
>>
>> Here's what I see when I say ``HELP'' to my sendmail:
>>
>> 214-2.0.0 This is sendmail version 8.18.1
>> 214-2.0.0 Topics:
>> 214-2.0.0 HELO EHLO MAIL RCPT DATA
>> 214-2.0.0 RSET NOOP QUIT HELP VRFY
>> 214-2.0.0 EXPN VERB ETRN DSN AUTH
>> 214-2.0.0 STARTTLS
>> 214-2.0.0 For more info use "HELP <topic>".
>> 214-2.0.0 To report bugs in the implementation see
>> 214-2.0.0 http://www.sendmail.org/email-addresses.html
>> 214-2.0.0 For local information send email to Postmaster at your site.
>> 214 2.0.0 End of HELP info
>>
>> It shows AUTH. But it doesn't show anything else such as PLAIN or
>> CRAM-MD5. What does that mean? What kind of AUTH support do I have at
>> the moment?
>>
>> I have no cyrus packages installed on this FreeBSD. If AUTH suffices to
>> me, then I wouldn't install anything else.
>>
>> # pkg info | grep cyrus
>> #
>>
>> # uname -a
>> FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC
>> amd64
>
> Do you plan to use dovecot (IMAP)?
> YES => AFAIK postfix offers better dovecot integration than sendmail.

(Thanks!) Such as what?

So far I'm not planning on using IMAP. This is just for personal mail
and I prefer the whole thing to be local, so POP3 should be enough to
bring my mail to my personal computer and then I can manage it here.

And I also don't want to plan to run Postfix. I am actually fond of
qmail, but I decided to run the legend once again to (this time) really
learn how it works and celebrate what a great software it has always
been.

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 18:46 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Fri, 08 Nov 2024 15:46:06 -0300
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <87cyj5zhqp.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to> <anfi+sczagkoq8f-ob85@wp.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 08 Nov 2024 19:46:07 +0100 (CET)
Injection-Info: dont-email.me; posting-host="0ce90ff5ab76d8fd78c052ae41c9ffd2";
logging-data="3491336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DuXg9vasIgQNWI+/UUcFdiWArF+gBpbw="
Cancel-Lock: sha1:/q+yb6evPODXkut8W/Xbn7484SM=
sha1:d6DsI0uS3mMyg+uruwvt6r8ECYY=
View all headers

Andrzej Adam Filip <anfi@onet.eu> writes:

> Wolfgang Agnes <wagnes@jemoni.to> wrote:
>> […]
>> --8<-------------------------------------------------------->8---
>> 220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024
>> 07:51:24 -0300 (-03)
>> EHLO localhost
>> 250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
>> 250-ENHANCEDSTATUSCODES
>> 250-PIPELINING
>> 250-8BITMIME
>> 250-SIZE
>> 250-DSN
>> 250-ETRN
>> 250-STARTTLS
>> 250-DELIVERBY
>> 250 HELP
>> --8<-------------------------------------------------------->8---
>>
>> I'll have to recompile Sendmail.
>
> Take a look at https://www.sendmail.org/~ca/email/auth.html

Thanks! I'll follow those instruction and report back.

Subject: Re: sendmail AUTH
From: Kalevi Kolttonen
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 18:48 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Fri, 8 Nov 2024 18:48:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <vglmd8$3ajid$1@dont-email.me>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu> <87ed3m575r.fsf@jemoni.to> <vglbcv$38n6p$2@dont-email.me> <87ttchzi0e.fsf@jemoni.to>
Injection-Date: Fri, 08 Nov 2024 19:48:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6b78023f152c50ef7315458c9b06faef";
logging-data="3493453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uvgrFzxVNn8WJmKYejCZKu0Nukw6xFcI="
User-Agent: tin/2.6.3-20231224 ("Banff") (Linux/6.11.6-200.fc40.x86_64 (x86_64))
Cancel-Lock: sha1:VmQYtZAPhGmwSbK4xP1lMClppPo=
View all headers

Wolfgang Agnes <wagnes@jemoni.to> wrote:
> Thanks! I don't know how to investigate it further after I type
> STARTTLS. I believe that after I issue STARTTLS, I'd have to speak the
> TLS protocol, which I don't know how.

Please install a perl-based tool called "swaks". From the manual page:

Swaks - Swiss Army Knife SMTP, the all-purpose SMTP transaction tester

and then use its "-tls" option.

With swaks, all SMTP testing becomes very easy indeed.

> By the way, I think you're thinking is good---you might be thinking that
> sendmail wouldn't want credentials traveling in the clear, but I believe
> it does accept that if we compile it with AUTH PLAIN, say. I think
> saying STARTTLS before will not be required.

You never *compile* Sendmail with "AUTH PLAIN", those are m4 configuration
file options.

br,
KK

Subject: Re: sendmail AUTH
From: Marco Moock
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Organization: A noiseless patient Spider
Date: Fri, 8 Nov 2024 19:46 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mm+usenet-es@dorfdsl.de (Marco Moock)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: Re: sendmail AUTH
Date: Fri, 8 Nov 2024 20:46:26 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <vglpqj$3atop$1@dont-email.me>
References: <875xoy7jau.fsf@jemoni.to>
<anfi+ebxu7u3i3f-ob85@wp.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 08 Nov 2024 20:46:27 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ccb87b4eef21eb994047713e641827ab";
logging-data="3503897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y0qo4oVOg4wgiqacK+r7g"
Cancel-Lock: sha1:pN3zaDWAjUIA+hEbk3KjmABHs7k=
View all headers

On 08.11.2024 um 17:50 Uhr Andrzej Adam Filip wrote:

> Wolfgang Agnes <wagnes@jemoni.to> wrote:
> > --8<-------------------------------------------------------->8---
> > (*) Followup-To
> >
> > comp.mail.sendmail
> >
> > I suggest we take this thread to comp.mail.sendmail.
> > --8<-------------------------------------------------------->8---
> >
> > Here's what I see when I say ``HELP'' to my sendmail:
> >
> > 214-2.0.0 This is sendmail version 8.18.1
> > 214-2.0.0 Topics:
> > 214-2.0.0 HELO EHLO MAIL RCPT DATA
> > 214-2.0.0 RSET NOOP QUIT HELP VRFY
> > 214-2.0.0 EXPN VERB ETRN DSN AUTH
> > 214-2.0.0 STARTTLS
> > 214-2.0.0 For more info use "HELP <topic>".
> > 214-2.0.0 To report bugs in the implementation see
> > 214-2.0.0 http://www.sendmail.org/email-addresses.html
> > 214-2.0.0 For local information send email to Postmaster at your
> > site. 214 2.0.0 End of HELP info
> >
> > It shows AUTH. But it doesn't show anything else such as PLAIN or
> > CRAM-MD5. What does that mean? What kind of AUTH support do I
> > have at the moment?
> >
> > I have no cyrus packages installed on this FreeBSD. If AUTH
> > suffices to me, then I wouldn't install anything else.
> >
> > # pkg info | grep cyrus
> > #
> >
> > # uname -a
> > FreeBSD my.host.name 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC
> > amd64
>
> Do you plan to use dovecot (IMAP)?
> YES => AFAIK postfix offers better dovecot integration than sendmail.

IIRC Dovecot supports getting mail from /var/spool and also via LMTP.

--
kind regards
Marco

Send spam to 1731084657muell@cartoonies.org

Subject: Re: sendmail AUTH
From: Bjørn Mork
Newsgroups: comp.mail.sendmail
Organization: m
Date: Fri, 8 Nov 2024 19:55 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bjorn@mork.no (Bjørn Mork)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Fri, 08 Nov 2024 20:55:50 +0100
Organization: m
Lines: 44
Message-ID: <87wmhd7b5l.fsf@miraculix.mork.no>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to> <vglbcv$38n6p$2@dont-email.me>
<87ttchzi0e.fsf@jemoni.to>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 08 Nov 2024 20:55:50 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3f0f258a45bed8f5d26e39c3d6299cc2";
logging-data="3506523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wvr2CmVc1Zabmd+kqsbdY"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:7cFxYfImMV0ql41dxgQwLgTXcy0=
sha1:TQYnzhs60LXY8kLlzMS5V54jJ1k=
View all headers

Wolfgang Agnes <wagnes@jemoni.to> writes:

> Thanks! I don't know how to investigate it further after I type
> STARTTLS. I believe that after I issue STARTTLS, I'd have to speak the
> TLS protocol, which I don't know how.

You can have openssl connect and issue the STARTTLS, and then continue
with TLS. Like so:

bjorn@miraculix:~$ openssl s_client -connect canardo:25 -starttls smtp -quiet
Can't use SSL_get_servername
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R11
verify return:1
depth=0 CN = canardo.mork.no
verify return:1
250 HELP
ehlo du
250-canardo.dyn.mork.no Hello [IPv6:2a01:799:10de:2e0a:149a:2079:3a3a:3457], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH PLAIN LOGIN
250-DELIVERBY
250 HELP
quit
221 2.0.0 canardo.dyn.mork.no closing connection

Drop the "-quiet" option to get more details about the TLS negotiation,
or add other options. You can also send client certificate if you want,
using -key and -cert. And there are plenty of other options as usual
with openssl :-)

See the openssl s_client manual page for more details.

Bjørn

Subject: Re: sendmail AUTH
From: Bjørn Mork
Newsgroups: comp.unix.bsd.freebsd.misc, comp.mail.sendmail, comp.unix.programmer
Organization: m
Date: Fri, 8 Nov 2024 20:17 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bjorn@mork.no (Bjørn Mork)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.mail.sendmail,comp.unix.programmer
Subject: Re: sendmail AUTH
Date: Fri, 08 Nov 2024 21:17:46 +0100
Organization: m
Lines: 37
Message-ID: <87ses17a51.fsf@miraculix.mork.no>
References: <875xoy7jau.fsf@jemoni.to> <anfi+ebxu7u3i3f-ob85@wp.eu>
<vglpqj$3atop$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 08 Nov 2024 21:17:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3f0f258a45bed8f5d26e39c3d6299cc2";
logging-data="3506523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sGvzZNcKKnlkRbl0dW1m+"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:Zk7t9N6rmjyQneYMVP+E2amDvvo=
sha1:KSmCpGO540OhtepEO0MLyBWT4WM=
View all headers

Marco Moock <mm+usenet-es@dorfdsl.de> writes:
> On 08.11.2024 um 17:50 Uhr Andrzej Adam Filip wrote:
>
>> Do you plan to use dovecot (IMAP)?
>> YES => AFAIK postfix offers better dovecot integration than sendmail.
>
> IIRC Dovecot supports getting mail from /var/spool and also via LMTP.

There are lots of possibilites. I've been using the dovecot+sendmail
combo for years, and courier+sendmail before that. Have always used
procmail as lda delivering to Maildirs in the users' home dir.

Having

FEATURE(`local_procmail')dnl

in sendmail.mc and

DEFAULT=$HOME/Maildir/

in /etc/procmailrc is enough for delivery. The dovecot config has

mail_location = maildir:~/Maildir

My main reason for that configuration is that it allows each user to
filter mail directly into different imap folders using their own
~/.procmailrc without doing anything extra. Just add procmail rules
delivering to Maildir/.whatever/ instead of the default, and it will
show up in the INBOX.whatever folder in dovecot.

That's just one way to to it. There's a huge menu of mailbox formats and
locations. But whatever you choose I'm pretty sure both sendmail and
dovecot can support it.

Bjørn

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Sat, 9 Nov 2024 20:22 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Sat, 09 Nov 2024 17:22:01 -0300
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <87ses0rwd2.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to> <vglbcv$38n6p$2@dont-email.me>
<87ttchzi0e.fsf@jemoni.to> <vglmd8$3ajid$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 09 Nov 2024 21:22:01 +0100 (CET)
Injection-Info: dont-email.me; posting-host="80b003e23e12bc133350d45674e15a01";
logging-data="4148270"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19U7q+9P/mmyHMJLfMFkM2W0tnu2xnVKIg="
Cancel-Lock: sha1:5t2A9eRmajOwFtk2G92SAGbEHEU=
sha1:l6u7m0rP/GTUkfMLcHrIXsE5RN4=
View all headers

kalevi@kolttonen.fi (Kalevi Kolttonen) writes:

> Wolfgang Agnes <wagnes@jemoni.to> wrote:
>> Thanks! I don't know how to investigate it further after I type
>> STARTTLS. I believe that after I issue STARTTLS, I'd have to speak the
>> TLS protocol, which I don't know how.
>
> Please install a perl-based tool called "swaks". From the manual page:
>
> Swaks - Swiss Army Knife SMTP, the all-purpose SMTP transaction tester
>
> and then use its "-tls" option.
>
> With swaks, all SMTP testing becomes very easy indeed.

Pretty useful. Thanks!

>> By the way, I think you're thinking is good---you might be thinking that
>> sendmail wouldn't want credentials traveling in the clear, but I believe
>> it does accept that if we compile it with AUTH PLAIN, say. I think
>> saying STARTTLS before will not be required.
>
> You never *compile* Sendmail with "AUTH PLAIN", those are m4 configuration
> file options.

Point taken. On the other hand, we could perhaps call the process of
writing the sendmail.cf file as a certain compilation? Because we read
a file that seems to be written in a certain domain-specific language
and then a program writes the sendmail.cf, which looks like a
lower-level type of language. :)

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Sat, 9 Nov 2024 20:23 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Sat, 09 Nov 2024 17:23:31 -0300
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <87jzdcrwak.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to> <vglbcv$38n6p$2@dont-email.me>
<87ttchzi0e.fsf@jemoni.to> <87wmhd7b5l.fsf@miraculix.mork.no>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 09 Nov 2024 21:23:32 +0100 (CET)
Injection-Info: dont-email.me; posting-host="80b003e23e12bc133350d45674e15a01";
logging-data="4148270"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CA6O5GZTMm9MxpViiD/mkEq89I/jZVL8="
Cancel-Lock: sha1:0by4DkuQbAq3OzSNJ3EXzN4Uh1A=
sha1:nzJTyUtUuheZ9kVpOJjKPuTl8bY=
View all headers

Bjørn Mork <bjorn@mork.no> writes:

> Wolfgang Agnes <wagnes@jemoni.to> writes:
>
>> Thanks! I don't know how to investigate it further after I type
>> STARTTLS. I believe that after I issue STARTTLS, I'd have to speak the
>> TLS protocol, which I don't know how.
>
> You can have openssl connect and issue the STARTTLS, and then continue
> with TLS. Like so:
>
> bjorn@miraculix:~$ openssl s_client -connect canardo:25 -starttls smtp -quiet
> Can't use SSL_get_servername
> depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
> verify return:1
> depth=1 C = US, O = Let's Encrypt, CN = R11
> verify return:1
> depth=0 CN = canardo.mork.no
> verify return:1
> 250 HELP
> ehlo du
> 250-canardo.dyn.mork.no Hello
> [IPv6:2a01:799:10de:2e0a:149a:2079:3a3a:3457], pleased to meet you
> 250-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-EXPN
> 250-VERB
> 250-8BITMIME
> 250-SIZE
> 250-DSN
> 250-ETRN
> 250-AUTH PLAIN LOGIN
> 250-DELIVERBY
> 250 HELP
> quit
> 221 2.0.0 canardo.dyn.mork.no closing connection

Nice! Thanks for the illustration. Didn't know openssl also made that
pretty easy.

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Sat, 9 Nov 2024 21:09 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Sat, 09 Nov 2024 18:09:51 -0300
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <87a5e8ru5c.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <anfi+xghsks9vvf-ob85@wp.eu>
<87ed3m575r.fsf@jemoni.to> <anfi+sczagkoq8f-ob85@wp.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 09 Nov 2024 22:09:55 +0100 (CET)
Injection-Info: dont-email.me; posting-host="80b003e23e12bc133350d45674e15a01";
logging-data="4177003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ptNsDL2nSuX+NntELvrJW+yzdSd8DTI4="
Cancel-Lock: sha1:IsMt16K2783S4LrcPJWV4ZKAPwI=
sha1:S5sJ7aDrqJ2cumKMFZYgNLlWS70=
View all headers

Andrzej Adam Filip <anfi@onet.eu> writes:

> Wolfgang Agnes <wagnes@jemoni.to> wrote:
>> […]
>> --8<-------------------------------------------------------->8---
>> 220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Fri, 8 Nov 2024
>> 07:51:24 -0300 (-03)
>> EHLO localhost
>> 250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
>> 250-ENHANCEDSTATUSCODES
>> 250-PIPELINING
>> 250-8BITMIME
>> 250-SIZE
>> 250-DSN
>> 250-ETRN
>> 250-STARTTLS
>> 250-DELIVERBY
>> 250 HELP
>> --8<-------------------------------------------------------->8---
>>
>> I'll have to recompile Sendmail.
>
> Take a look at https://www.sendmail.org/~ca/email/auth.html

Thanks! I now have support for DIGEST-MD5 and CRAM-MD5.

--8<-------------------------------------------------------->8---
# sendmail -bs -Am
220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Sat, 9 Nov 2024 17:26:51 -0300 (-03)
ehlo localhost
250-my.host.name Hello root@localhost, pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-STARTTLS
250-DELIVERBY
250 HELP
--8<-------------------------------------------------------->8---

I made sure not to add PLAIN or LOGIN, although I'd accept such
authentications if I can make sure the conversation would be always
wrapped in TLS, which I think it would be desirable for port 587. But I
don't if that's easy to do.

Anyway, thanks for the help.

Subject: Re: sendmail AUTH
From: Claus Aßmann
Newsgroups: comp.mail.sendmail
Organization: MGT Consulting
Date: Sun, 10 Nov 2024 06:05 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!news.quux.org!weretis.net!feeder9.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Sun, 10 Nov 2024 01:05:22 -0500 (EST)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <vgpif2$5m3$1@news.misty.com>
References: <875xoy7jau.fsf@jemoni.to> <87ed3m575r.fsf@jemoni.to> <anfi+sczagkoq8f-ob85@wp.eu> <87a5e8ru5c.fsf@jemoni.to>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Nov 2024 06:05:22 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="5827"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
View all headers

Wolfgang Agnes wrote:

> I made sure not to add PLAIN or LOGIN, although I'd accept such
> authentications if I can make sure the conversation would be always
> wrapped in TLS, which I think it would be desirable for port 587. But I
> don't if that's easy to do.

Did you read the fine documentation?

AuthOptions
p don't permit mechanisms susceptible to simple
passive attack (e.g., PLAIN, LOGIN), unless a
security layer is active.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Subject: Re: sendmail AUTH
From: Wolfgang Agnes
Newsgroups: comp.mail.sendmail
Organization: A noiseless patient Spider
Date: Mon, 11 Nov 2024 11:27 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wagnes@jemoni.to (Wolfgang Agnes)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail AUTH
Date: Mon, 11 Nov 2024 08:27:14 -0300
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <87v7wut3hp.fsf@jemoni.to>
References: <875xoy7jau.fsf@jemoni.to> <87ed3m575r.fsf@jemoni.to>
<anfi+sczagkoq8f-ob85@wp.eu> <87a5e8ru5c.fsf@jemoni.to>
<vgpif2$5m3$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Nov 2024 12:27:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3b9c4e065a5e8a9a86df711005fd4432";
logging-data="1016613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BEGYO9JXpuYK2Uak7HcHXwx4KkPTj7G8="
Cancel-Lock: sha1:cBeoRxYdlMQCJAbsYe0NiuefU8Y=
sha1:xVey6i7lhtgBSSkWbRwBS74zmYI=
View all headers

Claus Aßmann
<INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org>
writes:

> Wolfgang Agnes wrote:
>
>> I made sure not to add PLAIN or LOGIN, although I'd accept such
>> authentications if I can make sure the conversation would be always
>> wrapped in TLS, which I think it would be desirable for port 587. But I
>> don't if that's easy to do.
>
> Did you read the fine documentation?
>
>
> AuthOptions
> p don't permit mechanisms susceptible to simple
> passive attack (e.g., PLAIN, LOGIN), unless a
> security layer is active.

Thanks! I am. I'm reading a fine and well-written book in its fourth
edition---thanks very much for your attention. :) Now you reminded me
about AuthOptions. And the p-option is now in place and things look
brigther now. Thanks very much.

%openssl s_client -starttls smtp -connect my.host.name:587 -quiet
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = E5
verify return:1
depth=0 CN = my.host.name
verify return:1
250 HELP
ehlo localhost
250-my.host.name Hello my.host.name [1.2.3.4], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-DELIVERBY
250 HELP
quit
221 2.0.0 my.host.name closing connection

(I then enabled PLAIN as well.)

%telnet localhost 587
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.host.name ESMTP Sendmail 8.18.1/8.18.1; Mon, 11 Nov 2024 08:23:43 -0300 (-03)
ehlo localhost
250-my.host.name Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-AUTH DIGEST-MD5 CRAM-MD5
250-STARTTLS
250-DELIVERBY
250 HELP
quit
221 2.0.0 my.host.name closing connection
Connection closed by foreign host.

1

rocksolid light 0.9.8
clearnet tor