Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and configuration tutorial for raspberry pie msmtp and mutt

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1, install mutt

Sudo apt-get install mutt

2, install msmtp

Sudo apt-get install msmtp

3, set mutt

/ etc/Muttrc # system global settings ~ / .muttrc # use a system user raspberrypi# vim ~ / .muttrc set sendmail= "/ usr/bin/msmtp" set use_from=yesset realname= "name_post" # Sender nickname set editor= "vi" set from=xxx@xxxx.com # Sender mailbox set envelope_from=yesset crypt_use_gpgme=no#tls off

4, set msmtp

Create ~ / .msmtprc and ~ / .msmtp.log as configuration and log files, respectively

Raspberrypi# vim ~ / .msmtprcaccount defaulthost smtp.xxxx.com # you can view user xxxx # in mailbox settings. It must be part of the from xxxx@xxxx.compassword 123456 # mailbox password before mailbox @ (possibly an authorization code) auth plainlogfile ~ / .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 ESMTPCapabilities: 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 the last item in .muttrc is not supported, it is generally supported if it is not tested).

6. Test email

Echo body | mutt-s theme xxxx@xx.com-an attachment

Summary

The above is the installation and configuration tutorial of raspberry pie msmtp and mutt introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report