1. Install mutt 2. Install msmtp 3. Set up mutt /etc/Muttrc # System global settings ~/.muttrc # Use a system user raspberrypi# vim ~/.muttrc set sendmail="/usr/bin/msmtp" set use_from=yes set realname="name_post" # sender's nickname set editor="vi" set [email protected] #sender's mailboxset envelope_from=yes set crypt_use_gpgme=no #tls off 4. Set up msmtp Create ~/.msmtprc and ~/.msmtp.log as configuration and log files respectively raspberrypi# vim ~/.msmtprc account default host smtp.xxxx.com # You can check it in the mailbox settings user xxxx # It must be the part before the @ in the mailbox from [email protected] password 123456 # Email password (may be the authorization code) auth plain logfile ~/.msmtp.log 5. Check whether the SMTP server supports authenticated TLS encryption raspberrypi# msmtp --host=smtp.sina.com --serverinfo SMTP server at smtp.sina.com (xk-6-242-a8.bta.net.cn [202.108.6.242]), port 25: smtp-5-121.smtpsmail.fmail.xd.sinanode.com ESMTP Capabilities: STARTTLS: Support for TLS encryption via the STARTTLS command AUTH: Supported authentication methods: PLAIN LOGIN This server might advertise more or other capabilities when TLS is active. It can be seen that authentication is supported (if it is not supported, uncomment the last item in .muttrc. It has not been tested personally, but it is generally supported). 6. Test email sending echo text| mutt -s subject [email protected] -a attachment Summarize The above is the installation and configuration tutorial of Raspberry Pi msmtp and mutt introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
>>: Detailed explanation of filters and directives in Vue
Preface In the daily development or maintenance o...
Table of contents 1. Introduction to High Availab...
Table of contents Preface Relationships between v...
Table of contents background Implementation ideas...
Solution Abandon the Linux virtual machine that c...
Preface Use js to achieve a year rotation selecti...
Add monitoring host Host 192.168.179.104 is added...
Preface Zabbix is one of the most mainstream op...
Effect check address: Tour plan (uplanok.com) Cod...
What is DOM? With JavaScript, you can reconstruct...
Drop-down menus are also very common in real life...
HTML img produces an ugly blue border after addin...
The crontab command is used by Unix and Linux to ...
This article shares the specific code of JavaScri...
Earlier we talked about how to make a square with...