spf-discuss
[Top] [All Lists]

Shortcuts to current mechanisms defined in RFC ?

2004-07-08 19:27:45
How about to add support for shortcuts to mechanisms already defined in RFC
?

all -> all (same)
include -> i
A  -> a
mx -> mx  (same)
ptr -> p
ip4 -> 4
ip6 -> 6
exists -> e
exp -> exp (same)
redirect -> r
accreditation -> acc

I.e. in addition to long versions users can specify short versions.
This way AOL instead of current 169 chars will have 153
"v=spf1 4:152.163.225.0/24 4:205.188.139.0/24 4:205.188.144.0/24
4:205.188.156.0/23 4:205.188.159.0/24 4:64.12.136.0/23 4:64.12.138.0/24
p:mx.aol.com ?all"

As well as secondary goal I would like to make shortcuts to common IPv4
address subnetworks.

Like a
10.1.2.3/32 = 10.1.2.3 (already done)
10.1.2.0/24  = 10.1.2
10.1.0.0/16  = 10.1
10.0.0.0/0    = 10
This will keep IPs readable. Even more saving can be obtained from BASE64
encoding - but will not keep records human-readable.

Others that /32 /24 /16 subnets must use regular syntax.
Short IPs nice to have - but implementation burden can possibly prevent this
:-(

Using both of shortcuts we will have 128 chars (41 char = 25% savings)
"v=spf1 4:152.163.225 4:205.188.139 4:205.188.144 4:205.188.156.0/23
4:205.188.159 4:64.12.136.0/23 4:64.12.138 p:mx.aol.com ?all"

Pretty short ?
exists, accreditation, redirect, include will save even more.

All of this will allow to keep record length as little as possible.
SPF applications can read shortcut format and convert to canonical form.

What do you think ?
--
Andriy G. Tereshchenko
TAG Software
Odessa, Ukraine
http://www.24.odessa.ua


<Prev in Thread] Current Thread [Next in Thread>