In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about the operation process of ubuntu configuring external smpt to send email to the external network. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
Add heirloom-mailx apt Feed
Cat / etc/apt/sources.list.d/mailx.list
Deb http://cz.archive.ubuntu.com/ubuntu xenial main universe
Update apt
Apt update
Install heirloom-mailx
Apt install heirloom-mailx-y
Configure an external shipping mailbox
Edit / etc/s-nail.rc add at the end:
For 163mailbox
Set from= "xxxxx@163.com" # sending address
Set smtp= "smtps://smtp.163.com:465" # smtp server
Set smtp-auth-user= "xxxxxx@163.com" # login address
Set smtp-auth-password= "xxxx" # plaintext password
Set smtp-auth=login # login method. The default is login, and it can also be changed to CRAM-MD5 or PLAIN.
For outlook
Set from= "xxxx@outlook.com"
Set smtp= "outlook.office365.com:587"
Set smtp-auth-user= "xxxx@outlook.com"
Set smtp-auth-password= "xxxx" # plaintext password
Set smtp-use-starttls # encryption method
Set ssl-verify=ignore # ignore ssl authentication
Set smtp-auth=login
For QQ mail
Set from= "xxx@qq.com"
Set smtp= "smtps://smtp.qq.com:465"
Set smtp-auth-user= "xxx@qq.com"
Set smtp-auth-password= "ahkphxxabcbshabbga" # QQ Mail authorization code
Set smtp-auth=login
Common command
Common commands:
N: do not read the settings file (/ etc/s-nail.rc in this system) (this file allows users to send mail using an external mail transfer agent instead of using the system's own sendmail).
S: sets the subject information of the message.
C: use a CC list.
B: use a BCC list.
Send a test email
Echo "content" | s-nail-s "theme" xxxx@163.com,xxxx@outlook.com # multiple mailboxes are separated by commas
Or:
S-nail-s "email subject" xxx@163.com < result.txt
Add the parameter v to see the details of the mail output
S-nail-vs "message subject" xxx@163.com < result.txt
Sending belt attachment
S-nail-an attachment-s "subject" pickup address < file (email body .txt)
S-nail-a / xxx.tar.gz-s "theme" xxx@163.com <. / xxx.txt
Shell as the editor, press Ctrl-D to finish editing the content
S-nail-s' theme 'xxx@163.com
The above is the operation process of configuring external smpt to send email to the public network for the ubuntu shared by Xiaobian. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.