Recently implemented a Zabbix monitoring, open source software, the leverage of the several streets of Nagios ...Environment: centos6.6 + Zabbix 2.4.5 + Python 2.6.6Cd/usr/local/zabbix/share/zabbix/alertscripts #进入脚本存放目录VI sendalertemail.sh #编辑, add the following code#!/bin/shecho "$ $" | Mail-s "$" $: wq! #保存退出Chown zabbix.zabbix/usr/local/zabbix/share/zabbix/alertscripts/sendalertemail.sh#设置脚本所有者为zabbix用户chmod +x/usr/local/zabbix/share/zabbix/alertscripts/sendalertemail.sh#设置脚本执行权限Originally I
Background: The company needs to be operational within the working days of the test department to send an e-mail to notify SVN version number and to test, daily manual hair too annoying, pure manual repetition of the work of no benefit, it comes from moving it. Linux Automatic email is also available in Zabbix monitoring notifications. Key points: CENTOS7,SVN version number acquisition, email tool and settings, timed execution crontab.One, SVN version
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 custom installed) Hey, pack mailForget the mail package name look for we use Yum Search mail to find650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5C/1D/wKiom1UakPvDicVCAAS34vidsxo303.jpg "title=
encoding are displayed as garbledCharset-hook ^us-ascii$ GB2312# solve the problem that the title of the letter for UTF-8 is displayed as garbledCharset-hook! UTF-8 GB2312Set assumed_charset= "GB2312"# solve the problem that the Chinese accessory name is garbledSet Rfc2047_parameters=yesSet Envelope_from=yesSet Use_from=yesSet from=xxxx@163.comSet Realname= "My Name"
Third, mutt Mail send syntax:
Mutt [-hnprvxz][-aParameters-A -B -C -F -F -h displa
Bin/mail (BIN/MAILX) uses local sendmail to send mail by default, the local machine must install and start the SendMail service, the configuration is cumbersome and unstable.You can use an external SMTP server to send messages by modifying the configuration file below.Take NetEase email as an example.1, Vim/etc/mail.rc # (/ETC/NAIL.RC), append the following textS
In linux, when Google SMTP is used to send mail to maintain the server, a server error warning system is often required, and mail is a good way. In linux, mail is generally used to write emails, and the sendmail service is used by default for delivery. In this way, you can send messages to the outside world... in linux, when Google SMTP is used to send mail to ma
Mail Configuration
Configure new MAILX to use external mailboxes to send mail:
Edit/etc/nail.rc (Note that is not an older version of/etc/mail.rc): vi/etc/nail.rcAdd two lines:Set from=myname@qq.com smtp=smtp.qq.comSet Smtp-auth-user=myname Smtp-auth-password=password Smtp-auth=login
Testing of mail commands on Linux systems
1. One of the simplest examples:
Mail-s Test yangfang@fudan.edu.cn
The result
Every time I write a script under Linux has the ability to send mail, but the configuration under Linux always forget, so this time wrote a small script, record, next time you want to configure the script to run the line. QQ mailbox is used here.Test environment: CentOS 6.5 x86_64The script reads as follows:#!/bin/bash./etc/init.d/functionsif[$#-ne0];then echo "usage:sh ' basename$0 '" exit1fifrommail= "[email protected] ' smtp_host= ' smtp.qq.com ' s
Operating system: CentOS 6.8
1. Install MAILX
Yum Install mail
2. Configure SMTP
Vi/etc/mail.rc
Set from=*** @qq. com
Set smtp-auth-user=*** @qq. com
Set smtp-auth-password=igsre***
Set Smtp-auth=login
Set Ssl-verify=ignore
Set Nss-config-dir=~/.certs
Set smtp=smtps://smtp.qq.com:465
3. Generate SSL Certificate
mkdir ~/.certs certutil-n-D ~/.certs
4. Send Test message
echo "Test Ma
The Mail function under Windows system needs to be configured
1. Download from http://glob.com.au/sendmail/Sendmail.zip2. Extract to C: Under, such as C:\php\sendmail, the best short path, long path name may cause problems.3. Modify PHP.ini as followsSendmail_path = "C:\wamp\sendmail\sendmail.exe-t"4. Modify the Sendmail.ini according to your own configuration environment.It is a good idea to enable debug.log_file,error_logfile for the first time to see if SendMail is active.
Configuring the I
Tags: Service wrap log Ubuntu Install multi use information Word servere-Mail via mail command under Ubuntu, pro-Test available1.mail commands are required to install under Ubuntu, using the following command:sudo apt-get install heirloom-mailx 2 You cannot send external server mail at this time, you need to complete the following configuration. Modify/etc/nail.rc (under Ubuntu) or/etc/mail.rc (under Ce
Because the Send method is the key to the implementation of the coprocessor, it is necessary to learn the next send method in detail, because it is really weird; official documentation generator::send (PHP 5 >= 5.5.0, PHP 7) Generator::send-send a value to the generator Desc
Int send (socket S, const char far * Buf, int Len, int flags );
Both the client and server applications use the send function to send data to the other end of the TCP connection. The client program generally uses the send function to send requests to the server, while the se
Int send (socket S, const char far * Buf, int Len, int flags );
Both the client and server applications use the send function to send data to the other end of the TCP connection.
The client program generally uses the send function to send requests to the server, while the s
Send function
int send (SOCKET s, const char FAR *buf, int len, int flags);
Both the client and the server application use the Send function to send data to the other end of the TCP connection.
The client typically sends a request to the server using the Send function, and t
Send functionint send (SOCKET s, const char far *buf, int len, int flags);Both the client and the server application use the Send function to send data to the other end of the TCP connection.The client program typically sends a request to the server using the Send function.
1.send functionint send (SOCKET s, const char far *buf, int len, int flags);Both the client and server applications use the Send function to send data to the other end of the TCP connection. The client program typically sends a request to the server with the Send function, a
This article is sponsored by Ilanniweb, starting in Slime Line the world To get more articles, you can follow my ilanniweb. This article mainly describes how to use Msmtp+mutt to send mail under Linux, of course, there are many tools for sending mail under Linux, such as Sendmail+dovecot. But they are generally more complex to configure, so let's use a simple msmtp+mutt combination to send the message. The
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.