wrong hard-coded socket location in amavisd-release

Bug #1796546 reported by Dominic Raferd
This bug report is a duplicate of:  Bug #1792293: amavisd-release use wrong socketname. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
amavisd-new (Ubuntu)
Triaged
High
Unassigned

Bug Description

In amavis 2.11 the utility amavisd-release has a hard-coded location for amavisd's unix socket at line 90 as '/var/amavis/amavisd.sock' which is not aligned with the location actually set in /etc/amavis/conf.d/25-amavis_helpers where it is "/var/lib/amavis/amavisd.sock".

This causes amavisd-release to fail when trying to release a quarantined email for delivery.

Changing the hard-coded location in /usr/sbin/amavisd-release at line 90 to match the setting in /etc/amavis/conf.d/25-amavis_helpers fixes the problem.

The previous version of amavis (2.10), used with Ubuntu 16.04, did not have this problem I think. I believe it is new with the version installed (using apt-get) with Ubuntu 18.04 (i.e. 2.11). I have not tested intervening distros.

This bug is an incompatibility between the setting in debian package of amavis 2.11 which has:

/etc/amavis/conf.d/25-amavis_helpers at line 25:
    $unix_socketname = "/var/lib/amavis/amavisd.sock";
/usr/sbin/amavisd-release at line 90:
    $socketname = '/var/amavis/amavisd.sock';

As directory /var/amavis does not exist, the only realistic solution is to change the setting in amavisd-release.

The problem arises because in Debian (and hence Ubuntu), $MYHOME is hard-coded to /var/lib/amavis whereas in the default installation, it is /var/amavis. And amavisd-release does not seem to use the $MYHOME setting.

Robie Basak (racb)
Changed in amavisd-new (Ubuntu):
status: New → Triaged
importance: Undecided → High
tags: added: bitesize server-next
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.