Majordomo fails on perl >5.14 (patch available)

frop

New member
Joined
May 9, 2013
Messages
2
Hi all,

DirectAdmin still ships with Majordomo for mailing list support. I've seen many votes/discussions to replace it, but fact is - it's still the default.

There is a common problem with Majordomo on Perl installations with version higher than 5.14 as deprecated libraries (getopts.pl and ctime.pl) were removed.
As more and more distributions ship with the newer Perl version, this immediately leads to errors like:
Code:
Can't locate getopts.pl in @INC (@INC contains: /usr/local/lib/perl5/5.16/BSDPAN
	+/usr/local/lib/perl5/site_perl/5.16/mach /usr/local/lib/perl5/site_perl/5.16
	+/usr/local/lib/perl5/5.16/mach /usr/local/lib/perl5/5.16 .) at
	+/usr/local/majordomo/resend line 74.
	554 5.3.0 unknown mailer error 2

The good news is: I've just found a set of patches, created by the FreeBSD team:
http://svnweb.freebsd.org/ports?view=revision&revision=334732

Can I ask these patches to be included in the next DA version for Majordomo?

Cheers,
Stijn.
 
Ah, excellent find, thank you! :)

I've added all patches, and created this file:
http://files1.directadmin.com/services/es_7.0_64/majordomo-1.94.5-patched.tar.gz

Looking at the exim.sh, it extracts majordomo*.tar.gz, so we're able to simply swap out the tar.gz files in the services.tar.gz.
New installs of CentOS 7 64-bit should now have a functioning majordomo.

For existing CentOS 7 installs, to get the patched version, type:
Code:
cd /usr/local/directadmin/scripts/packages
/bin/rm -rf majordomo-1.94.5*
wget http://files1.directadmin.com/services/es_7.0_64/majordomo-1.94.5-patched.tar.gz
tar xvzf majordomo-1.94.5-patched.tar.gz
cd ..
./majordomo.sh

Thanks!
John
 
We're seeing this same problem now on some Debian 9 servers. Was this fix only made for CentOS?
 
Back
Top