Configuration of the Linux command send mailbox

Source: Internet
Author: User
Tags starttls email account

command to send mail configuration under Linux

1, then modify the/etc/mail.rc, add the following at the end of the file, specify the external SMTP server address, account password, etc.

Configured as follows

Set from= email account

Set smtp=smtp. QQ . com

Set SMTP - Auth - User = Email account

Set SMTP-auth-password= Authorization code for mailbox configuration enter here

Set SMTP-auth=Login

Set Smtp-use-starttls
Set Ssl-verify=ignore >/dev/null
Set nss-config-dir=/etc/pki/nssdb/>/dev/null

The last 3 lines are for the script to not have authentication information, etc.

Configuration of my mailbox

Set Bsdcompat
Set [email protected]
Set smtp=smtp.qq.com
Set [email protected]
Set Smtp-auth-password=rauldghldoolbeee
Set Smtp-auth=login
Set Smtp-use-starttls
Set Ssl-verify=ignore >/dev/null
Set nss-config-dir=/etc/pki/nssdb/>/dev/null

Usage

650) this.width=650; "title=" 3.png "src=" https://s3.51cto.com/wyfs02/M01/94/D5/ Wkiol1ko1dywrrhbaaccbveux3e869.png-wh_500x0-wm_3-wmp_4-s_3726923107.png "alt=" Wkiol1ko1dywrrhbaaccbveux3e869.png-wh_50 "/>

echo Content | Mail-s "Mail Header" to send to that mailbox

echo Content | Mail-s "Mail Header" to be sent to that mailbox >>/dev/null 2>&1

In the script, remember to append to the empty


This article is from "No Lover" blog, please make sure to keep this source http://caojiaoyue.blog.51cto.com/11798573/1922852

Configuration of the Linux command send mailbox

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.