[exim] How to point Exim to a different lookups module direc…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tim Landscheidt
Date:  
À: exim-users
Sujet: [exim] How to point Exim to a different lookups module directory?
Hi,

in Fedora packaging, I want to validate the default
exim.conf by running:

| build-`scripts/os-type`-`scripts/arch-type`/exim -C src/configure.default -bV


This works almost perfectly:

| + build-Linux-x86_64/exim -C src/configure.default -bV
| Exim version 4.92 #3 built 02-Mar-2019 14:40:20
| Copyright (c) University of Cambridge, 1995 - 2018
| (c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2018
| Berkeley DB: Berkeley DB 5.3.28: (September 9, 2013)
| Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc OpenSSL Content_Scanning DKIM DNSSEC Event OCSP PRDR TCP_Fast_Open
| Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm nis nis0 nisplus passwd sqlite
| Authenticators: cram_md5 cyrus_sasl dovecot gsasl plaintext spa tls
| Routers: accept dnslookup ipliteral manualroute queryprogram redirect
| Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
| Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
| Fixed never_users: 0
| Configure owner: 0:0
| Size of off_t: 8
| 2019-03-02 15:35:59 Couldn't open /usr/lib64/exim/4.92-2.fc28/lookups: not loading lookup modules

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Configuration file is src/configure.default
| + exit 0


This warning is benign for my use case, but I'd like to do
it The Right Way™ nonetheless.

I tried setting LD_LIBRARY_PATH to no avail, and looking at
src/src/drtables.c there seems to be no way to override
LOOKUP_MODULE_DIR set at build time.

Is there a way to point Exim to a lookups module directory
different from the one set by LOOKUP_MODULE_DIR? How does
Exim's test suite handle this?

TIA,
Tim