System mail
/etc/msmtprc
account default from yandex-username@yandex.ru set_from_header on host smtp.yandex.ru port 465 auth on tls on tls_starttls off tls_trust_file /etc/ssl/certs/ca-certificates.crt user yandex-username password <password> aliases /etc/aliases
/etc/aliases
default: user@example.org
- If using
mdadm, add to /etc/mdadm.conf:
MAILADDR root
# /etc/rc.d/rc.postfix stop# removepkg postfix# rm -r /etc/postfix# rm /etc/rc.d/rc.postfix/usr/sbin/sendmail
#!/bin/bash /usr/bin/msmtp -Fhostname "$@"