Re: [exim] exim-4.80.1 installtion issues.

Top Page
Delete this message
Reply to this message
Author: Prashanth Katuri
Date:  
To: Ian Eiloart
CC: exim-users@exim.org
Subject: Re: [exim] exim-4.80.1 installtion issues.
Ian,

Thank you for your reply.

I have managed to install exim-4.80.1 successfully.

But when doing some tests it is failing when doing lookups using ldapm. Not sure if any libraries are missing in this installation. Please assist.

Eg:

exim -C dgs.exim -d+lookup -bt pkaturi@???
Exim version 4.80.1 uid=25122 gid=1 pid=7790 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
Support for: crypteq iconv() Perl DKIM
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch dbm dbmjz dbmnz ldap ldapdn ldapm
Authenticators: plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Fixed never_users: 0
Size of off_t: 4
Compiler: GCC [3.4.6]
Library version: PCRE: Compile: 8.32
                       Runtime: 8.32 2012-11-30
Total 10 lookups
WHITELIST_D_MACROS unset
TRUSTED_CONFIG_LIST: "/usr/exim/trusted_configs"
changed uid/gid: -C, -D, -be or -bf forces real uid
  uid=25122 gid=1 pid=7790
  auxiliary group list: 1 6
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is dgs.exim
log selectors = 00000ffc 00212001
Starting Perl interpreter
admin user
changing group to 6 failed: Not owner
originator: uid=25122 gid=1 login=pkaturi name=
sender address = pkaturi@???
Address testing: uid=25122 gid=1 euid=25122 egid=1

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing pkaturi@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering pkaturi@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing pkaturi@???
--------> dnslookup router <--------
local_part=pkaturi domain=slb.com
checking domains
slb.com in "@ : slb.com : westerngeco.com # SLB CHANGE"? yes (matched "slb.com")
slb.com in "! +local_domains"? no (matched "! +local_domains")
dnslookup router skipped: domains mismatch
--------> system_aliases router <--------
local_part=pkaturi domain=slb.com
calling system_aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="pkaturi" partial=-1 affix=NULL starflags=0
LRU list:
7/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="pkaturi"
file lookup required for pkaturi
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for pkaturi@???
--------> userforward router <--------
local_part=pkaturi domain=slb.com
checking for local user
seeking password data for user "pkaturi": cache not available
getpwnam() succeeded uid=25122 gid=1
calling userforward router
rda_interpret (file): $home/.forward
expanded: /home/pkaturi/.forward
stat(/home/pkaturi/.)=0
/home/pkaturi/.forward does not exist
userforward router declined for pkaturi@???
--------> insane_address router <--------
local_part=pkaturi domain=slb.com
checking "condition"
insane_address router skipped: condition failure
--------> wg_aliasuser router <--------
local_part=pkaturi domain=slb.com
checking domains
slb.com in "westerngeco.com"? no (end of list)
wg_aliasuser router skipped: domains mismatch
--------> slb_aliasuser router <--------
local_part=pkaturi domain=slb.com
checking domains
slb.com in "slb.com"? yes (matched "slb.com")
checking "condition"
search_open: ldap "NULL"
search_find: file="NULL"
key="ldap:///o=slb,c=an?alias,mail,cn,ou,telephonenumber,o?sub?(&(mail=*)(alias=pkaturi))" partial=-1 affix=NULL starflags=0
LRU list:
7/etc/aliases
End
internal_search_find: file="NULL"
type=ldap key="ldap:///o=slb,c=an?alias,mail,cn,ou,telephonenumber,o?sub?(&(mail=*)(alias=pkaturi))"
database lookup required for ldap:///o=slb,c=an?alias,mail,cn,ou,telephonenumber,o?sub?(&(mail=*)(alias=pkaturi))
LDAP parameters: user=NULL pass=NULL size=0 time=0 connect=0 dereference=0 referrals=on
perform_ldap_search: ldap URL = "ldap:///o=slb,c=an?alias,mail,cn,ou,telephonenumber,o?sub?(&(mail=*)(alias=pkaturi))" server=gb0882ldaptst00.ldap.slb.com port=390 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=o=slb,c=an port=2510880
Bus Error


