Bug 32832 - postfix Installation issues: permissions warnings, and apparently missing postfix/dict_pcre.so
Summary: postfix Installation issues: permissions warnings, and apparently missing pos...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 32821 32647
Blocks:
  Show dependency treegraph
 
Reported: 2024-02-11 12:20 CET by Marc Krämer
Modified: 2024-02-14 21:41 CET (History)
1 user (show)

See Also:
Source RPM: postfix-3.8.4-1.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Marc Krämer 2024-02-11 12:20:16 CET
Installation of postfix shows some warnings:

ldd: warning: you do not have execution permission for `/var/spool/postfix/lib64/libcap.so.2'
ldd: warning: you do not have execution permission for `/var/spool/postfix/usr/lib64/libcap.so.2.52'
ldd: /usr/lib64/postfix/dict_pcre.so: No such file or directory


I can't see we ship "dict_pcre.so".

ls -la /var/spool/postfix/usr/lib64/libcap.so*
-rw-r--r-- 1 root root 129184 Jun 22  2023 /var/spool/postfix/usr/lib64/libcap.so.2.52

Installed packages:
rpm -qa post*
postgrey-1.37-6.mga9
postfix-3.8.4-1.mga9
postfix-pcre-3.8.4-1.mga9
Marc Krämer 2024-02-11 12:20:33 CET

Depends on: (none) => 32647

Comment 1 Lewis Smith 2024-02-11 20:51:55 CET
https://bugs.mageia.org/show_bug.cgi?id=32647#c18
"For the execution permission, I've seen it before without it stopping postfix
from working properly."

(In reply to Marc Krämer from comment #0)
> I can't see we ship "dict_pcre.so".
[From same URL above]:
"For pcrc, I've never seen it.
See https://unix.stackexchange.com/questions/572243/postfix-pcre-maps-broken-in-rhel8-error-unsupported-dictionary-type-pcre
If you need it for a specific configuration, the postfix-pcre package is
available."

For all pcre, we seem to have:
ambas3-gb-pcre: /usr/lib64/gambas3/gb.pcre.so
lib64pcre1: /usr/lib64/libpcre.so.1
lib64pcre1: /usr/lib64/libpcre.so.1.2.13
lib64pcre-devel: /usr/lib64/libpcre.so
postfix-pcre: /usr/lib64/postfix-pcre.so
postfix-pcre: /usr/lib64/postfix-pcre.so
prelude-lml: /usr/lib64/prelude-lml/pcre.so

Where did you dig up 'dict_pcre.so' ? Is it necessary? The referenced previous bug about the Postfix update had good feedback generally.

CC: (none) => lewyssmith

Comment 2 Marc Krämer 2024-02-12 13:06:31 CET
(In reply to Lewis Smith from comment #1)
> https://bugs.mageia.org/show_bug.cgi?id=32647#c18
> "For the execution permission, I've seen it before without it stopping
> postfix
> from working properly."

It looks like, it does not make problems - but I guess there is a reason for the output and we should correct it, as it might make problems somewhere.

> (In reply to Marc Krämer from comment #0)
> > I can't see we ship "dict_pcre.so".
> [From same URL above]:
> "For pcrc, I've never seen it.
> See
> https://unix.stackexchange.com/questions/572243/postfix-pcre-maps-broken-in-
> rhel8-error-unsupported-dictionary-type-pcre
> If you need it for a specific configuration, the postfix-pcre package is
> available."
Sure, and it is installed! As I use some pcre for filtering mails.

> For all pcre, we seem to have:
> ambas3-gb-pcre: /usr/lib64/gambas3/gb.pcre.so
> lib64pcre1: /usr/lib64/libpcre.so.1
> lib64pcre1: /usr/lib64/libpcre.so.1.2.13
> lib64pcre-devel: /usr/lib64/libpcre.so
> postfix-pcre: /usr/lib64/postfix-pcre.so
> postfix-pcre: /usr/lib64/postfix-pcre.so
> prelude-lml: /usr/lib64/prelude-lml/pcre.so
> 
> Where did you dig up 'dict_pcre.so' ? Is it necessary? The referenced
> previous bug about the Postfix update had good feedback generally.

It was one of the warnings which rise up, when I installed the package. I guess one of those strange startup scripts of postfix emit it.
Comment 3 Marc Krämer 2024-02-14 16:18:05 CET
this is some of the output on install/update of postfix:
     1/19: lib64glapi0           #############################################
     2/19: kernel-server         #############################################
     3/19: xtables-addons-kernel-server-latest
                                 #############################################
     4/19: xtables-addons-kernel-6.6.14-server-2.mga9
                                 #############################################
     5/19: lib64postfix1         #############################################
     6/19: postfix               ############################################warning: /etc/postfix/main.cf created as /etc/postfix/main.cf.rpmnew
#
postfix: Postfix is using backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
ldd: warning: you do not have execution permission for `/var/spool/postfix/lib64/libcap.so.2'
ldd: warning: you do not have execution permission for `/var/spool/postfix/usr/lib64/libcap.so.2.52'
ldd: /usr/lib64/postfix/dict_pcre.so: No such file or directory
Reloading postfix configuration (via systemctl):  Warning: The unit file, source configuration file or drop-ins of postfix.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[  OK  ]
ldd: warning: you do not have execution permission for `/var/spool/postfix/lib64/libcap.so.2'
ldd: warning: you do not have execution permission for `/var/spool/postfix/usr/lib64/libcap.so.2.52'
ldd: /usr/lib64/postfix/dict_pcre.so: No such file or directory
Reloading postfix configuration (via systemctl):  [  OK  ]
Marc Krämer 2024-02-14 16:19:31 CET

Depends on: (none) => 32821

Comment 4 Lewis Smith 2024-02-14 21:41:52 CET
(In reply to Marc Krämer from comment #3)
> ldd: warning: you do not have execution permission for
> `/var/spool/postfix/lib64/libcap.so.2'
> ldd: warning: you do not have execution permission for
> `/var/spool/postfix/usr/lib64/libcap.so.2.52'
> ldd: /usr/lib64/postfix/dict_pcre.so: No such file or directory
>
> ldd: warning: you do not have execution permission for
> `/var/spool/postfix/lib64/libcap.so.2'
> ldd: warning: you do not have execution permission for
> `/var/spool/postfix/usr/lib64/libcap.so.2.52'
> ldd: /usr/lib64/postfix/dict_pcre.so: No such file or directory
These are the essential problem.

For 'dict_pcre.so', I found a couple of old Debian posts which imply that it is installed with/by:
"Looks like PCRE doesn't included by default by Debian maintainer. You have to install it by
apt-get install postfix-pcre
File list of package postfix-pcre in wheezy of architecture amd64
/usr/lib/postfix/dict_pcre.so"

"postmap: warning: unsupported dictionary type: pcre (/usr/lib/postfix/dict_pcre.so: No such file or directory)
-
symlinking postfix-pcre.so.1.0.1 to dict_pcre.so seems to be a temporary workaround"

But Marc has installed postfix-pcre, which looks as if it should include the 'dict_' bit.
We have no sign of 'postfix/dict_pcre.so'

And yes, the permissions warning should be fixed.

Assigning to all packagers, CC'ing Stig who normally updates Postfix versions.

CC: lewyssmith => smelror
Assignee: bugsquad => pkg-bugs
Summary: postfix Installation issues => postfix Installation issues: permissions warnings, and apparently missing postfix/dict_pcre.so


Note You need to log in before you can comment on or make changes to this bug.