Re: How do I make mail authenticate?

Yuri Kanivetsky <[email protected]> Tue, 11 Jun 2024 22:25:31 +0300
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <CAMhVC3aC3aoBZOg5WRX8UobL4PfudsVshTNt3yiqLTZ2hCcFCw@mail.gmail.com>
On Tue, Jun 11, 2024 at 10:12=E2=80=AFAM Sergey Poznyakoff <[email protected]=
> wrote:
> Make sure mailutils is compiled with support for GSASL. Running
> 'mailutils info gsasl' should show WITH_GSASL.

Indeed, after installing libgsasl-dev (Alpine Linux) it started to work:

$ echo test email \
  | mail --debug-level 'all;tls.!=3Dprot' --debug-line-info \
      --exec 'set
sendmail=3Dsmtps://yuri%40example.com:[email protected];[email protected]=
om'
\
      -s 'test mail' \
      [email protected]

On a side note, it took me a while to figure out that one can after
all enable everything but... This doesn't work: all;!tls, but this
does: all;tls.!=3Dprot. After seeing that all;!tls =3D=3D all, I thought
that one can't disable categories and levels, only enable. But it
turned out that disabling levels works. And now that I think about it,
what other use can be for !category than all;!category? So I'd say it
doesn't work as documented.

To make it more specific, with all;!tls this condition:

http://git.savannah.gnu.org/cgit/mailutils.git/tree/libmu_auth/tls.c?id=3Dc=
f9dfee3017129b375f6dbbacb63c741228c0104#n68

is true. Unless I mixed up something.

Regards,
Yuri