System mail: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 28: | Line 28: | ||
* <code># rm -r /etc/postfix</code> | * <code># rm -r /etc/postfix</code> | ||
* <code># rm /etc/rc.d/rc.postfix</code> | * <code># rm /etc/rc.d/rc.postfix</code> | ||
* <code># rm | * <code># rm /usr/sbin/sendmail</code> | ||
* <code># ln -s /usr/bin/msmtp /usr/sbin/sendmail</code> | * <code># ln -s /usr/bin/msmtp /usr/sbin/sendmail</code> | ||
* <code># ln -s /usr/bin/msmtp /usr/lib/sendmail</code> | * <code># ln -s /usr/bin/msmtp /usr/lib/sendmail</code> | ||
[[Category: Linux]] | [[Category: Linux]] | ||
Latest revision as of 10:18, 6 September 2023
/etc/msmtprc
account default from <ya-user>@yandex.ru from_full_name <hostname> 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 <ya-user> password <password> aliases /etc/msmtp.aliases
/etc/msmtp.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# rm /usr/sbin/sendmail# ln -s /usr/bin/msmtp /usr/sbin/sendmail# ln -s /usr/bin/msmtp /usr/lib/sendmail