View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020571 | mantisbt | public | 2016-02-05 05:07 | 2017-03-22 03:53 | |
Reporter | DLeon | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 1.3.0-rc.1 | ||||
Summary | 0020571: After upgrade emails are not sent anymore | ||||
Description | We updated our Mantis from Version 1.2.15 to 1.3.0-rc.1 After the upgrade sending emails fails. It makes no difference if we use the cronjob or not. The old version 1.2.15 and the new version 1.3.0-rc.1 are running on the same server. For the old version emails are sent, but not for the new version. We use a SMTP server depending on Microsoft Exchange. The communication between the webserver and the mailserver stops when the mail server sends his certificate. That's interessting, because we configured the system using no encryption. We want to use the standard port 25 and the standard SMTP connection mode. If we disable the TLS support on the SMTP server, the emails are sent, but that is not an option. | ||||
Steps To Reproduce | ###System: --- Email Configuration ---$g_phpMailer_method = PHPMAILER_METHOD_SMTP; | ||||
Tags | No tags attached. | ||||
Check your settings for $g_smtp_connection_mode and $g_smtp_port I didn't check, maybe there is a difference between 1.2.x and 1.3.x how different settings are treated $g_smtp_connection_mode = ''; |
|
I tried $g_smtp_port = 25; and I tried the default options (which means $g_smtp_port and $g_smtp_connection_mode are not mentioned in the config file). Both versions work in my version 1.2.15 on the same server. And that's what I want to use again in the new version. By the way $g_smtp_connection_mode = 'tls'; and $g_smtp_connection_mode = 'ssl'; didn't work either. It seems the mantis is ignoring my default settings. |
|
Worth a try: $g_smtp_port = 587; |
|
Didn't work either. |
|
Mail server issues are always specific to local configuration and always difficult to troubleshoot. Even more so when one does not have access to the same infrastructure... Comparing the code, AFAICT email_send() API function has not changed significantly since 1.2.x, but we did upgrade the PHPMailer library, so maybe that's caused by that. To give us more information about the error, could you kindly set your configuration as follows: $g_log_level = LOG_EMAIL; Then reproduce the error and post the relevant contents of the log file here. |
|
The logfile just contains: 29-02-2016 11:19 CET MAIL ERROR: Message could not be sent - SMTP Fehler: Could not connect to SMTP host. But if I use the test function on email_queue.php the log is a little bit more detailed: Testing Mail - 2016-02-29 10:17:52 CLIENT -> SERVER: EHLO mantis.company.com 2016-02-29 10:17:52 CLIENT -> SERVER: STARTTLS 2016-02-29 10:19:39 SMTP Error: Could not connect to SMTP host. 2016-02-29 10:19:39 CLIENT -> SERVER: QUIT 2016-02-29 10:19:39 SMTP ERROR: QUIT command failed: 2016-02-29 10:19:39 SMTP Error: Could not connect to SMTP host. PROBLEMS SENDING MAIL TO: webmaster@mantis.company.com. Please check your php/mail server settings. This test was executed with the needed settings: |
|
We have Mantis 2.2.0 installed and also mail was not working anymore (since some time) AND it seems that this address is used as FROM: address (and in my company the from needs to be a valid email address in the company) |
|
This is not a bug or feature request for MantisBT (the problem is caused by system configuration). I am therefore resolving this issue as "no change required". Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (see http://www.mantisbt.org/support.php) |
|