CentOS 6.6 Use SendMail to log in to a third-party mail system to send mail

Source: Internet
Author: User

SendMail How to set up a third-party server to send mail


    1. Yum Install SendMail


2, Stop postfix Mail Service, (the system is open by default, take up 25 ports)

#service postfix Stop


3. Modify the configuration file to add 5 rows of set related content

#vim  /etc/mail .rc
# outgoing messages is sent in iso-8859-1 if all their characters are# representable in it, otherwise in Utf-8.set SENDCH arsets=iso-8859-1,utf-8set [email protected]set smtp=smtp.qq.com:25set [email protected]set smtp-auth-password=xxx


4. Start SendMail Service

# Service SendMail Restart


5. Testing

#echo Test | Mail-s AAA [email protected]

Format Description:

Syntax: Echo ' content ' | Mail-s "Subject" User name @ Address

For example:

echo "Text" | Mail-s "program" User


6. Login Inbox

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/F0/wKiom1Xv95GwUdOOAABm6FwokOw397.jpg "title=" 11111. PNG "alt=" wkiom1xv95gwudooaabm6fwokow397.jpg "/>


This article is from the "obsessed" blog, make sure to keep this source http://dragondragon.blog.51cto.com/6170889/1693199

CentOS 6.6 Use SendMail to log in to a third-party mail system to send mail

Related Article

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.