From brian at brie.com Fri Sep 11 20:13:59 2009 From: brian at brie.com (Brian Lavender) Date: Fri, 11 Sep 2009 20:13:59 -0700 Subject: [SA-exim] Config question Message-ID: <20090912031359.GA819@brie.com> This is the sample config and comments on my system. What exactly does the {::1} mean? Is this some sort of LISP or M4 syntax? Sorry, I am not too familiar with LISP yet. Thanks, brian # Exim configuration string to run before running SA against the message # This decides whether SA gets run against the message or not. This # default will not reject messages if the message had SA headers but # they weren't added by us. SAEximRunCond: ${if and {{def:sender_host_address} {!eq {$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}} -- Brian Lavender http://www.brie.com/brian/ From holmgren at lysator.liu.se Sat Sep 12 03:18:03 2009 From: holmgren at lysator.liu.se (Magnus Holmgren) Date: Sat, 12 Sep 2009 12:18:03 +0200 Subject: [SA-exim] Config question In-Reply-To: <20090912031359.GA819@brie.com> References: <20090912031359.GA819@brie.com> Message-ID: <200909121218.09658@proffe.kibibyte.se> On l?rdagen den 12 september 2009, Brian Lavender wrote: > This is the sample config and comments on my system. What exactly does the > {::1} mean? > > Is this some sort of LISP or M4 syntax? Sorry, I am not too familiar > with LISP yet. It's (part of the) Exim string expansion syntax. See http://www.exim.org/exim- html-current/doc/html/spec_html/ch11.html. The language is functional, like Lisp, but that's where the similarities end. What you have below is an ${if } item with a composite condition ("and { }"). The "and" condition takes any number of subconditions, each enclosed in braces. The "eq" condition takes two operands, also enclosed in braces, whereas the "def" condition takes just one after a colon but with no braces. So {::1} is just an IPv6 address enclosed in braces to separate it from the other operand, $sender_host_address. > SAEximRunCond: ${if and {{def:sender_host_address} {!eq > {$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}} -- Magnus Holmgren holmgren at lysator.liu.se (No Cc of list mail needed, thanks) "Exim is better at being younger, whereas sendmail is better for Scrabble (50 point bonus for clearing your rack)" -- Dave Evans -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.merlins.org/archives/sa-exim/attachments/20090912/55eddef2/attachment.pgp From marc at merlins.org Sat Sep 12 07:29:46 2009 From: marc at merlins.org (Marc MERLIN) Date: Sat, 12 Sep 2009 07:29:46 -0700 Subject: [SA-exim] Config question In-Reply-To: <20090912031359.GA819@brie.com> References: <20090912031359.GA819@brie.com> Message-ID: <20090912142946.GA342@merlins.org> On Fri, Sep 11, 2009 at 08:13:59PM -0700, Brian Lavender wrote: > This is the sample config and comments on my system. What exactly does the {::1} > mean? It's localhost in IPv6 notation. Marc > Is this some sort of LISP or M4 syntax? Sorry, I am not too familiar > with LISP yet. > > Thanks, > > brian > > # Exim configuration string to run before running SA against the message > # This decides whether SA gets run against the message or not. This > # default will not reject messages if the message had SA headers but > # they weren't added by us. > > SAEximRunCond: ${if and {{def:sender_host_address} {!eq {$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}} > -- > Brian Lavender > http://www.brie.com/brian/ > > _______________________________________________ > SA-Exim mailing list > SA-Exim at lists.merlins.org > http://lists.merlins.org/lists/listinfo/sa-exim > -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/