exmail

zabbix邮件报警 465

匿名 (未验证) 提交于 2019-12-03 00:34:01
#启动邮箱服务 systemctl start postfix.service #配置用户的邮箱发送邮件 vim /etc/mail.rc set from="xxx@xxx.com" set smtp=" smtps://smtp.exmail.qq.com:465" set smtp-auth-user="xxx@xxx.com" set smtp-auth-password="xxxxxx" set smtp-auth=login set ssl-verify=ignore set nss-config-dir=/etc/pki/nssdb #测试发送邮件 [root@VM_centos ~]# echo "messages" | mail -v -s "subject" yxxx@qq.com Resolving host smtp.exmail.qq.com . . . done. Connecting to 163.177.90.125:465 . . . connected. Error in certificate: Peer‘s certificate issuer is not recognized. Comparing DNS name: "pop.qq.com" Comparing DNS name: "ex.qq.com" Comparing DNS

Gitlab安装及集成LDAP

匿名 (未验证) 提交于 2019-12-03 00:19:01
安装和配置依赖软件 yum install -y curl policycoreutils -python openssh -server systemctl enable sshd systemctl start sshd 安装Gitlab-ce版本 我们使用云厂商的负载均衡器,所以这边没有配置https,如果需要配置https请查看 HTTPS配置 # 添加仓库 curl https://packages .gitlab .com /install/repositories/gitlab/gitlab-ce/script .rpm .sh | sudo bash #安装Gitlab-ce EXTERNAL_URL= "http://gitlab.example.com" yum install - y gitlab-ce 配置LDAP 配置文件 /etc/gitlab/gitlab.rb gitlab_rails[ 'ldap_enabled' ] = true ###! **remember to close this block with 'EOS' below** gitlab_rails[ 'ldap_servers' ] = YAML.load <<- 'EOS' main: # 'main' is the GitLab 'provider ID' of this