-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 06 Jan 2023 14:06:06 -0500, Gilberto F da Silva
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Post by Gilberto F da Silvamsmtp: cannot set X509 trust file
/etc/ssl/certs/ca-certificates.crt for TLS session: Error
while reading file. msmtp: could not send mail (account
GMX-OS2 from /home/mageia8/.msmtprc)
The path is specified manually in the config file. For Mageia it
looks like it should be /etc/ssl/certs/ca-bundle.trust.crt
The commented out defaults in the config file are based to the
upstream (as in msmtp authors) settings.
Mageia packagers generally try to ensure the non-commented options
work. They don't alter the commented settings, which in this case
must be modified to get x509 working.
It's up to the person installing the package to select the choices
they want, which may or may not be the Mageia supplied default crt
files.
I read this text in the original. I didn't understand. I put it in
the translator and still I couldn't understand it.
As a Mageia user, what do I have to do for this to work? Copying the
file from another distribution worked for me but I don't think it's
mandatory for Mageia users to have other distributions installed.
I understand the frustration. Dealing with certificates is complex due to the
wide variety of use cases and large number of options, most of which are
poorly documented.
I've checked bugzilla and my message archive for mentions of msmtp. None prior
to this thread.
I've also checked https://svnweb.mageia.org/packages/cauldron/msmtp/releases/
The package was created in Mageia 1, which means it was imported from Mandriva 8.
Since then, other then automatic rebuilds for each new release, the package
has never been changed, or had a bug report. Either no one has been using the
package or it was "just working" for them.
I've never used msmtp myself. It looks like the default setup is configured to
work without actually using tls, and likely works ok for that as the protocol
has not changed.
Copying the certificate from another system is not a good idea. Better to learn
how to create one properly, or switch to a package that creates one automatically.
Other mail transfer agents such as postfix have been changed to automatically
create the certificates during package installation with a post-install scriptlet.
You can file a bug report requesting an enhancement for the default configuration
be altered to work with smtps instead of just smtp, switch to a different package,
or learn how certificates are created and managed (not easy).
My preference is to use postfix, which "just works" with tls, though most sites
will reject mail from my system as my router's forward/reverse dns does not match.
Regards, Dave Hodgins