Discussion:
[SA-exim] Config question
Brian Lavender
2009-09-12 03:13:59 UTC
Permalink
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/
Magnus Holmgren
2009-09-12 10:18:03 UTC
Permalink
Post by Brian Lavender
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.
Post by Brian Lavender
SAEximRunCond: ${if and {{def:sender_host_address} {!eq
{$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}}
--
Magnus Holmgren ***@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
Marc MERLIN
2009-09-12 14:29:46 UTC
Permalink
Post by Brian Lavender
This is the sample config and comments on my system. What exactly does the {::1}
mean?
It's localhost in IPv6 notation.

Marc
Post by Brian Lavender
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
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/
Loading...