Syslog spammed with "domain is utf8 flagged"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
* An issue fixed upstream in later releases can cause issues with UTF
emails
* backport the upstream fix to stable supported releases to avoid log
flooding with related error messages.
[Test Case]
* using a test mail attached on this bug:
$ apt install spamassassin
$ systemctl start spamassassin
$ wget https:/
$ spamc -R < bug1862154.eml
$ grep "domain is utf8 flagged" /var/log/mail.log
If still affected this will add some lines to the log, otherwise it won't.
[Regression Potential]
* The change is fortunately minimal (one line) and only changes the
output severity to not pop up in the logs.
The one risk I can think of is people expecting this output, but I
can't think of a useful real case for this.
[Other Info]
* n/a
---
Seems that https:/
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
# apt-cache policy spamassassin
spamassassin:
Installed: 3.4.2-0ubuntu0.
Candidate: 3.4.2-0ubuntu0.
I am seeing *lots* of info logs for every email:
Feb 6 07:30:26 spam02a spamd[11370]: dns: new_dns_packet: domain is utf8 flagged: grace.ns.
Feb 6 07:30:26 spam02a spamd[11370]: dns: new_dns_packet: domain is utf8 flagged: sid.ns.
Feb 6 07:30:26 spam02a spamd[11370]: dns: new_dns_packet: domain is utf8 flagged: ns1.silverpop.com
SpamAssassin/
---8<---
if (utf8::
info("dns: new_dns_packet: domain is utf8 flagged: %s", $domain);
}
---8<---
This should be a dbg flag - this is fixed in Spamassassin 3.4.4 upstream - could we have a backport for this current version of 3.4.2?
Related branches
- Bryce Harrington (community): Approve
- Canonical Server: Pending requested
- Marc Deslauriers: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 62 lines (+40/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp-1862154-Change-an-info-message-into-a-debug-message-not-usef.patch (+32/-0)
debian/patches/series (+1/-0)
- Bryce Harrington (community): Needs Information
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 62 lines (+40/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp-1862154-Change-an-info-message-into-a-debug-message-not-usef.patch (+32/-0)
debian/patches/series (+1/-0)
- Bryce Harrington (community): Needs Information
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 62 lines (+40/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp-1862154-Change-an-info-message-into-a-debug-message-not-usef.patch (+32/-0)
debian/patches/series (+1/-0)
$ git show pkg/ubuntu/ bionic- devel:lib/ Mail/SpamAssass in/DnsResolver. pm | grep "domain is utf8 flagged"
info("dns: new_dns_packet: domain is utf8 flagged: %s", $domain);
$ git show pkg/ubuntu/ eoan-devel: lib/Mail/ SpamAssassin/ DnsResolver. pm | grep "domain is utf8 flagged"
info("dns: new_dns_packet: domain is utf8 flagged: %s", $domain);
$ git show pkg/ubuntu/ focal-devel: lib/Mail/ SpamAssassin/ DnsResolver. pm | grep "domain is utf8 flagged"
dbg("dns: new_dns_packet: domain is utf8 flagged: %s", $domain);
Upstream change is: /github. com/apache/ spamassassin/ commit/ bdacc776ccbfded ee7f1e8175a333d 9e419d4426
https:/