Sendmail do not work with relay host

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
chn1088
Posts: 1
Joined: Jul 20, 2018 2:28 am

Sendmail do not work with relay host

Post by chn1088 » Jul 20, 2018 2:46 am

Hi all,

I installed XAMPP and mantisbt on my Linux machine.
Afterwards, I installed postfix with a relay host.
I tested the mail function in the command line and it worked.

Thereafter, I configured the config_inc.php file like follows:

$g_log_level = LOG_EMAIL|LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/opt/lampp/htdocs/mantisbt/config/mantisbt.log';
$g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL;
$g_allow_signup = ON;
$g_from_email = 'xxx@xxx.com';
$g_from_name = 'Mantis Bug Tracker';
$g_enable_email_notification = ON; # //enables the email messages



After pressing the "Reset Password" button in the mantis tool, I got following error message:

CEST MAIL email_api.php:1389 email_send() ERROR: Message could not be sent - Could not execute: /usr/sbin/sendmail

Could some one of you please help me?

Thanks a lot

SL-Gundam
Posts: 573
Joined: Jul 06, 2011 9:17 am

Re: Sendmail do not work with relay host

Post by SL-Gundam » Jul 21, 2018 3:54 pm

Hi

This part of the forum pertains to the thirdparty EmailReporting plugin. You're talking about MantisBT sending emails which is core functionality.

I suggest you ask your question here: https://mantisbt.org/forums/viewforum.php?f=3

Post Reply