环境说明: node1: 192.168.44.128 服务端 (已经装好zabbix_agentd和zabbix_server) node2: 192.168.44.129 客户端 (已经装好zabbix_agentd) //配置本地邮箱[root@node1 ~]# systemctl stop ...
                            
                            
                                分类:
其他好文   时间:
2021-04-27 14:45:06   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    本地邮箱告警配置 配置本地邮箱告警前,我们要用到mail命令 所以先安装mail命令 [root@mf ~]# yum -y install mailx 使用mail命令发送邮箱 [root@mf ~]# echo "test" | mail -s "20210426" 18808843007@16 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-27 14:43:11   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    一、关闭本机的sendmail服务或者postfix服务 #sendmial service sendmail stop chkconfig sendmail off #postfix service postfix stop chkconfig postfix off 二、安装mailx yum  ...
                            
                            
                                分类:
系统相关   时间:
2021-02-17 14:09:35   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                安装 yum install mailx -y查询配置文件 rpm -qc mailx /etc/mail.rc配置配置文件 set from=626746XXX@qq.com set smtp=smtps://smtp.qq.com:465 set smtp-auth-user=626746XXX ...
                            
                            
                                分类:
其他好文   时间:
2020-12-18 13:12:19   
                                阅读次数:
3
                             
                    
                        
                            
                            
                                
                    测试环境: CentOS Linux release 7.6.1810 ossec 3.6.10 1、wazuh服务器上安装postfii及相关服务 yum install -y postfix mailx cyrus-sasl cyrus-sasl-plain 2、修改postfix配置文件 #  ...
                            
                            
                                分类:
其他好文   时间:
2020-11-11 16:01:21   
                                阅读次数:
7
                             
                    
                        
                            
                            
                                1、yum install mailx -y #安装邮箱服务 2、vi /etc/mail.rc #设置发送邮箱 set bsdcompat set from=***.com set smtp=smtp.***.com set smtp-auth-user=***.com set smtp-auth ...
                            
                            
                                分类:
其他好文   时间:
2020-08-18 15:40:33   
                                阅读次数:
83
                             
                    
                        
                            
                            
                                安装mailx,靠它来发送邮件yuminstallmailx编辑配置文件vim/etc/mail.rc#添加如下内容setfrom=xxxx@163.comsetsmtp=smtp.163.comsetsmtp-auth-user=xx@qq.comsetsmtp-auth-password=xxxsetsmtp-auth=login---说明from:来自发送的邮箱smtp:指定第三方发邮件的s
                            
                            
                                分类:
系统相关   时间:
2020-08-17 17:39:05   
                                阅读次数:
78
                             
                    
                        
                            
                            
                                首先下载mailx,postfix软件包:yum-yinstallmailxpostfix下载完成后,启动postfix服务:systemctlstart--nowpostfix#centos7/8上使用此命令启动postfix服务servicepostfixstart#在centos6上使用此命令启动postfix服务验证mail是否可以发送邮件:
                            
                            
                                分类:
其他好文   时间:
2020-08-03 23:15:39   
                                阅读次数:
74
                             
                    
                        
                            
                            
                                1.安装邮件发送工具mailxyum-yinstallmailx安装![](https://s4.51cto.com/images/blog/202007/18/f826a29d96b2b8fddf81327a9e56548b.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_s
                            
                            
                                分类:
其他好文   时间:
2020-07-19 11:56:24   
                                阅读次数:
81
                             
                    
                        
                            
                            
                                前提:centos7 1、yum -y install sendmail 2、yum install -y mailx 3、systemctl start sendmail.service 4、systemctl enable sendmail.service 5、在/etc/mail.rc 新添加 ...
                            
                            
                                分类:
系统相关   时间:
2020-07-04 21:04:38   
                                阅读次数:
77