mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 00:46:03 +03:00
[GH-ISSUE #3460] DMARC reports for alias domain are not added to domain report #1850
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1850
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PatTheMav on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3460
Impacted versions
Steps to reproduce
Current behavior
The DMARC report for the alias domain is received and parsed by modoboa, the record can be seen in the
dmarc_reporttable in the database, correctly attributed to the alias domain in thepolicy_domainfield.These reports however don't seem to be taken into account in the DMARC report pages of the web interface - only reports for the actual domain are shown here.
Expected behavior
Reports for the main domain as well as its aliases are both taken into account when showing the DMARC report stats in the web interface.
@tonioo commented on GitHub (Jul 15, 2025):
@PatTheMav Do you think adding a select field for domain or its aliases in the report page would be fine?
@PatTheMav commented on GitHub (Jul 15, 2025):
I think that should be a good start? It might even work for me if the actual alias domain is shown in the "Detail" pane with the alignment stats combining all reports. Then I'd see at a glance "oh my, there's been 30 reports in the last month for that mail domain" and then see in the details that, say, 15 of those related to an alias alone.
I just checked the database and it seems that most reports are for alias domains, but I had no idea about the severity of it without looking in the DB itself.
@tonioo commented on GitHub (Jul 16, 2025):
I don't understand how reports created for domain aliases can be imported successfully into the database, I think they are not complete. If you look at the dmarc_record table, you should not find any entry linked to those reports...
That being said, you're suggesting to display aggregated stats for a domain and its aliases, and then to have a better detail view?
How would you update the detail view?
@PatTheMav commented on GitHub (Jul 16, 2025):
Thanks for the tip about
dmarc_record, indeed whiledmarc_reportcontains every report received (including the alias domains for which those were received),dmarc_recordonly contains entries for reports using the configured domains. So I read that as the report being processed and logged, but the contents of the report are discarded if thepolicy_domaindoesn't match an actual domain?For how to display this information, it seems that right now the details pane seems to show the
source_ip,count, and the DKIM and SPF results obviously. For me personally it would be sufficient if an additional column specified the associated domain (so either the main domain or one of its associated aliases).