Paul
2006-Aug-18 14:42 UTC
[Dovecot] Beginner Help with a fatal error in a first Basic Install
dovecot at dovecot.org Hello, I have been doing my first BasicInstall of Dovecot, following the documentation for VirtualUsers, and piecing together suggestions from other on the list, and out on the web. In dovecot.conf, I have added, default_mail_env maildir:/var/Dovecot/%d/Accounts/%1u/%u/Maildir:INDEX=/var/Dovecot/indexes/%d/%n auth default { mechanisms = plain user = pgnmail passdb passwd-file { args = /etc/imap.passwd } userdb static { args = static uid=99 gid=99 home=/var/Dovecot mail=maildir:%h/%d/Accounts/%1u/%u nice=10 } } My User+Passwd DB file is /etc/imap.passwd paulg:{PLAIN}testpass:99:99::/var/Dovecot/domain.com/Accounts/t/paulg::: On Dovecot startup, my log shows, dovecot: Aug 18 07:10:40 Info: Dovecot v1.1.UNSTABLE starting up dovecot: Aug 18 07:10:42 Info: auth(default): passwd-file /etc/imamp.passwd: Read 1 users When I telnet in, I see, Connected to domain.com. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN] domain.com Dovecot IMAP4 ready and when I login with, x login testuser testpass I see, dovecot: Aug 18 07:06:50 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=192.168.1.6 rip=192.168.1.6resp=<hidden> dovecot: Aug 18 07:06:50 Info: auth(default): client out: OK 1 user=paulg dovecot: Aug 18 07:06:50 Info: auth(default): master in: REQUEST 3 14946 1 dovecot: Aug 18 07:06:50 Info: auth(default): master out: USER 3 paulg static uid=99 gid=99 home=/var/Dovecot mail=maildir://Accounts/t/paulg nice=10 dovecot: Aug 18 07:06:50 Info: imap-login: Login: user=<paulg>, method=PLAIN, rip=192.168.1.6, lip=192.168.1.6, secured dovecot: Aug 18 07:06:50 Error: IMAP(paulg): dyld: Library not loaded: /usr/local/ssl/lib/libssl.0.9.8.dylib dovecot: Aug 18 07:06:50 Error: IMAP(paulg): Referenced from: /usr/local/dovecot/libexec/dovecot/imap dovecot: Aug 18 07:06:50 Error: IMAP(paulg): Reason: image not found dovecot: Aug 18 07:06:51 Error: child 14963 (imap) killed with signal 5 I'm concerned about the "//" in, mail=maildir://Accounts/t/paulg Is that correct? And, of course, the, dovecot: Aug 18 07:06:50 Error: IMAP(paulg): dyld: Library not loaded: /usr/local/ssl/lib/libssl.0.9.8.dylib which I have no idea about. Looking at the libraries linked into the "/usr/local/dovecot/libexec/dovecot/imap" executable, I see /usr/local/ssl/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/local/ssl/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.6) And, seeing if "/usr/local/ssl/lib/libssl.0.9.8.dylib", exists, ls /usr/local/ssl/lib/libssl.0.9.8.dylib /usr/local/ssl/lib/libssl.0.9.8.dylib Can someone help? Thank you. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20060818/c476f146/attachment-0001.html>
OpenMacNews
2006-Aug-20 02:36 UTC
[Dovecot] (workaround) Re: Beginner Help with a fatal error in a first Basic Install
paul,> dovecot: Aug 18 07:06:50 Error: IMAP(paulg): dyld: Library not loaded: > /usr/local/ssl/lib/libssl.0.9.8.dylibi've had these same can't-find-libssl-even-though-i'm-staring-right-at-it probelms in dovecot. after a little poking in code, i note that dovecot check first to get its ssl lib/include link info from pkg-config, and seems to get flustered by the presence of your own LDFLAGS/CPPFLAGS specification of ssl location. that said, i've managed to work around it fairly simply. do this: install pkg-config (ver > 0.9; current release @ v0.21) set your ENV var PKG_CONFIG_PATH = wherever you keep your pkg-config *.pc config files. e.g., mine is: % echo $PKG_CONFIG_PATH /usr/local/X11R6/lib/pkgconfig/:/usr/X11R6/lib/pkgconfig/:/usr/local/lib/pkgconfig now, make sure that pkgconfig can find YOUR openssl's .pc files, by either (a) adding their location to the PKG_CONFIG_PATH, or (b) cp'ing the files into it. in my case, i did: cp /usr/local/openssl/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/ now, check to be sure, that grep Version /usr/local/lib/pkgconfig/openssl.pc Version: 0.9.8b grep prefix /usr/local/lib/pkgconfig/openssl.pc prefix=/usr/local/openssl and, pkg-config --libs openssl reports: -Wl,-search_paths_first -L/usr/local/openssl/lib -L/usr/local/lib -lssl -lcrypto -lz or whatever is appropriate for your ssl install path. finally, REMOVE ssl lib/include specs from your config ENV, namely: --- LDFLAGS=" ... /install/path/to/openssl/lib -lssl -lcrypto ..." --- CPPFLAGS+"... /install/path/to/openssl/include ..." gets changed to: +++ LDFLAGS=" ... ..." +++ CPPFLAGS+"... ..." now, 'make distclean', reconfig & rebuild ... and your "ssl not-found" problems should go away. hth, richard