PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.imap > UW-IMAP incompatible with latest OpenSSL 0.9.8
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.imap Discussion of IMAP-based mail systems.

UW-IMAP incompatible with latest OpenSSL 0.9.8

Réponse
 
LinkBack Outils de la discussion
Vieux 05/10/2006, 18h47   #1
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut UW-IMAP incompatible with latest OpenSSL 0.9.8

Hi all,
I am trying to compile the latest UW-IMAP with OpenSSL 0.9.8d, but the
compilation fails. However the compilation succeeds with any OpenSSL
version from the 0.9.7x branch. Here is the error produced:

# make slx SSLDIR=/usr/local/openssl098 SSLCERTS=/opt/certs/imap

.....

make[2]: Entering directory `/opt/packages/TARBALLS/imap-2004g/mtest'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o
mtest.o mtest.c
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o
mtest mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
.../c-client/c-client.a(osdep.o)(.text+0x643f): In function
`ssl_onceonlyinit':
/opt/packages/TARBALLS/imap-2004g/c-client/osdep.c:268: warning: the
use of `tmpnam' is dangerous, better use `mkstemp'
mtest.o(.text+0x2e0): In function `smtptest':
/opt/packages/TARBALLS/imap-2004g/mtest/mtest.c:767: warning: the
`gets' function is dangerous and should not be used.
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x27d): In
function `dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x2f9): In
function `dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x36d): In
function `dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x3e1): In
function `dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x44c): In
function `dlfcn_unload':
: undefined reference to `dlclose'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x4f5): In
function `dlfcn_load':
: undefined reference to `dlopen'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x546): In
function `dlfcn_load':
: undefined reference to `dlclose'
/usr/local/openssl098/lib/libcrypto.a(dso_dlfcn.o)(.text+0x56f): In
function `dlfcn_load':
: undefined reference to `dlerror'

  Réponse avec citation
Vieux 05/10/2006, 22h05   #2
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

It isn't an incompatibility. Rather, it looks like OpenSSL 0.9.8d
requires the dl library. Try adding EXTRALDFLAGS=-ldl to your build.

That is, do a "make clean", then rebuild with:
make slx SSLDIR=/usr/local/openssl098 SSLCERTS=/opt/certs/imap EXTRALDFLAGS=-ldl

Also, is slx really the correct build for your system? Most modern Linux
systems use PAM authentication, and thus you should use (at least) lnp for
the build. The dl library *is* included already with lnp builds.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
  Réponse avec citation
Vieux 06/10/2006, 09h29   #3
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

> It isn't an incompatibility. Rather, it looks like OpenSSL 0.9.8d
> requires the dl library. Try adding EXTRALDFLAGS=-ldl to your build.
>
> That is, do a "make clean", then rebuild with:
> make slx SSLDIR=/usr/local/openssl098 SSLCERTS=/opt/certs/imap EXTRALDFLAGS=-ldl
>
> Also, is slx really the correct build for your system? Most modern Linux
> systems use PAM authentication, and thus you should use (at least) lnp for
> the build. The dl library *is* included already with lnp builds.


