System mail
/etc/msmtprc
account default from hostname@ejik.org host smtp.yandex.ru port 465 auth on tls on tls_starttls off tls_trust_file /etc/ssl/certs/ca-certificates.crt user <smtp-user@example.net> password <password> aliases /etc/aliases
/etc/aliases
default: user@ejik.org
- Add
set from="hostname <hostname@ejik.org>"
- to the end of
/etc/nail.rc
# ln -s /usr/bin/msmtp /usr/sbin/sendmail