Project

General

Profile

Actions

Bug #14932

open

mailreport 3.6.4_1 doesn't handle name address format "Name <email@domain.com>" in sender

Added by Andrew Dakin about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Mail report
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

mailreport 3.6.4_1 doesn't handle name address format "Name <>". pfSense will correctly use and send emails setup with the sender using name address format "Name <>". mailreport doesn't send the email.

Actions #1

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.

Actions #2

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 <>.

I set the from address in pfsense to the "Name <>" 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: <>, To: <>, Size: 637, Sender-Host: xxxx, Subject: pf.domain.net - Notification
[07/Nov/2023 10:29:44] Sent: Queue-ID: 000010cf, Recipient: <>, 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: <>, Size: 7286, Sender-Host: xxxx, Subject: pf.domain.net Email Report: Test mailreport report, Msg-Id: <>
[07/Nov/2023 10:30:05] Sent: Queue-ID: 000010d0, Recipient: <>, 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: <>

Actions

Also available in: Atom PDF