As you suggest, I tried building imap as 'lnp' instead of 'slx'. The
compilation finishes successfully, without having to include the extra
flags. But now my mail client is unable to authenticate (it says 'login
failure'). Does enabling PAM support require any special configuration
for the system as well?

  Réponse avec citation
Vieux 06/10/2006, 11h18   #4
Sam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

grpprod writes:

>> It isn't an incompatibility. Rather, it looks like OpenSSL 0.9.8d
>> requires the dl library. Try adding EXTRALDFLAGS=-ldl to your build.
>>
>> That is, do a "make clean", then rebuild with:
>> make slx SSLDIR=/usr/local/openssl098 SSLCERTS=/opt/certs/imap EXTRALDFLAGS=-ldl
>>
>> Also, is slx really the correct build for your system? Most modern Linux
>> systems use PAM authentication, and thus you should use (at least) lnp for
>> the build. The dl library *is* included already with lnp builds.

>
> As you suggest, I tried building imap as 'lnp' instead of 'slx'. The
> compilation finishes successfully, without having to include the extra
> flags. But now my mail client is unable to authenticate (it says 'login
> failure'). Does enabling PAM support require any special configuration
> for the system as well?


Yes, you need to configure the imap and pop3 PAM service. See /etc/pam.d



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFJi1mx9p3GYHlUOIRAlIVAJ4w3BO1MauCzUoYWy96ZT +gU+YWFgCfcH69
KqEhEGuve9jZSExLcrdYh9c=
=YIRA
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 06/10/2006, 16h23   #5
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

On Fri, 6 Oct 2006, grpprod wrote:
> As you suggest, I tried building imap as 'lnp' instead of 'slx'. The
> compilation finishes successfully, without having to include the extra
> flags. But now my mail client is unable to authenticate (it says 'login
> failure'). Does enabling PAM support require any special configuration
> for the system as well?


Yes. You need to define imap files in /etc/pam.d. I generally find that
if you don't know how to write a PAM configuration file, it works to copy
the FTP version, e.g., become root, then do
# cd /etc/pam.d
# cp ftpd imap
# cp ftpd pop
[If you're a member of the sudo church, do it the sudo way.]

Of course, it's better to learn what all that stuff in the PAM files mean,
and perhaps tune it for your system. But for busy people in a hurry,
copying this should work.

Note that the PAM file for FTP is called "ftpd", whereas for IMAP it is
called "imap" and for POP3 it is called "pop".

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 06/10/2006, 18h05   #6
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

> Yes. You need to define imap files in /etc/pam.d. I generally find that
> if you don't know how to write a PAM configuration file, it works to copy
> the FTP version, e.g., become root, then do
> # cd /etc/pam.d
> # cp ftpd imap
> # cp ftpd pop
> [If you're a member of the sudo church, do it the sudo way.]
>
> Of course, it's better to learn what all that stuff in the PAM files mean,
> and perhaps tune it for your system. But for busy people in a hurry,
> copying this should work.
>
> Note that the PAM file for FTP is called "ftpd", whereas for IMAP it is
> called "imap" and for POP3 it is called "pop".


Thank you, I will examine all your suggestions. One more thing: How do
I enable imapd's TLS support? I use to run imapd/imapd via xinetd, but
it seems that only SSL in 993 is supported.

  Réponse avec citation
Vieux 06/10/2006, 19h14   #7
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

On Fri, 6 Oct 2006, grpprod wrote:
> Thank you, I will examine all your suggestions. One more thing: How do
> I enable imapd's TLS support? I use to run imapd/imapd via xinetd, but
> it seems that only SSL in 993 is supported.


TLS support is enabled automatically.

TLS does not use port 993 (or other SSL ports in other protocols). It
uses the STARTTLS command on the standard port.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 06/10/2006, 21h13   #8
grpprod
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

> TLS support is enabled automatically.
>
> TLS does not use port 993 (or other SSL ports in other protocols). It
> uses the STARTTLS command on the standard port.
>


I understand, besides I am already using STARTTLS in sendmail. However,
when I change my Thunderbird setting from SSL (993) to TLS (143) it
cannot connect to my server anymore. Perhaps a way to increase the log
level for imapd could . Any suggestion?

  Réponse avec citation
Vieux 06/10/2006, 22h12   #9
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: UW-IMAP incompatible with latest OpenSSL 0.9.8

On Fri, 6 Oct 2006, grpprod wrote:
> I understand, besides I am already using STARTTLS in sendmail. However,
> when I change my Thunderbird setting from SSL (993) to TLS (143) it
> cannot connect to my server anymore. Perhaps a way to increase the log
> level for imapd could . Any suggestion?


Contact me offline from the newsgroup, and tell me the host name of your
server. I'll take a look from my end and tell you what's wrong.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14220 seconds with 17 queries