1:检查sendmail服务的状态 service sendmail status 2:开启sendmail服务 3:关闭sendmail服务 3:重启sendmail服务 检查一下是否有设定 sendmail在 reboot 后自动启动 chkconfig --list | grep sendma ...
分类:
其他好文 时间:
2017-10-17 12:29:21
阅读次数:
211
postfix
yum-yinstallpostfixmailx
systemctlstartpostfix
systemctlenablepostfix
[rootlog]#cat/etc/postfix/main.cf
queue_directory=/var/spool/postfix
command_directory=/usr/sbin
daemon_directory=/usr/libexec/postfix
data_directory=/var/lib/postfix
mail_owner..
分类:
其他好文 时间:
2017-10-10 16:26:11
阅读次数:
170
[root@xg79~]#yum-yinstallmysql-community-server。。。。。。。。。。。。。Error:Package:mysql-community-server-5.7.19-1.el6.x86_64(mysql57-community)Requires:libsasl2.so.2()(64bit)Error:Package:2:postfix-2.10.1-6.el7.x86_64(@anaconda)Requires:libmysqlclient...
分类:
数据库 时间:
2017-09-29 00:09:56
阅读次数:
2480
一些基本概念解释:三种邮件协议:SMTP 简单邮件传输协议,用于发送和中转发出的电子邮件,占用服务器的25/TCP端口号。POP3 第三版邮局协议,用于把邮件存储到本地主机,占用服务器的110/TCP端口号。IMAP4 第四版互联网信息访问协议,用于在本地主机上访问邮件,占用服务器的143/TCP端... ...
分类:
其他好文 时间:
2017-09-26 17:51:46
阅读次数:
308
相关模块介绍 发送邮件主要用到了smtplib和email两个模块,这里首先就两个模块进行一下简单的介绍: 1、smtplib模块 smtplib.SMTP([host[, port[, local_hostname[, timeout]]]]) SMTP类构造函数,表示与SMTP服务器之间的连接, ...
分类:
编程语言 时间:
2017-09-25 09:41:17
阅读次数:
194
以Centos系统为例,确保服务器可以正常连接外网Centos6.5下面默认安装postfix查看rpm-qa|greppostfixpostfix-2.6.6-2.2.el6_1.x86_64配置邮件客户端setfrom=user@163.comsetsmtp=smtp.163.comsetsmtp-auth-user=user@163.comsetsmtp-auth-password=UserPasswordsetsmtp-auth=lo..
分类:
其他好文 时间:
2017-09-24 18:15:33
阅读次数:
181
#!/usr/bin/python#coding:utf8importsysimportsmtplibfromemail.mime.textimportMIMETextdefSendMail(*args):content=args[3]mailto_list=[args[1]]mail_host="192.168.82.97"mail_user="webmaster"mail_pass="webmaster"mail_postfix="pingan.com"msg=MIMEText(content,_subt..
分类:
其他好文 时间:
2017-09-22 17:51:20
阅读次数:
135
1.安装(需要sendmail或postfix服务)sendmail
#yuminstallsendmail
#systemctlstartsendmail.service
#systemctlstatussendmail.service
postfix
#yuminstallmailx
#systemctlstartpostfix.service
#systemctlstatuspostfix.service
postfix.service-PostfixMailTransportAge..
分类:
系统相关 时间:
2017-09-20 16:27:25
阅读次数:
285
一、环境说明我们通常需要发送邮件,用于报警,或邮件验证等需求,本次的环境要求如下:CentOS6.x最小化安装,安装postfix(一般系统安装好自带的邮件系统),如果没有请如下操作:#yuminstallpostfix-ypython2.6+二、postfix简介postfix是linux平台邮件系统,默认安装,并且自动开机运行,..
分类:
编程语言 时间:
2017-09-14 18:45:58
阅读次数:
175
系统环境 操作系统:CentOS6.9关闭防火墙 安装步骤 1. 安装Postfix 2. 下载rpm包并安装 3. 配置gitlab,vim /etc/gitlab/gitlab.rb,指定ip+端口号 4. 执行配置并启动。--gitlab-ctl reconfigure--gitlab-ctl ...
分类:
系统相关 时间:
2017-09-13 19:17:05
阅读次数:
211