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
Posts: 1
Joined: 20 Jul 2018, 07:28

Sendmail do not work with relay host

Post by chn1088 »

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_destination = 'file:/opt/lampp/htdocs/mantisbt/config/mantisbt.log';
$g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL;
$g_allow_signup = ON;
$g_from_email = '';
$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
Posts: 615
Joined: 06 Jul 2011, 14:17

Re: Sendmail do not work with relay host

Post by SL-Gundam »


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:
Post Reply