[Mimedefang] Simple feature request

Damrose, Mark mdamrose at elgin.edu
Wed Sep 15 10:43:59 EDT 2004


> -----Original Message-----
> From: WBrown at e1b.org [mailto:WBrown at e1b.org]

[snip]
> would it be difficult to detect 
> which format the 
> host was specified?
> 
> If there are multiple colons, it would be an IPv6 numeric 
> address.  If 
> there is only one, it is hostname:port or IPv4:port. 

IIRC, IPv6 uses single colons unless there is an 
un-ambiguous string of all zero which can be replaced by 
2 colons (but only once - otherwise it would be ambiguous)

It may be possible to easily detect and IPv6 address vs. a 
hostname:port or even IPv4:port, but the use of a single 
vs. double colon wouldn't be the method.

Maybe the use of the method in RFC2372 - similar to what
sendmail uses. 
(http://www.ietf.org/rfc/rfc2732.txt)
Literal IPv4 or IPv6 addresses must be enclosed in square
brackets [], otherwise they are presumed to be names.



More information about the MIMEDefang mailing list