I have defined below in the exim.conf file:

ldap_default_servers = "gb0882ldaptst00.ldap.slb.com::390"


LDAP_URL = ldap:///o=slb,c=an?alias,mail,cn,ou,telephonenumber,o?sub?
 MAIL_ALIAS_MATCH = &(mail=*)(alias=${perl{punc_to_dash}{$local_part}})
 MAIL_SN_MATCH    = &(mail=*)(|(sn=$local_part)(cn=${perl{punc_to_spc}{$local_part}}))
 MAIL_CN_MATCH    = &(mail=*)${perl{cn_match}{$local_part}}
 PERSON_ALIAS_MATCH = &(objectclass=person)(alias=${perl{punc_to_dash}{$local_part}})
 PERSON_SN_MATCH    = &(objectclass=person)(|(sn=$local_part)(cn=${perl{punc_to_spc}{$local_part}}))
 PERSON_CN_MATCH    = &(objectclass=person)${perl{cn_match}{$local_part}}
 ALIAS_MATCH = alias=${perl{punc_to_dash}{$local_part}}
 CN_MATCH    = ${perl{cn_match}{$local_part}}
 WG_MAIL_ALIAS = &(ou=westerngeco)(mail=*)(alias=${perl{punc_to_dash}{$local_part}})
 WG_MAIL_SN    = &(ou=westerngeco)(mail=*)(|(sn=$local_part)(cn=${perl{punc_to_spc}{$local_part}}))
 WG_MAIL_CN    = &(ou=westerngeco)(mail=*)${perl{cn_match}{$local_part}}
 WG_PERSON_ALIAS = &(ou=westerngeco)(objectclass=person)(alias=${perl{punc_to_dash}{$local_part}})
 WG_PERSON_SN    = &(ou=westerngeco)(objectclass=person)(|(sn=$local_part)(cn=${perl{punc_to_spc}{$local_part}}))
 WG_PERSON_CN    = &(ou=westerngeco)(objectclass=person)${perl{cn_match}{$local_part}}
 WG_ALIAS = &(ou=westerngeco)(alias=${perl{punc_to_dash}{$local_part}})
 WG_CN    = &(ou=westerngeco)(${perl{cn_match}{$local_part}})



wg_aliasuser:
  driver = redirect
  allow_defer
  allow_fail
  condition = "${perl{ldap_who} \
    {${lookup ldapm {LDAP_URL(WG_MAIL_ALIAS)}{$value}     \
    {${lookup ldapm {LDAP_URL(WG_MAIL_SN)}   {$value}     \
    {${lookup ldapm {LDAP_URL(WG_MAIL_CN)}   {$value}     \
    {${lookup ldapm {LDAP_URL(WG_PERSON_ALIAS)}{$value}    \
    {${lookup ldapm {LDAP_URL(WG_PERSON_SN)}{$value}    \
    {${lookup ldapm {LDAP_URL(WG_PERSON_CN)}{$value}    \
    {${lookup ldapm {LDAP_URL(WG_ALIAS)}{$value}    \
    {${lookup ldapm {LDAP_URL(WG_CN)}{$value}    \
    {DUNNO}}}}}}}}}}}}}}}}}}"
  data = ${perl{new_address}}
  domains = westerngeco.com
  headers_add = "X-LDAP-To: V LDAP_ALIAS_VERSION. Sent to $local_part@$domain resolving to ${perl{new_address}}"
  retry_use_local_part


slb_aliasuser:
  driver = redirect
  allow_defer
  allow_fail
  condition = "${perl{ldap_who} \
    {${lookup ldap {LDAP_URL(MAIL_ALIAS_MATCH)}{$value}     \
    {DUNNO}}}}"
  data = ${perl{new_address}}
#data=PKaturi@???
  domains = slb.com
  headers_add = "X-LDAP-To: V LDAP_ALIAS_VERSION. Sent to $local_part@$domain resolving to ${perl{new_address}}"
  retry_use_local_part




