Jean,

On Friday, March 27, 2026 1:48:43 AM Mountain Standard Time Jean Louis wrote:
> Trying to use courier-webadmin, I have discovered following:
> 
> Courier-WebAdmin Script Path Issue
> 
> Problem Overview
> ----------------
> 
> The `courier-imap` and `courier-mta` packages ship incorrect script paths in
> `/usr/share/courier/webadmin/` files.

Thanks for the detailed bug report.

> Files Affected
> --------------
> 
> - `admin-40aliases.pl` → references `/usr/sbin/makehosteddomains` (should be
> `/usr/sbin/makehosteddomains` ✓)

I cannot find this file in any Debian package.  I do not know where it came 
from on your system.

https://packages.debian.org/search?
searchon=contents&keywords=admin-40aliases.pl&mode=exactfilename&suite=stable&arch=any

> - `admin-40imap.pl` → references
> `$sbindir/imapd-ssl` which resolves to `/usr/sbin/imapd-ssl` (should be
> `/usr/lib/courier/imapd-ssl`)

I will fix this problem with the following patch, which will shortly be 
applied to the versions in both unstable and stable.

https://salsa.debian.org/debian/courier/-/blob/master/debian/patches/adjust-webadmin-scripts.patch?ref_type=heads

> Cause
> -----
> 
> Debian moved courier scripts from `/usr/sbin/` to `/usr/lib/courier/` but 
the
> webadmin Perl templates weren't updated.

The background behind this is that courier ships a compiled imapd binary to /
usr/bin/ and links for imapd and imapd-ssl in /usr/sbin/ to scripts located in 
/usr/lib/courier/.  This becomes problematic when /usr/bin/ and /usr/sbin/ are 
combined, because of the collision in the two instances of imapd.

The solution was to remove the links from /usr/sbin/.  There is more 
information about this change at:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064787

Even thought I tried to be careful, I did not catch that this webadmin script 
broke with that change.

-- 
Soren Stoutner
[email protected]

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to