<source>
The default is false. The manual words it carefully: the engine tries to hide the message source, and currently this means exactly one thing — the name and address of the server the message was received from will not get into the added Received header.
The point is security: not showing the recipient the layout of the internal network the message was submitted from.
The line edits the contents of the mark rather than deciding whether it exists. The mark as a whole is turned off by add-received-header; with that set to false, this directive does nothing, because there is nothing to edit.
The line cannot be considered a general privacy switch: it closes one specific trace, and no more.
The line would be needed with the opposite decision — to restore the chain for investigations but not show the submitter’s address. That is exactly the middle option worth remembering if turning the mark off completely ever becomes inconvenient.
What to set. There are two meaningful combinations, and both depend on the neighboring line:
| Combination | What you get |
|---|---|
| mark on, hiding true | the chain is intact, the submitter’s address is not visible — the middle option |
| mark on, hiding false (default) | the full chain, everything is visible |
| no mark | this line does nothing, whatever the value |
The third row of the table is our current case.
# the middle option: the chain is intact, the submitter's address is hidden <source 0/0> add-received-header true hide-message-source true</source>
what people get wrong and how it ends2 mistakes▶
§ 3.3.7.36
§ 3.3.7.36
1 relation
grep -n 'hide-message-source\|add-received-header' /etc/pmta/config /etc/pmta/virtualhost.txt
3 articles
◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.