On Thu, Dec 06, 2007 at 01:22:58PM -0600, Bob Goldberg wrote: > On Dec 5, 9:40 pm, Andrew Sackville-West <[EMAIL PROTECTED]> > wrote: > > On Wed, Dec 05, 2007 at 06:26:38PM -0800, [EMAIL PROTECTED] wrote: > > > ie: the command line [from my router] is: > > > data = [EMAIL PROTECTED]/etc/exim4/email-accept} > > > {:fail: User unknown }} > > > > > what interpreter can I execute this line of code in to see what the > > > heck it's doing? > > > > one of my lookups that has a fail in it has no colons (:) around > > it and the fail is not in its own set of braces. try it like this: > > > > data = > > [EMAIL PROTECTED]/etc/exim4/email-accept}fail}} > > > > taking out the User unknown part. > > > > Don't ask me why... > > > > A > > interesting... > I did try it w/o enclosing fail in it's own braces... > but the expansion still shows "fail" when in fact, the lookup was > successful.
I still don't know about that, but here is another method you could try. Instead of verifying recipients (other thread), try this acl: accept recipient = lsearch;/path/to/recipients-file where the recipients-file looks like: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ... then use a simple router/transport combo to send everything to exchange server. That acl does a simple linear seach of the recipients-file for the address in question. If it finds it, the acl will accept. if not it will pass. you could get away, in this case, with probably just two lines of acl: the one accept above and then a default deny at the bottom and be done with it. > > Does anyone know what language this is? nope. well, someone does, but not me. > I can just go look at a language reference for the lookup/lsearch command(s) > if I knew what language this was.... > I don't know if you've made it to exim.org yet, but here is where I figured out the above acl: http://exim.org/exim-html-current/doc/html/spec_html/ch10.html with help from: http://exim.org/exim-html-current/doc/html/spec_html/ch09.html The docs are pretty good really, but you have to realise that exim is really full featured and has many more options and then I could ever imagine. THat makes it complicated. and it makes the docs really really long. Give yourself time to grok it all... A
signature.asc
Description: Digital signature