Putting this back on the list.
On 5/19/21 9:46 AM, McGuire, Tommy M. (MSFC-IS90)[EAST2] wrote:
-----Original Message----- From: Mark Sapiro <mark@msapiro.net> ... Have you set
[mailman] sender_headers: ...
in mailman.cfg?, and if so, to what?
We have not changed it:
[mailman] sender_headers: from from_ reply-to sender
According to the smtp.log, there was an envelope sender ("MAIL FROM:.."), which matched the From header. In the example I'm looking at right now, the sender was not a member of the list, but the Accept these non-members box in the list settings has a regexp that matches the sender's domain. In another example from this morning, to a different list, the envelope sender and From header match, and is a member of the list.
I don't see any obvious reason or configuration setting that would make either address invalid.
First of all, the discard has nothing to do with whether the sender has any connection to the list. It only says the message had no sender at all.
Assuming the message had a From: with a syntactically valid email address, this discard should not occur. Also, if the envelope (MAIL FROM:) was a syntactically valid email address, this discard should not occur.
The address is validated by mailman/email/validate.py by first splitting
it into local_part
, @
, [domain_parts]
where domain_parts are the
between dots
parts of the domain and then validating the local_part
and domain with regexps defined per
# What other characters should be allowed? _valid_local = re.compile("[-0-9a-z!#$%&'*+./=?@_`{}~]", re.IGNORECASE) # Strictly speaking, both ^ and | are allowed and others are allowed in quoted # local parts, but this can open the door to certain web exploits so we don't # allow them. _valid_domain = re.compile('[-a-z0-9]', re.IGNORECASE) # These are the only characters allowed in domain parts.
Does the From: local part or the MAIL FROM: contain any characters not in the [-0-9a-z!#$%&'*+./=?@_`{}~] class?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan