We have several accounts that are using PHPMailer. For some reason when the script sends mail, it is sending it as ROOT USER <root@localhost.sentora-domain.com>, for server security the actual domain has been redacted.
The script allows users to enter SMTP details for authentication to send the email, however the emails appear to be only sent by SendMail and by SMTP which is what the script requests.
There are no error messages in the PHP Script and the same scripts are working perfectly fine on other servers that run SendMail and Postfix.
I'm not sure why in the actual headers it's using localhost, which is not normally something I've seen. So I'm thinking this may be a bug or a misconfiguration during install, because it appears to be doing it on all of the Sentora installs we have.
The main issue is that no matter what is done, the email is always arriving as from "Root User" regardless of what is specified in any PHP scripts. So the email system or Sentora are overwriting the headers and replacing them with their own. Which is a problem because not all customers want to send emails from Root User, they'll want to send them from the scripts, forms, etc, that they want to use.
The script has been rewritten and changed several times attempting to get the correct information displayed and the correct SMTP configuration used. But Postfix or Sentora refuse to actually pass that information on to the receiving server (in this case Gmail). I've looked through the configuration for both and don't see anything that could be causing this to happen. I figured this community would know best what exactly is going on and how to correct it.
================
Email headers
================
Date: Sat, 10 Feb 2018 01:16:43 -0500
To: Customer Name <customer@customerdomain.com>
From: Root User <root@localhost.sentora-domain.com>
Subject: THIS IS A TEST EMAIL
Message-ID: <a26cb298dfc320b4e2ba484bd585121e@customerdomain.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
Sender:
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1_a26cb298dfc320b4e2ba484bd585121e"
* sentora-domain.com is a stand in for the FQDN of the Sentora server.
* customerdomain.com is a stand in for the customer's FQDN.
The script allows users to enter SMTP details for authentication to send the email, however the emails appear to be only sent by SendMail and by SMTP which is what the script requests.
There are no error messages in the PHP Script and the same scripts are working perfectly fine on other servers that run SendMail and Postfix.
I'm not sure why in the actual headers it's using localhost, which is not normally something I've seen. So I'm thinking this may be a bug or a misconfiguration during install, because it appears to be doing it on all of the Sentora installs we have.
The main issue is that no matter what is done, the email is always arriving as from "Root User" regardless of what is specified in any PHP scripts. So the email system or Sentora are overwriting the headers and replacing them with their own. Which is a problem because not all customers want to send emails from Root User, they'll want to send them from the scripts, forms, etc, that they want to use.
The script has been rewritten and changed several times attempting to get the correct information displayed and the correct SMTP configuration used. But Postfix or Sentora refuse to actually pass that information on to the receiving server (in this case Gmail). I've looked through the configuration for both and don't see anything that could be causing this to happen. I figured this community would know best what exactly is going on and how to correct it.
================
Email headers
================
Date: Sat, 10 Feb 2018 01:16:43 -0500
To: Customer Name <customer@customerdomain.com>
From: Root User <root@localhost.sentora-domain.com>
Subject: THIS IS A TEST EMAIL
Message-ID: <a26cb298dfc320b4e2ba484bd585121e@customerdomain.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
Sender:
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1_a26cb298dfc320b4e2ba484bd585121e"
* sentora-domain.com is a stand in for the FQDN of the Sentora server.
* customerdomain.com is a stand in for the customer's FQDN.
Brad J Trammell
Director of Operations
SparkRack.com
Send me a message on Discord:
bradjtrammell#8210
Director of Operations
SparkRack.com
Send me a message on Discord:
bradjtrammell#8210