MSMTP needs a certificate to be able to send emails but it is not available in Mageia 9 repositories.
On Sat, 18 Mar 2023 21:12:06 -0400, Gilberto F da Silva
<gfs1989@gmx.net> wrote:
MSMTP needs a certificate to be able to send emails but it is
not available in Mageia 9 repositories.
The msmtp is provided as it comes from the author. I use postfix
instead which includes an install scriptlet in the rpm package that
creates the cert.
Before installing postfix, make sure the hostname is a valid dns
name, not localhost or localhost.localdomain.
Once installed modify /etc/postfix/aliases to have your loginid in
place of root where the comment says "# CHANGE THIS LINE to an
account of a HUMAN", then start it's deamon.
You could continue using msmtp, but you'd have to create a cert and
ensure it gets started at boot. It's much easier to just use
postfix instead.
If you want to create a cert, the easiest way would be (after
ensuring the $HOSTNAME is a real dns valid hostname) run /usr/share/rpm-helper/create-ssl-certificate msmtp 1 msmtp
Starting /usr/bin/msmtpd at boot would require either writing a
systemd config file or creating/modifying an initd script.
On Sat, 18 Mar 2023 21:12:06 -0400, Gilberto F da Silva
<gfs1989@gmx.net> wrote:
MSMTP needs a certificate to be able to send emails but it is
not available in Mageia 9 repositories.
The msmtp is provided as it comes from the author. I use postfix
instead which includes an install scriptlet in the rpm package that
creates the cert.
Before installing postfix, make sure the hostname is a valid dns
name, not localhost or localhost.localdomain.
Once installed modify /etc/postfix/aliases to have your loginid in
place of root where the comment says "# CHANGE THIS LINE to an
account of a HUMAN", then start it's deamon.
You could continue using msmtp, but you'd have to create a cert and
ensure it gets started at boot. It's much easier to just use
postfix instead.
If you want to create a cert, the easiest way would be (after
ensuring the $HOSTNAME is a real dns valid hostname) run /usr/share/rpm-helper/create-ssl-certificate msmtp 1 msmtp
Starting /usr/bin/msmtpd at boot would require either writing a
systemd config file or creating/modifying an initd script.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 67:13:46 |
Calls: | 9,571 |
Calls today: | 2 |
Files: | 13,663 |
Messages: | 6,143,947 |