centos65redmine邮件发送功能配置详解

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

redmine邮件发送功能配置详解基于centos6.564位操作系统此次是结合linux系统的sendmail+redmine进行发送邮件一、安装sendmail以及mail工具包,用于发送邮件#yum-yinstallsendmailmailx#/etc/init.d/sendmailstart二、配置系统环境修改主机名#cat/etc/sysconfig/networkNETWORKING=yesHOSTNAME=localhost.localdomain.com马上生效主机名#hostnamelocalhost.localdomain.com三、测试是否能够发邮件#vimmail.txthelloworld!发送邮件:#mail-smailfromsendmailcheei@ihavecar.commail.txt查看邮件(有sendOK字眼即代表已经成功发送了邮件):#tail-f/var/log/maillogAug2618:01:07localhostsendmail[16499]:t7QA174A016499:from=root,size=241,class=0,nrcpts=1,msgid=201508261001.t7QA174A016499@localhost.localdomain.com,relay=root@localhostAug2618:01:07localhostsendmail[16502]:t7QA17dQ016502:from=root@localhost.localdomain.com,size=518,class=0,nrcpts=1,msgid=201508261001.t7QA174A016499@localhost.localdomain.com,proto=ESMTP,daemon=MTA,relay=localhost[127.0.0.1]Aug2618:01:07localhostsendmail[16499]:t7QA174A016499:to=cheei@ihavecar.com,ctladdr=root(0/0),delay=00:00:00,xdelay=00:00:00,mailer=relay,pri=30241,relay=[127.0.0.1][127.0.0.1],dsn=2.0.0,stat=Sent(t7QA17dQ016502Messageacceptedfordelivery)Aug2618:01:07localhostsendmail[16504]:STARTTLS=client,relay=mxw.263.net.,version=TLSv1/SSLv3,verify=FAIL,cipher=AES256-SHA,bits=256/256Aug2618:01:08localhostsendmail[16504]:t7QA17dQ016502:to=cheei@ihavecar.com,ctladdr=root@localhost.localdomain.com(0/0),delay=00:00:01,xdelay=00:00:01,mailer=esmtp,pri=120518,relay=mxw.263.net.[211.150.82.6],dsn=2.0.0,stat=Sent(Ok:queuedasCC4F742A3)登录账户查看邮件:四、配置redmine#vim/usr/local/redmine/apps/redmine/htdocs/config/configuration.yml................................这段为修改的................................default:#Outgoingemailsconfiguration#SeetheexamplesbelowandtheRailsguideformoreconfigurationoptions:#:delivery_method::async_smtpsmtp_settings:tls:falseaddress:smtp.163.comport:25domain:smtp.163.comauthentication::loginenable_starttls_auto:trueuser_name:yunwei@163.compassword:unqxwzo................................这段为最末尾添加.production的设置...............................production:delivery_method::async_smtpsmtp_settings:tls:falseaddress:smtp.163.comport:25domain:smtp.163.comauthentication::loginenable_starttls_auto:trueuser_name:yunwei@163.compassword:unqxwzo................................................................五、设置redmine邮件发送规则管理员登录admin管理--配置--邮件通知点击右下方的“发送测试邮件”,再去查询邮件日志,若邮件发送成功,那么就是已经成功的了。六、测试平时的新建问题以及问题更新是否能够发送邮件Aug2618:15:49localhostsendmail[16995]:t7QAFiOx016995:from=root@localhost.localdomain.com,size=4093,class=0,nrcpts=2,msgid=redmine.journal-38.20150826101544.9302e71e84f780a9@localhost.localdomain.com,proto=ESMTP,daemon=MTA,relay=localhost[127.0.0.1]Aug2618:15:50localhostsendmail[17001]:STARTTLS=client,relay=mxw.263.net.,version=TLSv1/SSLv3,verify=FAIL,cipher=AES256-SHA,bits=256/256Aug2618:15:50localhostsendmail[17001]:t7QAFiOx016995:to=chenqiufei@ihavecar.com,ctladdr=root@localhost.localdomain.com(0/0),delay=00:00:01,xdelay=00:00:01,mailer=esmtp,pri=154093,relay=mxw.263.net.[211.150.82.6],dsn=2.0.0,stat=Sent(Ok:queuedas16E2892AB)Aug2618:15:50localhostsendmail[17001]:STARTTLS=client,relay=mx3.qq.com.,version=TLSv1/SSLv3,verify=FAIL,cipher=RC4-SHA,bits=128/128Aug2618:15:51localhostsendmail[17001]:t7QAFiOx016995:to=1527708036@qq.com,ctladdr=root@localhost.localdomain.com(0/0),delay=00:00:02,xdelay=00:00:01,mailer=esmtp,pri=154093,relay=mx3.qq.com.[183.57.48.35],dsn=2.0.0,stat=Sent(Ok:queuedas)Aug2618:29:49localhostsendmail[17939]:t7QATnmd017939:from=root@localhost.localdomain.com,size=3988,class=0,nrcpts=1,msgid=redmine.issue-25.20150826102949.e74ce33445dd20be@localhost.localdomain.com,proto=ESMTP,daemon=MTA,relay=localhost[127.0.0.1]Aug2618:29:50localhostsendmail[17941]:STARTTLS=client,relay=mxw.263.net.,version=TLSv1/SSLv3,verify=FAIL,cipher=AES256-SHA,bits=256/256Aug2618:29:50localhostsendmail[17941]:t7QATnmd017939:to=cheei@ihavecar.com,ctladdr=root@localhost.localdomain.com(0/0),delay=00:00:01,xdelay=00:00:01,mailer=esmtp,pri=123988,relay=mxw.263.net.[211.150.82.6],dsn=2.0.0,stat=Sent(Ok:queuedas00EA428000)

1 / 8
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功