我已经安装了 bugzilla 4.0。它可以工作,但是我无法使用带身份验证的 SMTP 发送功能。
根据发行说明,如果您安装:Authen::SASL,则 SMTP::TLS 应该在邮件下拉菜单中可用。
运行./checksetup --check-modules:
Checking perl modules...
Checking for CGI.pm (v3.51) ok: found v3.52
Checking for Digest-SHA (any) ok: found v5.47
Checking for TimeDate (v2.21) ok: found v2.23
Checking for DateTime (v0.28) ok: found v0.70
Checking for DateTime-TimeZone (v0.71) ok: found v1.38
Checking for DBI (v1.41) ok: found v1.609
Checking for Template-Toolkit (v2.22) ok: found v2.22
Checking for Email-Send (v2.00) ok: found v2.198
Checking for Email-MIME (v1.904) ok: found v1.910
Checking for URI (any) ok: found v1.52
Checking for List-MoreUtils (v0.22) ok: found v0.33
Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) ok: found v4.012
Checking for DBD-Oracle (v1.19) not found
The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.39
Checking for Chart (v2.1) ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for XML-Twig (any) ok: found v3.32
Checking for MIME-tools (v5.406) ok: found v5.502
Checking for libwww-perl (any) ok: found v5.834
Checking for PatchReader (v0.9.4) ok: found v0.9.6
Checking for perl-ldap (any) ok: found v0.43
Checking for Authen-SASL (any) ok: found v2.15
Checking for RadiusPerl (any) ok: found v0.20
Checking for SOAP-Lite (v0.712) ok: found v0.714
Checking for JSON-RPC (any) ok: found v0.96
Checking for JSON-XS (v2.0) ok: found v2.32
Checking for Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40) ok: found v3.64
Checking for HTML-Scrubber (any) ok: found v0.09
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for Daemon-Generic (any) ok: found v0.81
Checking for mod_perl (v1.999022) ok: found v2.000004
Checking for Apache-SizeLimit (v0.93) ok: found v0.95
Checking for Math-Random-Secure (v0.05) ok: found v0.06
WARNING: We could not check the configuration of Apache. This sometimes
happens when you are not running checksetup.pl as root. To see the
problem we ran into, run: /usr/sbin/apache2 -t -D DUMP_MODULES
模块已安装
Checking for Authen-SASL (any) ok: found v2.15
但是,在“参数”->“电子邮件”中我没有看到可用的 SMTP:TLS。
我还安装了以下内容:
sudo apt-get install libnet-ssleay-perl
sudo apt-get install libcrypt-ssleay-perl
也:
CPAN: install Net::SMTP::TLS
我认为不需要进行任何代码更改即可实现这一点,但谁知道呢。
根据问答 https://serverfault.com/questions/83113/bugzilla-mail-delivery-method-using-tls-for-gmail 我添加了行
use Email::Send::SMTP::TLS;
到 Mailer.pm 文件。这导致了问题
软件错误:
> Can't locate Email/Send/SMTP/TLS.pm in @INC (@INC contains: .
> lib/i686-linux-gnu-thread-multi lib /etc/perl
> /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
> /usr/local/lib/site_perl) at Bugzilla/Mailer.pm line 48. BEGIN
> failed--compilation aborted at Bugzilla/Mailer.pm line 48. Compilation
> failed in require at Bugzilla/Auth.pm line 35. BEGIN
> failed--compilation aborted at Bugzilla/Auth.pm line 35. Compilation
> failed in require at Bugzilla.pm line 40. BEGIN failed--compilation
> aborted at Bugzilla.pm line 40. Compilation failed in require at
> /var/www/bugzilla/editparams.cgi line 28. BEGIN failed--compilation
> aborted at /var/www/bugzilla/editparams.cgi line 28. For help, please
> send mail to the webmaster (webmaster@localhost), giving this error
> message and the time and date of the error.
请指教。
*请注意,昨天我感觉我没有安装 Bugzilla 4.0 :-) 无论如何,我检查了一下,它是 4。
答案1
作为在您自己的服务器上设置 SMTP 的替代方案,您甚至可以使用 Gmail 作为首选 SMTP 服务器。
我在运行 Apache2.2/Perl5.10 的 Ubuntu9.10 服务器上安装了 Bugzilla 4.0.2,并按照上述步骤进行操作这里