hestiacp / hestiacp

Hestia Control Panel | A lightweight and powerful control panel for the modern web.
https://hestiacp.com
GNU General Public License v3.0
3.4k stars 680 forks source link

[Bug] Send Welcome Message [Missing a valid address in From: ] #2936

Closed PotatoRui closed 2 years ago

PotatoRui commented 2 years ago

Describe the bug

Describe the bug

When I Add a new user, with a checked checkbox “Send welcome email”. It returns an error on my "/var/log/exim4/mainlog"

admin <admin@domain.com> R=localuser T=local_delivery SMTP error from remote mail server after pipelined end of data: 550-5.7.1 [2001:000xxxxxxxxx] Messages missing a valid address in From:\n550 5.7.1 header, or having no From: header, are not accepted. l8-20020a170902f68800b00170f6f728d4si30765320plg.543 - gsmtp

I can telnet smtp.gmail.com 25 I can send emails with new created email account I can receive emails

Screenshot Below image


Return-path: [admin@domain.com](mailto:admin@domain.com)
Received: from admin by domain.com with local (Exim 4.95)
(envelope-from [admin@domain.com](mailto:admin@domain.com))
id 1oaBwS-000dUd-Eh
for [gmailuser@gmail.com](mailto:gmailuser@gmail.com);
Mon, 19 Sep 2022 08:15:48 +0000
To: [gmailuser@gmail.com](mailto:gmailuser@gmail.com)
Subject: Welcome to Hestia Control Panel
Date: Mon, 19 Sep 2022 08:15:48 +0000
From:
Message-ID: [c0AT3joC0KY8nOuyiH8XT4iKcwbqnBTRpkDfBhY6XZw@localhost.localdomain](mailto:c0AT3joC0KY8nOuyiH8XT4iKcwbqnBTRpkDfBhY6XZw@localhost.localdomain)
X-Mailer: PHPMailer 6.6.3 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_c0AT3joC0KY8nOuyiH8XT4iKcwbqnBTRpkDfBhY6XZw"
Content-Transfer-Encoding: 8bit

Tell us how to replicate the bug

  1. Login as Administrator
  2. Click on add new user
  3. Check the "send welcome email"
  4. Message sent successfully but returns an error that there is a missing "FROM" on the email Image Below image

Which components are affected by this bug?

Mail (Exim, Dovecot), Webmail (Roundcube, Rainloop)

Hestia Control Panel Version

1.6.8

Operating system

Ubuntu 22.04.1 LTS x86_64

Log capture

Return-path: admin@domain.com
Received: from admin by domain.com with local (Exim 4.95)
(envelope-from admin@domain.com)
id 1oaBwS-000dUd-Eh
for gmailuser@gmail.com;
Mon, 19 Sep 2022 08:15:48 +0000
To: gmailuser@gmail.com
Subject: Welcome to Hestia Control Panel
Date: Mon, 19 Sep 2022 08:15:48 +0000
From:
Message-ID: c0AT3joC0KY8nOuyiH8XT4iKcwbqnBTRpkDfBhY6XZw@localhost.localdomain
X-Mailer: PHPMailer 6.6.3 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_c0AT3joC0KY8nOuyiH8XT4iKcwbqnBTRpkDfBhY6XZw"
Content-Transfer-Encoding: 8bit
ScIT-Raphael commented 2 years ago

Please do not create multiple reports for the same issue: https://github.com/hestiacp/hestiacp/issues/2929