创建用户报:
URL: http://localhost/process_bug.cgi
There was an error sending mail from 'bugzilla-daemon' to 'aaa@163.com':error when closing pipe to /usr/lib/sendmail:
Traceback:
at Bugzilla/Mailer.pm line 186.
Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/BugMail.pm line 365
Bugzilla::BugMail::sendMail(...) called at Bugzilla/BugMail.pm line 267
Bugzilla::BugMail::Send(...) called at Bugzilla/Bug.pm line 1220
Bugzilla::Bug::_send_bugmail(...) called at Bugzilla/Bug.pm line 1161
Bugzilla::Bug::send_changes(...) called at /var/www/html/bugzilla/process_bug.cgi line 377
'mailfrom' => 'admin@unihz.com',
'maintainer' => 'admin@unihz.com',
'smtp_password' => '12345678',
'smtp_username' => 'admin@unihz.com',
'smtpserver' => 'smtp.unihz.com',
'use_mailer_queue' => 'on', #邮件进队列处理,改善页面僵死的等待
[root@zhm ~]# /var/www/html/bugzilla/jobqueue.pl start #启动邮件队列处理
[root@zhm ~]# /var/www/html/bugzilla/jobqueue.pl install #写进内核,开机自动启动
protocols = imap pop3 lmtp
disable_plaintext_auth = no
ssl = no
URL: http://localhost/process_bug.cgi
There was an error sending mail from 'bugzilla-daemon' to 'aaa@163.com':error when closing pipe to /usr/lib/sendmail:
Traceback:
at Bugzilla/Mailer.pm line 186.
Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/BugMail.pm line 365
Bugzilla::BugMail::sendMail(...) called at Bugzilla/BugMail.pm line 267
Bugzilla::BugMail::Send(...) called at Bugzilla/Bug.pm line 1220
Bugzilla::Bug::_send_bugmail(...) called at Bugzilla/Bug.pm line 1161
Bugzilla::Bug::send_changes(...) called at /var/www/html/bugzilla/process_bug.cgi line 377
>>>
1: 修改下列参数:
[root@zhm ~]# vim /var/www/html/bugzilla/data/params
'mail_delivery_method' => 'SMTP','mailfrom' => 'admin@unihz.com',
'maintainer' => 'admin@unihz.com',
'smtp_password' => '12345678',
'smtp_username' => 'admin@unihz.com',
'smtpserver' => 'smtp.unihz.com',
'use_mailer_queue' => 'on', #邮件进队列处理,改善页面僵死的等待
[root@zhm ~]# /var/www/html/bugzilla/jobqueue.pl start #启动邮件队列处理
[root@zhm ~]# /var/www/html/bugzilla/jobqueue.pl install #写进内核,开机自动启动
2: 以上操作完成后,上述错误就不见了,但是邮件发出去后,收件人却收不到邮件,需做如下操作:
[root@zhm ~]# vim /etc/dovecot/conf.d/10-mail.conf
将下面一句的#去掉
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
[root@zhm ~]# vim /etc/dovecot/dovecot.conf
增加下面三句:protocols = imap pop3 lmtp
disable_plaintext_auth = no
ssl = no
3: 重新启动sendmail dovecot服务;