amavisd-release use wrong socketname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
amavisd-new (Debian) |
Fix Released
|
Unknown
|
|||
amavisd-new (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Debian changed the default path of the amavisd socket and also updated
some tools defaults (see debian/
forgot others like amavisd-release.
* Fix the expected default path to make the config as installed by
default work
[Test Case]
* install amavisd-new
* run the command (--help is enough, no need to think about arguments too
much)
$ amavisd-release --help
Can't connect to UNIX socket /var/amavis/
or directory at /usr/sbin/
* With the fix the socket (at /var/lib/
found correctly
[Regression Potential]
* Formerly the tool was not working, so there isn't a lot to regress with
the change. It sets a default config that was wrong to one that matches
the default path - it only affects the release command.
Only if people manually modified the code the update (as with any
modification to non conffile) throw away their changes - not a
regression to stop this IMHO.
[Other Info]
* n/a
---
In amavisd-release $socketname is set to '/var/amavis/
by default.
please fix it to the correct /var/lib/
after fixing to /var/lib/
we did upgrade from 16.04 LTS ->18.04 LTS before we run into the bug.
Related branches
- Andreas Hasenack: Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 80 lines (+52/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/100_more_amavisd_helpers_fixes (+19/-0)
debian/patches/105_amavisd_fix_originating_dkim_signing.patch (+22/-0)
debian/patches/series (+2/-0)
- Robie Basak: Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 80 lines (+52/-0)4 files modifieddebian/changelog (+9/-0)
debian/patches/100_more_amavisd_helpers_fixes (+19/-0)
debian/patches/105_amavisd_fix_originating_dkim_signing.patch (+22/-0)
debian/patches/series (+2/-0)
description: | updated |
Changed in amavisd-new (Ubuntu Bionic): | |
assignee: | nobody → Christian Ehrhardt (paelzer) |
status: | Triaged → In Progress |
Changed in amavisd-new (Debian): | |
status: | Unknown → Fix Released |
Confirmed, code defaults to amavis/ amavisd. sock lib/amavis/ amavisd. sock
/var/
And the socket actually is
/var/
$ amavisd-release --help amavisd. sock: No such file or directory at /usr/sbin/ amavisd- release line 271.
Can't connect to UNIX socket /var/amavis/
But should that not be covered by the conffile: amavis/ conf.d/ 25-amavis_ helpers: $unix_socketnam e = "/var/lib/ amavis/ amavisd. sock";
/etc/
It even says
## Functionality required for amavis helpers like
## amavis-release.
The main service reads that config, and I wonder if it might pass it along to the amavisd-release.
One that is more "pearl'y" than me might see that, but no matter how that is supposed to work it won't hurt to fix the default path.