Hi,
I have installed exim-4.80.1 version and trying to test something, but found the couple of fields were empty. Btw I came to know that traffic is not reaching LDAP server when performing the below test.
pkaturi@gb0882ldaptst00:~$ exim -C /tmp/dgs.exim -d+lookup -bt pkaturi@???<mailto:pkaturi@slb.com>
<mailto:dgraystephens@slb.com>Exim version 4.80.1 uid=15002 gid=15000 pid=6336 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
Support for: iconv() Perl DKIM
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch dbm dbmjz dbmnz ldap ldapdn ldapm
Authenticators:
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 unset
changed uid/gid: -C, -D, -be or -bf forces real uid
uid=15002 gid=15000 pid=6336
auxiliary group list: 15000 6 500 101 25000 25001 333
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /tmp/dgs.exim
log selectors = 00000ffc 00212001
Starting Perl interpreter
admin user
changing group to 6 failed: Not owner
originator: uid=15002 gid=15000 login=gray name=Douglas Gray Stephens
sender address = gray@???
Address testing: uid=15002 gid=15000 euid=15002 egid=15000
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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() returned NULL (user not found)
userforward router skipped: pkaturi is not a local user
--------> 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: ldapm "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=ldapm 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: ldapm URL = "ldap:///o=slb,c=an?alias,mail,cn,ou,telephonenumber,o?sub?(&(mail=*)(alias=pkaturi))" server=gb0135ldap00.ldap.slb.com port=390 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=o=slb,c=an port=954024
Bus Error
gray@gb0882ldaptst00:~$ ldapsearch -h gb0135ldap00.ldap.slb.com:390 -b o=slb,c=an '(&(mail=*)(alias=pkaturi))' mail
version: 1
dn: cn=Douglas Gray Stephens 111762,ou=employee,o=SLB,c=AN
mail: pkaturi@???
pkaturi@gb0882ldaptst00:~$
Thanks,
Prashanth Katuri
Directory services admin
Schlumberger
Desk: 713 513 1198
Cell: 682 888 2474