Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

There was an error sending mail from 'bugzilla maintainer email' to 'bugzilla user email': Couldn't connect to email.company.com

2,430 views
Skip to first unread message

z-run

unread,
Oct 9, 2012, 8:47:30 PM10/9/12
to
hi, when users submit new tickets, they receive the this error:

There was an error sending mail from 'bugzilla maintainer email' to 'bugzilla user email': Couldn't connect to email.company.com

Traceback:

at Bugzilla/Mailer.pm line 190
Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/BugMail.pm line 370
Bugzilla::BugMail::sendMail(...) called at Bugzilla/BugMail.pm line 272
Bugzilla::BugMail::Send(...) called at /srv/www/htdocs/bugzilla/post_bug.cgi line 226

We are running bugzilla version 4.2.1 on Linux
using smtp settings with authenticated user
this seems to have worked for a while then stopped
this is an EC2 instance running on AWS

Any help what to check would be really appreciated. Thanks

Thorsten Schöning

unread,
Oct 10, 2012, 4:41:10 AM10/10/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Mittwoch, 10. Oktober 2012 um 02:47 schrieben Sie:

> There was an error sending mail from 'bugzilla maintainer email' to
> 'bugzilla user email': Couldn't connect to email.company.com

Check network connections to your mail server with ping, telnet or
whatever. Errors like those are always network or mail server problems
and nothing related to Bugzilla itself. Anyone changed anything
regarding your mail server or network in your setup.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail:Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

z-run

unread,
Oct 10, 2012, 12:40:46 PM10/10/12
to support-...@lists.mozilla.org
I am able to ping the mail server fine, telnet on port 25 is also ok.
Which mail service does bugzilla use by default? I have postfix running but I don't see anything in the queue.

Izz Abdullah

unread,
Oct 10, 2012, 12:50:44 PM10/10/12
to z-run, support-...@lists.mozilla.org, support-...@lists.mozilla.org
To answer your question, by default I thought Bugzilla uses sendmail, but I could be wrong.

You want to make sure any authentication tokens are setup in Bugzilla if you need to authenticate with your mail server.

Izz Abdullah
Network Administrator
Hibbett Sporting Goods
205.380.7154
izz.ab...@hibbett.com
_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put support-...@lists.mozilla.org in the To: field when you reply.

Thorsten Schöning

unread,
Oct 10, 2012, 12:54:02 PM10/10/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Mittwoch, 10. Oktober 2012 um 18:40 schrieben Sie:

> I am able to ping the mail server fine, telnet on port 25 is also ok.

SELinux and Co. may prevent httpd from proper communication.

> Which mail service does bugzilla use by default? I have postfix
> running but I don't see anything in the queue.

It's irrelevant which it uses by default, check you installation which
method your installation uses. :-) From your error message I guess
SMTP, see Administration/Parameters/E-Mail for details.

z-run

unread,
Oct 10, 2012, 12:58:28 PM10/10/12
to support-...@lists.mozilla.org
one thing I see in the bugzilla-error_log, is lots of these errors:
[Wed Oct 10 16:52:30 2012] [error] [client xx.xxx.220.145] Net::SMTP=GLOB(0x9ede9a4)>>> <li>You are watching someone on the CC list of the bug....etc

z-run

unread,
Oct 10, 2012, 1:05:10 PM10/10/12
to support-...@lists.mozilla.org
My bugzilla email settings are:
SMTP
use_mailer_queue: off
smtpserver: my hosted email server url (I also tried IP address)
smtp username and password for my email account which can login fine to webmail
smtp_debug: on
globalwatchers: none

Thorsten Schöning

unread,
Oct 10, 2012, 1:26:32 PM10/10/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Mittwoch, 10. Oktober 2012 um 18:58 schrieben Sie:

> one thing I see in the bugzilla-error_log, is lots of these errors:
> [Wed Oct 10 16:52:30 2012] [error] [client xx.xxx.220.145]
> Net::SMTP=GLOB(0x9ede9a4)>>> <li>You are watching someone on the CC list of the bug....etc

Looks like output of the template from which the HTML mail is
generated.

Thorsten Schöning

unread,
Oct 10, 2012, 1:34:39 PM10/10/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Mittwoch, 10. Oktober 2012 um 19:05 schrieben Sie:

> smtpserver: my hosted email server url (I also tried IP address)

Domain or IP, no URL, meaning whatever you successfully tried on a
shell must be configured. Your settings look ok to me, you could check
the timestamp of the data/params file to see when the last change was
made. There surely has been something changed and it's either mail or
network things on your OS hosting Bugzilla or on the used mail server.
If your configured settings work using telnet, there surely is
something blocking communication for Bugzilla. So really create a
complete email using telnet, not just connect to the server.

http://www.wikihow.com/Send-Email-Using-Telnet

You may provide all lines with Net::SMTP after updates to one bug and
some lines before and after of the former mentioned log as I would
expect your error to be mentioned there as well. It's even interesting
that some HTML data seems to be send to the mail server...

z-run

unread,
Oct 10, 2012, 2:15:55 PM10/10/12
to support-...@lists.mozilla.org
I just went a complete email send using telnet port 25 with smtp authentication and it went through fine (received email in my gmail). This is frustrating...all settings appear to be good!
I will post all lines with Net::SMTP after updates to one bug next.
Thanks so far for the replies
Message has been deleted

Thorsten Schöning

unread,
Oct 11, 2012, 7:54:47 AM10/11/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Donnerstag, 11. Oktober 2012 um 07:04 schrieben Sie:

