当前位置:网站首页>The mail command is used in combination with the pipeline command statement
The mail command is used in combination with the pipeline command statement
2022-07-06 20:31:00 【sky9899】
Operating environment :
OS: CentOS Linux release 7.9.2009 (Core)
Practical task : Send email interactively , At the same time, combined with pipeline command statements , Put the edited content with the title “ pack ”, Finally, a command is used to send the email .
[[email protected] ~]
# yum install mailx
[[email protected] ~]
# vi /etc/mail.rc
set bsdcompat
set
from
=***@163.com
# Mailing address
set
smtp
=smtp.163.com
# Send mail server
set
smtp-auth-user
=***@163.com
# account number
set
smtp-auth-password
=******
# Application authorization code
set
smtp-auth
=login
# Mail authentication method
[[email protected] ~]
# yum install sendmail
[[email protected] ~]
# systemctl start sendmail.service
# Use pipe sign sentences
[[email protected] ~]
# echo "Content" | mail -S "Subject" ***@163.com
Non-null variable name required
Could not resolve host:
"/root/dead.letter"
10/277
. . . message not sent.
# The above error , The main reason is “=” There are spaces in the symbol
set smtp
= smtp.163.com
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.



Summary : Do the above experiments , There are two main steps : First, install and configure mailx、sendmail service ; secondly , To be in 163 Email application to open related services , At the same time, get the authorization code .
边栏推荐
- Leetcode question 283 Move zero
- An East SMS login resurrection installation and deployment tutorial
- [weekly pit] information encryption + [answer] positive integer factorization prime factor
- Leetcode question 448 Find all missing numbers in the array
- Web security - payload
- 2022 refrigeration and air conditioning equipment installation and repair examination contents and new version of refrigeration and air conditioning equipment installation and repair examination quest
- Extraction rules and test objectives of performance test points
- SSH connection denied
- Special topic of rotor position estimation of permanent magnet synchronous motor -- Summary of position estimation of fundamental wave model
- JMeter server resource indicator monitoring (CPU, memory, etc.)
猜你喜欢

【DSP】【第二篇】了解C6678和创建工程
![[diy] how to make a personalized radio](/img/fc/a371322258131d1dc617ce18490baf.jpg)
[diy] how to make a personalized radio

How to upgrade high value-added links in the textile and clothing industry? APS to help
![[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN](/img/b8/3d48e185bb6eafcdd49889f0a90657.png)
[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN

Common doubts about the introduction of APS by enterprises

JMeter server resource indicator monitoring (CPU, memory, etc.)

【每周一坑】输出三角形

Rhcsa Road

What programming do children learn?

Cesium Click to draw a circle (dynamically draw a circle)
随机推荐
Solution to the 38th weekly match of acwing
B-jiege's tree (pressed tree DP)
Enumeration gets values based on parameters
Unity writes a timer tool to start timing from the whole point. The format is: 00:00:00
Detailed introduction of distributed pressure measurement system VIII: basic introduction of akka actor model
为什么新手在编程社区提问经常得不到回答,甚至还会被嘲讽?
【DSP】【第二篇】了解C6678和创建工程
报错分析~csdn反弹shell报错
[DSP] [Part 2] understand c6678 and create project
[weekly pit] output triangle
Cesium Click to draw a circle (dynamically draw a circle)
2022 refrigeration and air conditioning equipment installation and repair examination contents and new version of refrigeration and air conditioning equipment installation and repair examination quest
String length limit?
BeagleBoneBlack 上手记
数字三角形模型 AcWing 1018. 最低通行费
Case ① | host security construction: best practice of 3 levels and 11 capabilities
【DSP】【第一篇】开始DSP学习
Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
Unity load AB package
Initial experience of addresssanitizer Technology