无法在Bugzilla 5.0

时间:2017-06-05 15:51:20

标签: email ubuntu smtp office365 bugzilla

我正在寻找一个解决方案来配置bugzilla使用office365作为smtpserver发送邮件。

我在Ubuntu14.0.4上托管了Bugzilla 5.0

我还为这里提到的SMTP :: TLS应用了补丁:https://bugzilla.mozilla.org/attachment.cgi?id=8846930&action=edit

根据以上补丁更新了Mailer.pm文件中的部分: -

if ($method eq "SMTP::TLS") {
    my ($host, $port) = split(/:/, Bugzilla->params->{'smtpserver'}, 2);
    $transport = Bugzilla->request_cache->{smtp} //=
      Email::Sender::Transport::SMTPS->new({
        host  => $host,
        defined($port) ? (port => $port) : (),
        sasl_username => Bugzilla->params->{'smtp_username'},
        sasl_password => Bugzilla->params->{'smtp_password'},
        helo => $hostname,
        #ssl => Bugzilla->params->{'smtp_ssl'},
        ssl => 'starttls',
        debug => Bugzilla->params->{'smtp_debug'} });
}

在params.json中配置:

"mail_delivery_method" : "SMTP::TLS",
"smtp_ssl" : "1",
"smtp_username" : "user.name@domain.com",
"smtpserver" : "smtp.office365.com:587",
"smtppassword" : "<mypassword>"

错误:

发送邮件时出错....... AUTH失败:命令未知:'AUTH'

回溯:

在Bugzilla / Mailer.pm第194行。

Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/BugMail.pm line 381

Bugzilla::BugMail::sendMail(...) called at Bugzilla/BugMail.pm line 280

Bugzilla::BugMail::Send(...) called at Bugzilla/Bug.pm line 1355

Bugzilla::Bug::_send_bugmail(...) called at Bugzilla/Bug.pm line 1293

Bugzilla::Bug::send_changes(...) called at /var/www/html/bugzilla/process_bug.cgi line 386

软件错误:

无法在Bugzilla.pm第686行通过包“Email :: Sender :: Transport :: SMTPS”找到对象方法“disconnect”。 END失败 - 调用队列在/var/www/html/bugzilla/process_bug.cgi第150行中止。

如需帮助,请发送邮件给网站管理员(网站管理员@ localhost),提供此错误消息以及错误的时间和日期。

我在这里错过了一些配置还是这个问题?

0 个答案:

没有答案
相关问题