[milters] Archive

Lists Index Date Thread Search

Article: 2898
From: Anthony Howe
Date: 2012-09-07 09:47:24 -0400
Subject: Re: combo tag extenstion

On 6 Sep 2012 02:54, Alex Broens whispered from the shadows...:
> Could you add support for such a combo tag?
> 
> milter-link-connect:192.168.1.1:from:sender@example.net:to:recipient@example.org

Hard to imagine a usage case for such fine granularity. I would think:

	milter-link-connect:192.168.1.1:from:sender@example.net

	milter-link-connect:192.168.1.1:to:recipient@example.org

	milter-link-from:sender@example.net:to:recipient@example.org

forms would be sufficient.

Adding a 3rd level would hugely expand the number of lookups for each
RCPT. Typically for IPv4 and simple 2 label domains for sender and
recipient would 4 x 4 x 4 = 64 lookups, followed by the connect:to:
(avg. 16 lookups) and from:to: (avg. 16 lookups), then the to: (avg. 4
lookups) per given RCPT. And for IPv6 you go from 4 octets to 8 words.

It might be better to create a new tag syntax for RCPT that reduces the
lookups, while allowing the ability to match using a !glob! or /regex/
pattern list against a tuple string of "IP46 sender recipient".

	milter-link-rcpt:recipient	/ip46,sender,recipient/action ...

Similarly...

	milter-link-mail:sender		/ip46,sender/action ...

This could form a general basis for simplified and improved combo tags.

-- 
Anthony C Howe            Skype: SirWumpus                  SnertSoft
                        Twitter: SirWumpus      BarricadeMX & Milters
http://snert.com/      http://nanozen.info/     http://snertsoft.com/

Lists Index Date Thread Search