Installing SendMailYum Install-y sendmail*
Modify firewall settings, add 25 port to firewallVi/etc/sysconfig/iptables
Restart Iptables, SendMail serviceService Iptables RestartService SendMail Restart
Test whether the outgoing mail function is
Configure mailx in Centos to send emails using external smtpConfigure mailx in Centos to use external smtp to send mail to install mailx
yum install mailxConfigure mailx
I recommend 163 mail, of course, QQ mail is also acceptable, PS: Remember to
In linux, how does one send emails to external mailboxes and use linux? Sometimes, if we want to send emails to friends or colleagues, can we send them directly through the command line? How can I use a script to send an email to an external mailbox
Send monitoring metrics to the internal mailbox in LinuxDatabase health monitoring is a very important task. An important indicator/KPI monitoring result has a dedicated collection, monitoring, and alarm system for relevant tasks.Some indicators
In linux, the mail command can be used to send emails like in php, but the mail function requires simple configuration to send emails. Let's take a look at it.
Mail configuration
Configure the new version of mailx to send emails using an external
The CENTOS7 system used here, nagios-4.2.1.tar.gz,nagios-plugins-2.1.2.tar.gz,nrpe-3.2.1.tar.gzDownload the installation packageNagios Server-side installation package under the Guan Networkor Baidu Network
Original: HTTP://SEANLOOK.COM/2014/08/23/LINUX-LOGWATCH-USAGE/1. IntroducedWhen maintaining a Linux server, it is often necessary to review the logs of various services in the system to check the server's operational status. such as login history,
Linux sends mail to external mailboxes via SendMail
Recently in writing automated patrol scripts, thinking how to alert after automatic email alerts.First download the latest version mailx-12.4.tar.bz2# wget http://sourceforge.net/projects/heirloom/
Use the shell implementation to check the memory size, if it is displayed within the set value, send an email alert
Configure Outgoing Mail firstVi/etc/mail.rcAdd the following information
# for Linux and BSD, this should is Set.set
1. ConfigurationVim/etc/mail.rcAdd the following to the end of the fileSet from=[email protected]smtp= "Smtp.qq.com"Set smtp-auth-user= "[email protected]"Smtp-auth-password="123456 "Set Smtp-auth=loginDescription:From: The sender that appears when
Linux send and receive mail1. First make sure your Linux server is able to ping through www.baidu.comPing www.baicu.com2. Apply for a @163.com personal email3. After entering the mailbox, make the following settings.1. Home electric shock Settings,
Due to the company's business needs, the leadership request to send alarm mail, in my cognition should be two, one is to build the server as a mail server, this can use Postfix or sendmail, but the configuration is relatively complex, the operation
daily work on the host patrol, backup, view performance and so on, set up a designated mail account, after the specified action is finished, sent by the account to the designated recipients, this can help us to Keep abreast of host status and
1. Summarize the detailed usage method of the task plan (at, crontab) on Linux system;There are 3 ways to plan your Linux tasks1.batch: By the system to choose when the resources are more idle run the specified task, do not need to specify a point
#vim/etc/mail.rcAdd the following two lines at the end of the documentSet from=***@163.com smtp=smtp.163.comSet smtp-auth-user=***@163.com smtp-auth-password=*** Smtp-auth=loginThe following line of command tests can be added to send mail to * * *
Description: This script is installed on the CentOS operating systemOne, the monitoring script is as followsvim/root/script/systemmonitor.sh#!/bin/bash#监控系统负载与CPU, memory, hard disk, number of logged on users, out of alert to send an email
Recently the company hand-tour of a test area service end old hanging, so the whole script monitoring, hang up to send mail and then automatically restart the service.StartFirst mail A look, the results prompt command not found (company system are
Linux Mail Command parameters:When you use mail to send mail, you must first start the SendMail service.Mail–s "Mail Subject" –c "CC Address" –b "BCC address"---F sender e-mail address –F sender name Three commonly used formats for sending
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.