CentOS 6x about SendMail e-mail issues

Source: Internet
Author: User

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


    1. Yum Install SendMail


2. 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 sendcharsets=iso-8859-1,utf-8set [email protected]set smtp=smtp://smtp.126.com:25set [email protected]set Smtp-auth-password=xxxxxxxx

3. Testing

echo Test | Mail-s AAA [email protected]

For specific use of mail, refer to help

4. About SendMail slow start-up problem

Modify your own hostname to client.example.com such a format,

At the same time/etc/hosts also to add. Note that this can only be used in this format.

of my own:

[[email protected] ~]# hostnameclient1.example.com[[email protected] ~]# cat/etc/hosts127.0.0.1 localhost localhost.lo Caldomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 client1.example.com

This article from the "[email protected]" blog, reproduced please contact the author!

CentOS 6x about SendMail e-mail issues

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.