Linux configuration mail client sends mail

Source: Internet
Author: User
Tags auth
1. Overview

In a Linux operating system environment, you can configure a mail server, or you can configure a mailbox client. This article mainly configures the mail client, which is necessary for sending some system information to the server.

2. Mail client Installation 2.1 installation MAILX

Execute command: rpm -qa | grep mailx to see if the system is installing MAILX, if it is not installed, you need to perform yum -y install mailx the installation

2.2 Configuring MAILX

To edit the configuration file, add the following line in the last row:

set [email protected]set smtp=smtp.163.comset [email protected]set smtp-auth-password=xxxxxx# smtp-auth-password表示我邮箱的第三方客户端授权码set smtp-auth=login
2.3 Test Send

On the command line: mail -s "hello" [email protected] < /etc/hosts If you receive the message, the configuration is successful

Linux configuration mail client sends mail

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.