bugzilla配置mail的两种模式'SMTP' 和'Sendmail'
上一篇 /
下一篇 2016-08-25 16:07:58
/ 个人分类:软件部署
装完bugzilla后,管理员登陆,配置邮件参数
第1次采用SMTP方式配置
mail_delivery_method-->SMTP
mailfrom-->***bugs@sohu.com
smtpserer-->smtp.sohu.com
smtp-username-->***bugs@sohu.com
smtp_password-->******
优点:不用自己安装邮件代理服务(sendmail)
缺点:发送邮件是老是出现奇葩的错误
1、显示发送成功后,实际没收到邮件
2、There was an error sending mail from '*****@sohu.com' to '******@163.com': failed AUTH: 4.3.2 Internal server error
第2次采用Sendmail方式配置,这种方式依赖第三方邮件代理,需在bugzilla服务器(我的是centos6.5)上装个sendmail(安装验证方式参见下方扩展)。
mail_delivery_method-->Sendmail
mailfrom-->***bugs@sohu.com
smtpserer-->smtp.sohu.com
smtp-username-->***bugs@sohu.com
smtp_password-->******
采用第2中方式配置,到目前为止,没发现邮件相关错误,发邮件可顺畅了,比喝养乐多还爽!
Sendmail安装/验证:
1、yum安装sendmail
yum -y install sendmail
2、yum安装mail,
yum -y install mail
3、修改邮件代理配置
vi /etc/mail.rc
在文件最下方添加
set from=bugs@sohu.com smtp=smtp.sohu.com
set from=bugs@sohu.com smtp=smtp.sohu.com set smtp-auth-user=bugs@sohu.com smtp-auth-password=****** smtp-auth=login
4、启动或重启sendmai服务
service sendmail restart
5、验证邮件发送是否成功
echo test|mail -s test bugs@sohu.com
6、登录邮箱看看是不是收到邮件了。
相关阅读:
- Windows下Bugzilla+Apache+mysql+Perl安装 (tongkp, 2011-11-18)
- Bugzilla安装和编辑所遇到的问题 (zaza9084, 2013-12-25)
- bugzilla的report中文乱码问题 (zaza9084, 2014-2-20)
- 缺陷跟踪系统BugZilla (zaza9084, 2014-2-21)
- Bugzilla使用SMTP发送邮件 (zaza9084, 2014-5-07)
- Win7下bugzilla配置 (zaza9084, 2014-5-19)
- Window下安装bugzilla (zaza9084, 2014-6-17)
- Testlink1.9.7与Bugzilla的整合 (zaza9084, 2015-3-25)
- 如何用Bugzilla系统管理产品研发过中相关需求和bug (zaza9084, 2015-9-18)
- CentOS6.4安装Bugzilla (zaza9084, 2016-3-04)
收藏
举报
TAG:
bugzilla
配置mail