> [Wed Oct 10 18:28:17 2012] [error] [client xx.xxx.220.145]
> Net::SMTP=GLOB(0x9e7cd64)<<< 250 2.0.0 Ok: queued as 50D551238186,
> referer: http://bugzillaurl.com/show_bug.cgi?id=18
> [Wed Oct 10 18:28:17 2012] [error] [client xx.xxx.220.145]
> Net::SMTP=GLOB(0x9e7cd64)>>> QUIT\r, referer:
> http://bugzillaurl.com/show_bug.cgi?id=18
> [Wed Oct 10 18:28:17 2012] [error] [client xx.xxx.220.145]
> Net::SMTP=GLOB(0x9e7cd64)<<< 221 2.0.0 Bye, referer:
> http://bugzillaurl.com/show_bug.cgi?id=18

And during this bug update you got an error message in the web UI? I
can't see any problem, you should have received the mail. Maybe your
mail provider had temporary problems which resulted in the errors for
some users?

z-run

unread,
Oct 11, 2012, 12:10:02 PM10/11/12
to support-...@lists.mozilla.org
yes in the UI the user receives the error that Bugzilla suffered an internal error....etc

What does this error mean though? I couldn't really find anything useful online:
[error] [client xx.xxx.220.145]Net::SMTP=GLOB(0x9e7cd64)

I asked our email provider to check their logs as well. Its a very intermittent issue, sometime the emails get through...maybe 1 out 15.
Does have anything to do with the number of email addresses in the default cc settings? we probably have about 15 email addresses.
I have spent almost 3 days on this things and still cant get to the bottom of it!

Thorsten Schöning

unread,
Oct 11, 2012, 12:37:02 PM10/11/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Donnerstag, 11. Oktober 2012 um 18:10 schrieben Sie:

> What does this error mean though? I couldn't really find anything useful online:
> [error] [client xx.xxx.220.145]Net::SMTP=GLOB(0x9e7cd64)

This is no error at all, just debug output issued by the warn function
of perl which writes to STDERR.

> I asked our email provider to check their logs as well. Its a very
> intermittent issue, sometime the emails get through...maybe 1 out 15.
> Does have anything to do with the number of email addresses in the
> default cc settings? we probably have about 15 email addresses.
> I have spent almost 3 days on this things and still cant get to the bottom of it!

It may, just try with a test bug with less CCs etc. Bugzilla seems to
create a uique mail per user, you should see a log of Net::SMTP lines
in the log and find the error somewhere there.

Bugzilla::BugMail::Send

foreach my $user_id (keys %recipients) {

z-run

unread,
Oct 12, 2012, 7:47:21 PM10/12/12
to support-...@lists.mozilla.org
Ok, finally found the problem and it was not related to Bugzilla! Turns out that Amazon AWS (where this server is hosted) block port 25 by default to prevent spammers from using AWS. They were supposed to to send me a notification about this when I created the instance but they never did! I had to request the block to be removed and once that was done, email started working. Bugzilla sent out almost 100 emails that were stuck on the server. The fact that the I was able to send an email using telent 25 exercise made it difficult to point the finger at AWS. Lesson learned I guess.

Thanks for trying to help, appreciate it.

Thorsten Schöning

unread,
Oct 13, 2012, 2:49:33 AM10/13/12
to support-...@lists.mozilla.org
Guten Tag z-run,
am Samstag, 13. Oktober 2012 um 01:47 schrieben Sie:

> The fact that the I was
> able to send an email using telent 25 exercise made it difficult to
> point the finger at AWS. Lesson learned I guess.

As I guessed, it's always some network problem. ;-) What I don't
understand is your log entries with Net::SMTP which clearly stated
that mails were sent, you even got the QUIT dialogue. Very strange...

sbanda...@fieldflex.com

unread,
Jan 28, 2018, 3:52:35 AM1/28/18
to
-----------------------------------------------
Bugzilla has suffered an internal error. Please save this page and send it to sbanda...@fieldflex.com with details of what you were doing at the time this message appeared.

URL: http://al-borj.fieldflex.com/bugzilla/createaccount.cgi?login=dumbu.45%40gmail.com&token=1517129427-fba8122a0f57791762620a6b2d2c6f94

There was an error sending mail from 'sbanda...@fieldflex.com' to 'dumb...@gmail.com': Couldn't connect to localhost
Traceback:

at Bugzilla/Mailer.pm line 198.
Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/Token.pm line 91
Bugzilla::Token::issue_new_user_account_token(...) called at Bugzilla/User.pm line 2013
Bugzilla::User::check_and_send_account_creation_confirmation(...) called at /var/www/html/bugzilla/createaccount.c

-------------------
I am facing the above issue ..Could you please send me the solution for the above. Thanks and Have a Good one !!

Thorsten Schöning

unread,
Jan 28, 2018, 5:57:43 AM1/28/18
to support-...@lists.mozilla.org
Guten Tag sbanda...@fieldflex.com,
am Sonntag, 28. Januar 2018 um 09:52 schrieben Sie:

> There was an error sending mail from 'sbanda...@fieldflex.com'
> to 'dumb...@gmail.com': Couldn't connect to localhost
[...]
> I am facing the above issue ..Could you please send me the solution
> for the above. Thanks and Have a Good one !!

The mail you answered on already contained what you need to test:

>> > Check network connections to your mail server with ping, telnet or
>> > whatever. Errors like those are always network or mail server problems
>> > and nothing related to Bugzilla itself. Anyone changed anything
>> > regarding your mail server or network in your setup.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@AM-SoFT.de
AM-SoFT IT-Systeme http://www.AM-SoFT.de/

Telefon...........05151- 9468- 55
0 new messages