[Exim] just another pop-before-smtp - problem

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Malte Geierhos
Datum:  
To: exim-users
Betreff: [Exim] just another pop-before-smtp - problem
hi !

i'd like to use pop-before-smtp for relay - control since i've set up
courier-imap/ssl && courier-pop3/ssl and exim with mysql-support .
My Problem at this point is, that i need to have both, pop-before-smtp
and smtp-auth. Smtp-auth - prob is solved.
Now i tried to figure out how to make use out of the pb4smtp project at
sourceforge.
It tail's the logfile and puts the ip's into a berkeley-db ok.
My prob is, that the ip is the key and there's a user-definable value as
value ( "ok" ) so it looks like this:

217.203.67.x     ok


hm using this as hostlist:
hostlist relay_from_hosts = 127.0.0.1 :
${lookup{$sender_host_address}dbmnz{/etc/exim/popauth.db}}

results in :

internal_search_find: file="/etc/exim/popauth.db"
19:16:39 24929   type=dbmnz key="217.3.81.43"
19:16:39 24929 file lookup required for 217.3.81.43
19:16:39 24929   in /etc/exim/popauth.db
19:16:39 24929 ---0 Get 135129336     8       string.c  408
19:16:39 24929 --Malloc 135175200    16       search.c  500 24600 5859
19:16:39 24929 --Malloc 135175224    16       search.c  505 24600 5875
19:16:39 24929 lookup yielded: ok


hm but NOT the ip. so my perl skills aren't good enough to rewrite the
skript to put it in reverse order.

i thought i can setup a condition which sets (when lookup is "ok" )
$sender_host_address as return
non working example as i thought it could work :
if eq {${lookup{$sender_host_address}
dbmnz{/etc/exim/popauth.db}}${$value}{ok}{$sender_host_address}}

hm any help would be very nice

greets
malte