[Mailmunge] Installation under /usr/local

Mail administrator, Otto Makela mailadm at csc.fi
Wed Aug 9 11:55:22 EDT 2023


Sorry for writing to the mailing list, is there a bug tracker or similar?

It seems that if you install mailmunge-3.12 from scratch on a machine
without any local perl modules yet, "make install" will create an
installation under /usr/local that is only be accessible to root?

[root at smtp3 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.8 (Ootpa)

[root at smtp3 ~]# uname -a
Linux smtp3.csc.fi 4.18.0-477.15.1.el8_8.x86_64 #1 SMP Fri Jun 2 08:27:19 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux

[root at smtp3 ~]# ls -la /usr/local/share/perl5 /usr/local/lib64/perl5
/usr/local/lib64/perl5:
total 0
drwxr-x---. 3 root root 18 Aug  9 17:00 .
drwxr-xr-x. 4 root root 30 Aug  9 17:00 ..
drwxr-x---. 3 root root 23 Aug  9 17:00 auto

/usr/local/share/perl5:
total 12
drwxr-x---. 4 root root    55 Aug  9 17:00 .
drwxr-xr-x. 6 root root    62 Aug  9 17:00 ..
drwxr-x---. 5 root root   167 Aug  9 17:00 Mailmunge
-r--r--r--. 1 root root 10033 Aug  9 17:00 Mailmunge.pm
drwxr-x---. 3 root root    23 Aug  9 17:00 Test

This for example makes "make tests" fail when trying to load
perl modules when run as non-root (as one is supposed to):

[mailmunge at smtp3 mailmunge-3.12]$ make test
make -C c all
make[1]: Entering directory '/home/mailmunge/mailmunge-3.12/c'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mailmunge/mailmunge-3.12/c'
make -C perl
make[1]: Entering directory '/home/mailmunge/mailmunge-3.12/perl'
Can't locate ExtUtils/Command/MM.pm:   /usr/local/lib64/perl5/ExtUtils/Command/MM.pm: Permission denied.
BEGIN failed--compilation aborted.
make[1]: *** [Makefile:487: manifypods] Error 13
make[1]: Leaving directory '/home/mailmunge/mailmunge-3.12/perl'
make: *** [Makefile:55: perl/blib/lib/Mailmunge.pm] Error 2



PS. I don't seem to be able to find in the installation
     instructions very much about setting up desired policies in
     /etc/mailmunge/mailmunge-filter.pl, though the sample file
     given explicitly says don't use it without doing that?

-- 
mailadm at csc.fi (Mail Administrator, Otto J. Makela)


More information about the Mailmunge mailing list