1

In a fresh Bugzilla installation (5.0.3), on a Scientific Linux 6 server I can't set the mail parameters due to this error:

The new value for smtpserver is invalid: Cannot connect to mail.smpt.server

Despite the fact that SMTP settings are correct. The SMTP server for the company is fully functional, on that server I downloaded thunderbird and was able to log in to my account smoothly without any problem which should mean the server has no problem with SMTP at all.

I'm still searching with no clear hind what the cause could be. Any help is really appreciated!

Update: In the old installation I can set these values and I can submit a bug but the email is not sent. This article says that bugzilla does not support SMTP with authentication (Not sure if true or not).

Update: I installed the necessary modules here and again no luck.

Update: On the old installation (4.something), we managed to setup an email account without authentication. This Bugzilla can now send email and it should work smoothly.

Update: I found this useful article which applies a custom send mail script but the error message could not tell me where the error is.

3bdalla
  • 431
  • 4
  • 17
  • 32
  • Update: On the old installation (4.something), we managed to setup an email account without authentication. This Bugzilla can now send email and it should work smoothly. – 3bdalla Jan 08 '17 at 08:04

1 Answers1

1

Assuming that mail.smpt.server is a hostname that resolves internally, you must have a typo: isn't this mail.smtp.server instead?

Whatever the hostname you have configured, you can check with the following command that it resolves properly:

getent hosts mail.smpt.server
(or mail.smtp.server most probably)

You can then try to connect to this server on port 25:

$ telnet mail.smtp.server 25 <<< QUIT
Trying 111.222.333.444...
Connected to mail.smtp.server.
Escape character is '^]'.
Connection closed by foreign host.

(the "Connected..." line means everything should work)

xhienne
  • 17,075
  • 2
  • 52
  • 68
  • that address is just a dummy address to show the message. But yeah the address resolves perfectly. – 3bdalla Jan 03 '17 at 10:02
  • @3bdalla Did you try the `telnet` part with the user that runs Bugzilla? – xhienne Jan 03 '17 at 10:10
  • What do you mean with the user that runs bugzilla? – 3bdalla Jan 03 '17 at 10:11
  • @3bdalla I mean the user that does the connect to the SMTP server. It may be the user that runs your web server. – xhienne Jan 03 '17 at 10:17
  • I did what you posted and it works. Not sure how to specify the user. – 3bdalla Jan 03 '17 at 10:20
  • become the user (`sudo su www-data`) and run the *telnet* session. – umläute Jan 12 '17 at 10:02
  • 1
    @umläute That's right. But your daemon user `www-data` (which may be called `apache`, `httpd`, etc. on platforms others than Debian/Ubuntu) has probably no valid shell. You must use `su -l -s /bin/bash www-data` instead. – xhienne Jan 12 '17 at 10:21