Bug#685157: error: Socket version 1.95 required--this is only version 1.94

gregor herrmann gregoa at debian.org
Fri Aug 17 22:46:00 UTC 2012


On Fri, 17 Aug 2012 23:04:13 +0200, Salvatore Bonaccorso wrote:

> I did only a small test in a minimal wheezy virtual machine installing
> spamass-miter, I installed spamass-milter:
[..]
> After enabling spamd in /etc/default/spamassassin I also restarted all
> affected services, which went fine.

I looked very quickly at the code:
- spamass-milter doesn't look like perl
- spamassassin uses IO::Socket::SSL if the --ssl option is used
  (and I've seen nothing weird in the parts where it's used so far)
 
Ha, I can reproduce it:

- chroot, remove policy-rc.d
- install spamassassin
- in /etc/default/spamassassin: enable, and add --ssl to the options
- start:

# /etc/init.d/spamassassin start
Starting SpamAssassin Mail Filter Daemon: Aug 17 22:24:56.209 [17598] error: Socket version 1.95 required--this is only version 1.94 at /usr/share/perl5/IO/Socket/SSL.pm line 71.
Aug 17 22:24:56.210 [17598] error: Can't locate IO/Socket/IP.pm in @INC (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/share/perl5/IO/Socket/SSL.pm line 85.
Aug 17 22:24:56.210 [17598] error: Can't locate IO/Socket/INET6.pm in @INC (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/share/perl5/IO/Socket/SSL.pm line 91.
Aug 17 22:24:56.227 [17598] error: spamd: server key file /etc/spamassassin/certs/server-key.pem does not exist
spamd: server key file /etc/spamassassin/certs/server-key.pem does not exist

libio-socket-inet6-perl is recommended by spamassassin, so let's add it.

# /etc/init.d/spamassassin start         
Starting SpamAssassin Mail Filter Daemon: Aug 17 22:27:12.657 [19877] error: Socket version 1.95 required--this is only version 1.94 at /usr/share/perl5/IO/Socket/SSL.pm line 71.
Aug 17 22:27:12.657 [19877] error: Can't locate IO/Socket/IP.pm in @INC (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/share/perl5/IO/Socket/SSL.pm line 85.
Aug 17 22:27:12.667 [19877] error: spamd: server key file /etc/spamassassin/certs/server-key.pem does not exist
spamd: server key file /etc/spamassassin/certs/server-key.pem does not exist


Let's try something else; spamd is right that there are no
server-key/cert.pem files; let's create some ...

*some minutes later*

# ls -l /etc/spamassassin/certs/
total 8
-rw------- 1 root root 875 Aug 17 22:39 server-cert.pem
-rw------- 1 root root 963 Aug 17 22:39 server-key.pem
# /etc/init.d/spamassassin start            
Starting SpamAssassin Mail Filter Daemon: Aug 17 22:41:46.184 [32042] error: Socket version 1.95 required--this is only version 1.94 at /usr/share/perl5/IO/Socket/SSL.pm line 71.
so far so good
Aug 17 22:41:46.184 [32042] error: Can't locate IO/Socket/IP.pm in @INC (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/share/perl5/IO/Socket/SSL.pm line 86.
Enter PEM pass phrase:
spamd.
root at jadzia:/# ps ax | grep spamd                    
32059 ?        Ss     0:01 /usr/sbin/spamd --create-prefs --max-children 5 --helper-home-dir --ssl -d --pidfile=/var/run/spamd.pid
32065 ?        S      0:00 spamd child
32066 ?        S      0:00 spamd child
32104 pts/12   S+     0:00 grep spamd



Eh voilà. The errors are just misleading ...


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Kurt Ostbahn & Die Kombo: I brauch kan Dokta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120818/a35dfbce/attachment-0001.pgp>


More information about the pkg-perl-maintainers mailing list