Hallo.
I use courier-imap database to store and determine user id for virtual
mail addresses, and firewall and different ip for traffic accounting.
So, i have such transport:
x_virtual_delivery:
driver = smtp
# serialize_hosts = *
hosts = ${run{/usr/local/sbin/getip
${extract{uid}{${extract{2}{|}{${lookup{*@${lookup{$domain}
dbm{/usr/local/etc/exim/mail/localdomains.db}}}
dbmnz*@{/usr/local/etc/userdb.dat}}}}}}}{$value}{fail}}
hosts_override = true
wich delivers virtual mail to another exim daemon, listening on internal
ip addresses (10.0.0.1-xxxxxx)
in /usr/local/etc/exim/mail/localdomains.db I have database of local
domains, some of them are aliases, so I lookup for main domain.
In exim -d -bd i have really strange behavior:
set_process_info: 79311 delivering 19sfDa-000Kd9-00 using x_virtual_delivery
x_virtual_delivery transport entered
shadow@???
^^^^^^^^^^^^^^^^^^^^^
danya@???
using the transport's hosts: ${run{/usr/local/sbin/getip
${extract{uid}{${extract{2}{|}{${lookup{*@${lookup{$domain}
dbm{/usr/local/etc/exim/mail/localdomains.db}}}
dbmnz*@{/usr/local/etc/userdb.dat}}}}}}}{$value}{fail}}
search_open: dbm "/usr/local/etc/exim/mail/localdomains.db"
search_find: file="/usr/local/etc/exim/mail/localdomains.db"
key="" partial=-1
^^^^^^^^^^^^
LRU list:
1/usr/local/etc/exim/mail/localdomains.db
End
WERE is my $domain value???????
:-()
Why key is ""???
Thanx.