-----Original Message-----
From: Ian Eiloart [mailto:iane@sussex.ac.uk]
Sent: Friday, July 26, 2013 6:42 AM
To: Prashanth Katuri
Cc: exim-users@???
Subject: Re: [exim] exim-4.80.1 installtion issues.


On 25 Jul 2013, at 19:03, Prashanth Katuri <PKaturi@???> wrote:

> Hi,
>
> I am trying to install exim-4.80.1 and i see the error while running make.


It says "ld: warning: file libsasl2.so.2: required by /usr/local/lib/libldap.so, not found". Do you have libsasl2.so.2? If so, check that your include paths point to it.


> [code]make
>>>> New Makefile & lookups/Makefile.predynamic installed Use "make
>>>> makefile" if you need to force rebuilding of the makefile
> make[1]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc'
> /bin/sh ../scripts/Configure-config.h "make"
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc'
> make[2]: `buildconfig' is up to date.
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc'
> Building configuration file config.h
>>>> config.h built
>
>>>> version 4.80.1 #17
>
>>>> exicyclog script built
>>>> exinext script built
>>>> exiwhat script built
>>>> exigrep script built
>>>> eximstats script built
>>>> exipick script built
>>>> exiqgrep script built
>>>> exiqsumm script built
>>>> transport-filter.pl script built
>>>> convert4r3 script built
>>>> convert4r4 script built
>>>> exim_checkaccess script built
>
> gcc exim_dbmbuild.c
> gcc -o exim_dbmbuild
>>>> exim_dbmbuild utility built
> gcc -DEXIM_DUMPDB exim_dbutil.c
> gcc -DCOMPILE_UTILITY os.c
> gcc -DCOMPILE_UTILITY store.c
> gcc -o exim_dumpdb
>>>> exim_dumpdb utility built
> gcc -DEXIM_FIXDB exim_dbutil.c
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/auths'
> gcc auth-spa.c
> gcc b64decode.c
> gcc b64encode.c
> gcc call_pam.c
> gcc call_pwcheck.c
> gcc call_radius.c
> gcc check_serv_cond.c
> gcc cram_md5.c
> gcc cyrus_sasl.c
> gcc dovecot.c
> gcc get_data.c
> gcc get_no64_data.c
> gcc gsasl_exim.c
> gcc heimdal_gssapi.c
> gcc md5.c
> gcc plaintext.c
> gcc pwcheck.c
> gcc sha1.c
> gcc spa.c
> gcc xtextdecode.c
> gcc xtextencode.c
> ar cq auths.a
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/auths'
> gcc -o exim_fixdb
>>>> exim_fixdb utility built
> gcc -DEXIM_TIDYDB exim_dbutil.c
> gcc -o exim_tidydb
>>>> exim_tidydb utility built
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/lookups'
> gcc dbmdb.c
> gcc lsearch.c
> gcc ldap.c
> gcc spf.c
> ar cq lookups.a
> gcc lf_quote.c
> gcc lf_check_file.c
> gcc lf_sqlperform.c
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/lookups'
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/routers'
> gcc accept.c
> gcc dnslookup.c
> gcc ipliteral.c
> gcc iplookup.c
> gcc manualroute.c
> gcc queryprogram.c
> gcc redirect.c
> gcc rf_change_domain.c
> gcc rf_expand_data.c
> gcc rf_get_errors_address.c
> gcc rf_get_munge_headers.c
> gcc rf_get_transport.c
> gcc rf_get_ugid.c
> gcc rf_lookup_hostlist.c
> gcc rf_queue_add.c
> gcc rf_self_action.c
> gcc rf_set_ugid.c
> ar cq routers.a
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/routers'
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/transports'
> gcc appendfile.c
> gcc autoreply.c
> gcc lmtp.c
> gcc pipe.c
> gcc smtp.c
> gcc tf_maildir.c
> ar cq transports.a
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/transports'
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/auths'
> make[2]: `auths.a' is up to date.
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/auths'
> make[2]: Entering directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/pdkim'
> gcc base64.c
> gcc bignum.c
> gcc pdkim.c
> gcc rsa.c
> gcc sha1.c
> gcc sha2.c
> ar cq pdkim.a
> make[2]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc/pdkim'
> gcc acl.c
> gcc child.c
> gcc crypt16.c
> gcc daemon.c
> gcc dbfn.c
> gcc debug.c
> gcc deliver.c
> gcc directory.c
> gcc dns.c
> gcc drtables.c
> gcc enq.c
> gcc exim.c
> gcc expand.c
> gcc filter.c
> gcc filtertest.c
> gcc globals.c
> gcc dkim.c
> gcc header.c
> gcc host.c
> gcc ip.c
> gcc log.c
> gcc lss.c
> gcc match.c
> gcc moan.c
> gcc os.c
> gcc parse.c
> gcc queue.c
> gcc rda.c
> gcc readconf.c
> gcc receive.c
> gcc retry.c
> gcc rewrite.c
> gcc rfc2047.c
> gcc route.c
> gcc search.c
> gcc sieve.c
> gcc smtp_in.c
> gcc smtp_out.c
> gcc spool_in.c
> gcc spool_out.c
> gcc std-crypto.c
> gcc store.c
> gcc string.c
> gcc tls.c
> gcc tod.c
> gcc transport.c
> gcc tree.c
> gcc verify.c
> gcc lookups/lf_quote.c
> gcc lookups/lf_check_file.c
> gcc lookups/lf_sqlperform.c
> gcc local_scan.c
> gcc perl.c
> gcc malware.c
> gcc mime.c
> gcc regex.c
> gcc spam.c
> gcc spool_mbox.c
> gcc demime.c
> gcc bmi_spam.c
> gcc spf.c
> gcc srs.c
> gcc dcc.c
> gcc version.c
> gcc -o exim
> ld: warning: global symbol '_END_' has non-global binding:
>        (file /usr/local/lib/libldap.so value=LOCL);
> ld: warning: global symbol '_START_' has non-global binding:
>        (file /usr/local/lib/libldap.so value=LOCL);
> ld: warning: global symbol '_END_' has non-global binding:
>        (file /usr/local/lib/liblber.so value=LOCL);
> ld: warning: global symbol '_START_' has non-global binding:
>        (file /usr/local/lib/liblber.so value=LOCL);
> ld: warning: file libsasl2.so.2: required by /usr/local/lib/libldap.so, not found
> Undefined                       first referenced
> symbol                             in file
> sasl_errdetail                      /usr/local/lib/libldap.so
> sasl_errstring                      /usr/local/lib/libldap.so
> sasl_client_new                     /usr/local/lib/libldap.so
> sasl_decode                         /usr/local/lib/libldap.so
> sasl_encode                         /usr/local/lib/libldap.so
> sasl_client_step                    /usr/local/lib/libldap.so
> sasl_client_init                    /usr/local/lib/libldap.so
> sasl_getprop                        /usr/local/lib/libldap.so
> sasl_version                        /usr/local/lib/libldap.so
> sasl_global_listmech                /usr/local/lib/libldap.so
> sasl_client_start                   /usr/local/lib/libldap.so
> sasl_setprop                        /usr/local/lib/libldap.so
> sasl_dispose                        /usr/local/lib/libldap.so
> ld: fatal: symbol referencing errors. No output written to exim
> collect2: ld returned 1 exit status
> make[1]: *** [exim] Error 1
> make[1]: Leaving directory `/home/pkaturi/exim-4.80.1/build-SunOS5-5.10-sparc'
> make: *** [all] Error 2[/code]

>
> Please find attached Makefile.
>
> Thanks,
> Prashanth Katuri
> Directory services admin
> Schlumberger
> Desk: 713 513 1198
> Cell: 682 888 2474
>
> <Makefile>--
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/ ## Please use the Wiki with
> this list - http://wiki.exim.org/


--
Ian Eiloart
Postmaster, University of Sussex
+44 (0) 1273 87-3148