I just upgraded a Debian Lenny box to Wheezy, and found that suidperl is gone. Googling reveals that the upstream maintainers removed it;
I need suidperl to run our mail installation, Open Webmail.
I don't have time for this.
Googling reveals no simple workarounds.
Does anyone here know how to get suidperl on wheezy? Simply? Thanks.
Bottom line: If you have no time for this then you need to revert to your pre-upgrade system snapshot/backup until you do have time to migrate to a webmail system that does not recommend use of deprecated technology.
As far as I recall (it's been probably 8 years since I've seen an open webmail install), open webmail reads mail spools directly (hence the need for suid) whereas most webmail systems interact with an IMAP server instead (pushing the need for suid to the mailserver, where it belongs).
As far as I can tell, suidperl was removed in perl 5.12 back in 2008(?) because nobody at the upstream level (ie: above Debian) wanted to maintain it - or in other words, suidperl no longer exists anywhere. The only reason you've been lucky to have it so long is because Debian stable uses fairly old versions of most software (with backported security fixes). It's certainly not Debian's fault that it's no longer in existence.
If you really really want to keep using open webmail on wheezy and newer for some reason, your only option is to follow the Open Webmail FAQ section 4:e (ps, ps) at http://openwebmail.org/openwebmail/doc/faq.txt which states:
Sorry for the bad news, but sometimes there are no good answers :\
I got openwebmail 2.53+ working with speedy AND the c-wrappers:
1 - download the speedy 2.22 sources from http://daemoninc.com/SpeedyCGI/download.html
2 - extract the tar.gz and edit this for compiling:
/src/speedy_backend_main.h:
-#define speedy_new(s,n,t) New(123,s,n,t)
+#define speedy_new(s,n,t) Newx(s,n,t)
(http://sourceforge.net/p/speedycgi/bugs/91/#7fc6)
3 - perl Makefile.PL; make; make install (don't bother adding the -DIAMSUID)
4 - change the #! line on your openwebmail*.pl to
/usr/bin/speedy -- -T/tmp/speedy
5 - on your openwebmail*.pl directory, run the c wrapper script (change the dir accordingly):
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/owtest/cgi-bin/openwebmail
6 - chmod u+s openwebmail*pl
That worked on my squeeze server (I'm preparing to upgrade to wheezy, so I'll need that working).
(please note that my openwebmail 2.53 is not the stock 2.53, but probably something between that and 3beta, but it should work for both)
Thanks for all the prescriptions, hints, and help.
Both Speedy and suid work here fine on a recent Debian8 (Jessie) 64 bit install! On the fresh Debian8 install on a VirtualPrivateServer I also needed to get pam authentication going:
What was needed in addition was
chmod 2750
for all the files in all the.openwebmail/db
directories.Otherwise the
openwebmail/shares/maildb.pl
script complains about not being able to open the databases.Other than that all seems to work fine!