SendMail How to set up a third-party server to send mail
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