Public bug reported:

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.

** Affects: amavisd-new (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1796546

Title:
  wrong hard-coded socket location in amavisd-release

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/amavisd-new/+bug/1796546/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to