centos6.6 sending mail using sendmail BACKUP log

Source: Internet
Author: User

I. Description of the Environment

[Email protected] ~]# Head-n1/etc/issuecentos release 6.6 (Final) [[email protected] ~]#

Second, installation steps

1. Installing the SendMail server

[[email protected] ~]# yum install sendmail-y[[email protected] ~]# service SendMail start[[email protected] ~]# service SendMail status

2. Add the sender's mailbox authentication information to the/etc/mail.rc file

vi/etc/mail.rc##### #add below############# Set [email protected]set smtp=smtp.163.comset Smtp-auth-user=xxxset Smtp-auth-password=xxxxxset Smtp-auth=login

3. E-mail test, can be sent to multiple mailboxes, with attachments

echo "Test using [email protected] to send email" | Mail-a/root/dbbackup.log-s "This email from Linux" [email protected] [email protected]

Third, problem-handling

1.sendmail starts slowly, takes about 3 minutes

[[Email protected] mail]# service SendMail stopshutting down sm-client: [OK]shutting Down sendmail: [OK][[email protected] mail]# service SendMail startstarting SENDMA Il: ..... Stuck here for a few minutes

Original configuration:

[Email protected] ~]# more/etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6127.0.0.1 mysql-121 # added by Apache Friends Xamp P192.168.80.121 mysql-121

Post-modification configuration

vi/etc/hosts127.0.0.1 localhost localhost.localdomain mysql-121::1 localhost localhost.localdomain localhost6 l ocalhost6.localdomain6127.0.0.1 mysql-121 # added by Apache Friends XAMPP192.168.80.121 mysql-121

Reboot, second level

[[Email protected] ~]# service sendmail restartshutting down sm-client:                                     [   OK  ]Shutting down sendmail:                                      [  ok  ]starting sendmail:                                            [  OK  ]Starting sm-client:                                          [  OK  ]

2.sendmail and Postfix conflict

[Email protected] ~]# service SendMail statussendmail dead but Subsys lockedsm-client (PID 22112) is running ...

Check the status of the Postfix service

[[Email protected] ~] #service postfix statusmaster (PID 1777) is running ...

Stop Postfix Service

[[Email protected] ~] #service postfix stopshutting down postfix: [OK]

Restarting the SendMail service

[[email protected] ~]# service sendmail  restartshutting down sm-client:                                     [  OK  ]Shutting down sendmail:                                      [   ok  ]starting sendmail:                                           [  OK  ]Starting  Sm-client: 

Disable Postfix auto-start after reboot

[Email protected] ~]# chkconfig--list |grep postfixpostfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off [[email protected] ~]# chkconfig postfix off[[email protected] ~]# chkconfig--list|grep postfixpostfix 0:off 1: Off 2:off 3:off 4:off 5:off 6:off[[email protected] ~]#


centos6.6 sending mail using sendmail BACKUP log

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.