
brent at servuhome
Oct 3, 2007, 11:58 AM
Post #3 of 3
(1249 views)
Permalink
|
|
Re: Transport directory based on sender address
[In reply to]
|
|
Quoting Jakob Hirsch <jh[at]plonk.de>: > Brent Jones wrote: > >> directory = ${lookup{$sender_host_address}lsearch{/etc/storetable}} >> And here is what the /etc/storetable contains >> 10.0.0.1: /var/mail/catch/main/ >> >> appendfile: file or directory name "" is not absolute > > I'd say it should, but it seems that the lookup returns nothing, so the > resulting string is "". > Run a debug session with "exim -d+expand -bh 10.0.0.1" (or use the swaks > tool) to see what's going wrong. > > Oh, and what do you expect to happen when the sender's host address has > no match in /etc/storetable? I found that lsearch wasn't returning any results, but came across another function, iplsearch. The lookup now works correctly. If it doesn't match something, I don't know what I'll do yet, maybe I'll do some checking in an ACL to reject hosts that don't fall into known IP ranges before it even gets to the transport. Regards ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- ## List details at http://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/
|