Bug #14932
openmailreport 3.6.4_1 doesn't handle name address format "Name <email@domain.com>" in sender
0%
Description
mailreport 3.6.4_1 doesn't handle name address format "Name <email@domain.com>". pfSense will correctly use and send emails setup with the sender using name address format "Name <email@domain.com>". mailreport doesn't send the email.
Updated by aleksei prokofiev about 1 year ago
Tested on
23.05.1-RELEASE (amd64)
built on Wed Jun 28 03:57:27 UTC 2023
FreeBSD 14.0-CURRENT
mailreport 3.6.4_1
I am unable reproduce that, all working as expected.
Updated by Andrew Dakin about 1 year ago
From examining mail server logs it looks like mailreport sends the email but it sets the from address in the header to <>. So a lot of systems will reject the email. Whereas pfSense actually puts the email in <email@domain.com>.
I set the from address in pfsense to the "Name <email@domain.com>" format. Then I first had pfSense sending an email and then mailreport sending a report. I sanitized emails and servers.
[07/Nov/2023 10:29:42] Recv: Queue-ID: 000010cf, Service: SMTP, From: <firewall@domain.net>, To: <email@domain.com>, Size: 637, Sender-Host: xxxx, Subject: pf.domain.net - Notification
[07/Nov/2023 10:29:44] Sent: Queue-ID: 000010cf, Recipient: <email@domain.com>, Result: relayed, Status: 2.0.0 , Remote-Host: aspmx.l.google.com
[07/Nov/2023 10:30:04] Recv: Queue-ID: 000010d0, Service: SMTP, From: <>, To: <email@domain.com>, Size: 7286, Sender-Host: xxxx, Subject: pf.domain.net Email Report: Test mailreport report, Msg-Id: <1234@pf.domain.net>
[07/Nov/2023 10:30:05] Sent: Queue-ID: 000010d0, Recipient: <email@domain.com>, Result: failed, Status: 5.3.2 550-5.7.1 Messages missing a valid address in From: header, or
[07/Nov/2023 10:30:05] 550-5.7.1 having no From: header, are not accepted. Please visit
[07/Nov/2023 10:30:05] 550-5.7.1 https://support.google.com/mail/?p=RfcMessageNonCompliant and review
[07/Nov/2023 10:30:05] 550 5.7.1 RFC 5322 specifications for more information. f13-20020a056e02168d00b0035905beb094si4928804ila.111 - gsmtp, Remote-Host: aspmx.l.google.com, Msg-Id: <1234@pf.domain.net>