Commit 0d91505
authored
fix: standardize X-Mailer, version string, and forensic relay tracing (#429)
* fix: use X-Mailer instead of User-Agent in milter failure reports
opendmarc-reports already labels aggregate reports with
X-Mailer: opendmarc-reports v<version>. The milter's own AFRF
failure-report path used User-Agent instead, so the two report types
disagreed on which header identifies the generating software.
Standardize both on X-Mailer.
* fix: align opendmarc-reports version string and mark forensic relay hop
opendmarc-reports' $version used the plain release version with no
git-describe logic, while the milter's DMARCF_VERSION already includes
a dirty-build hash suffix; identical dev builds reported different
version strings depending on which program authored a report.
configure.ac now AC_SUBST's DMARCF_VERSION for use in opendmarc-reports.in.
Also: --forensic mode relays the milter-composed message via Net::SMTP
without ever picking up a Received: header, unlike the direct
sendmail -t path which gets one for free from the local MTA. Prepend a
single Received: line identifying the relay hop, added before
archiving so --archive-dir captures what was actually sent.1 parent 9553894 commit 0d91505
4 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3635 | 3635 | | |
3636 | 3636 | | |
3637 | 3637 | | |
3638 | | - | |
| 3638 | + | |
3639 | 3639 | | |
3640 | 3640 | | |
3641 | 3641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
756 | 763 | | |
757 | 764 | | |
758 | 765 | | |
| |||
0 commit comments