Page 1 of 1
Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 22 Nov 2021, 13:10
by rsingh
Hello,
Thank you for providing your valuable time to check this out.
We've recently upgraded our MantisBT system to
2.25.2
Since then our emails stay in the email queue and aren't getting sent.
Personally, I've tried to check the various post such as:
and other to name a few.
Our Admin panel is showing that our configuration is correct and has a "PASS" on configurations pertaining to:
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 22 Nov 2021, 13:50
by cas
you upgraded from which verion?
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 23 Nov 2021, 05:11
by rsingh
Hello,
Thanks for replying back.
Our previous version was 2.24.1
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 23 Nov 2021, 18:21
by mushu
What O/S?
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 24 Nov 2021, 05:33
by rsingh
Hello,
Thanks for replying.
Operating System Version: Ubuntu 18.04 LTS
The instance that we are hosting on is on AWS EC2.
I've checked the outgoing of our Security Groups, and its set for allow "all outgoing".
If I try to create a test_mail.php and tried to hit the endpoint so that it gets executed, but it
say 404 not found.
The file is inside path:
Code: Select all
/opt/bitnami/htdocs/######/mantis/
and is to be executable.
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 24 Nov 2021, 07:51
by cas
go to the following page:
mantis/admin/email_queue.php
there you can see what is in the mailqueue and perform a test mail.
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 26 Nov 2021, 11:24
by rsingh
Hi,
Thank you for replying.
I've tried test sending email from the
email_queue.php page.
I am getting this following "config_inc.php" error:
"Testing Mail - PROBLEMS SENDING MAIL TO: #####@#####.com Please check your php/mail server settings."
I also tried adding the following DKIM Information,
Code: Select all
$g_email_dkim_enable = ON;
$g_email_dkim_domain = '######.com';
$g_email_dkim_private_key_string = '< Our Private Key >';
$g_email_dkim_selector = 'DKIM1';
I am not sure if this is the correct way to add the DKIM as well, but getting the same error as formerly mentioned.
Regards,
Rahul
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 26 Nov 2021, 11:29
by cas
The message can also be generated because of settings in php.ini. Did you also changed PHP version by chance?
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 26 Nov 2021, 11:38
by rsingh
Upgrading to 2.25.2 would update the php version right? However, we didn't touched the php file.
Current PHP version is: 7.0.26
Any specifics to what that settings might look like?
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 26 Nov 2021, 12:20
by cas
Noop, upgrading Mantis will never upgrade your php version. This is your own responsibility
Found that I get the same message on my test system

so will try to solve it
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 27 Nov 2021, 12:49
by cas
Check the rights on the sendmail binary, probably not set correctly (that was my problem anyway

).
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 01 Dec 2021, 07:48
by rsingh
Hey,
Thanks for the suggestion. We didn't updated the PHP, so it seems intact. Please find below the mailing related configuration in our php.ini file:
Code: Select all
;sendmail_path = "env -i /usr/sbin/sendmail -t -i"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail().
;mail.force_extra_parameters =
You might notice that its commented. If I uncomment it, then it would try to find the sendmail using the "path" but for some reason when I try to find the sendmail file, I am not able to. I looked up in the following directories:
Here's our current Bitnami directory structure:
Code: Select all
bitnami@ip-##########:/opt/bitnami$ ls -l
total 3468
drwxr-xr-x 14 root root 4096 Jan 25 2018 apache2
drwxr-xr-x 5 root root 4096 Aug 30 2018 apps
drwxr-xr-x 2 root root 4096 Jan 25 2018 bnsupport
lrwxrwxrwx 1 root root 52 Jan 25 2018 bnsupport-tool -> /opt/bitnami/bnsupport/bnsupport-0.5.2-linux-x64.run
-rw-r--r-- 1 root root 24075 Jan 25 2018 changelog.txt
drwxr-xr-x 10 root root 4096 Jan 25 2018 common
drwxr-xr-x 4 root root 4096 Jan 25 2018 config
-rwxr-xr-x 1 root root 51890 Jan 25 2018 ctlscript.sh
drwxr-xr-x 2 root root 4096 Jan 25 2018 img
drwxr-xr-x 2 root root 4096 Jan 25 2018 licenses
-rwx------ 1 root root 3390885 Feb 27 2017 manager-linux-x64.run
drwxr-xr-x 11 root root 4096 Apr 29 2020 mysql
drwxr-xr-x 11 root root 4096 Jan 25 2018 php
-rwxrwx--- 1 bitnami root 1617 Feb 16 2018 properties.ini
-rw-r--r-- 1 root root 12669 Jan 25 2018 README.txt
drwxr-xr-x 3 root root 4096 Jan 25 2018 scripts
drwxr-xr-x 5 root root 4096 Jan 25 2018 sqlite
drwxr-xr-x 2 bitnami bitnami 4096 Dec 1 07:46 stats
-rwxr--r-- 1 root root 250 Jan 25 2018 use_wordpress
drwxr-xr-x 7 root root 4096 Feb 14 2018 var
drwxr-xr-x 9 root root 4096 Jan 25 2018 varnish
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 01 Dec 2021, 07:59
by cas
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 01 Dec 2021, 13:43
by rsingh
Hello,
Thanks for sharing the link. Will try and let you know.
Warm Regards,
Rahul
Re: Post Updating to version 2.25.2 our emails are stop getting delivered to the recipients
Posted: 02 Dec 2021, 06:33
by rsingh
Hello there.
First of all I would like to thank you for providing your valuable time for guiding me to fix the issue.
As you suggested, the root cause was smtp mailer method not working. So I thought why not to use the
native sendmail service.
So I took the following steps:
- Installed sendmail service on our system.
- Edited the php.ini file and uncommented the path to use the sendmail service at /usr/sbin/sendmail
- Edited config_inc.php to use the "sendmail" as our mailer method.
- Stopped & Restarted the whole bitnami stack using the control scripts
- Went to admin page, and tested mail using sendmail
All mails from the mail queue went successfully. We are now able to send mails through mantis.
Once again, thank you for your help.
Warm Regards,
Rahul Singh