MailScanner & IPv6 [SOLVED]

Rick Cooper rcooper at DWFORD.COM
Wed Apr 6 12:48:06 IST 2005


    [ The following text is in the "ISO-8859-15" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> Behalf Of Mike
> Sent: Wednesday, April 06, 2005 6:39 AM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: MailScanner & IPv6 [SOLVED]
>
>
> >-----Original Message-----
> >From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> >Behalf Of Rick Cooper
> >
> >It's not part of the specification, which is why I mentioned it.
> It's easy
> >to spot an IPv6 address anyway because of the format.
>
> Ok, it's just that every program/service that uses IPv6, seems to
> leave the IPv6 tag in tact. I'll leave it to Julian.
>
> >Yeah, should have made that "(?:Ipv6:)?" oops! I doubt that the
> accuracy of
> >the address is an issue once it's gotten to mailscanner anyway.
>
> It's important for ACL I think, since you need to know what to
> match against.
>
> I've done some tests with "(?:Ipv6:)?", but that only works for
> IPv4, no longer for IPv6. This is what I used for testing:
>

should be IPv6 not Ipv6, my apologies, I actually tested it but didn't clip
and copy... I am working on a couple of other things and this conversation
was in the periphery and I shouldn't do that, I am sorry. Whole line:

if ($ip =~ /\[(?:IPv6:)?([\d.:abcdef]+)\]/) {

will match both formats.

Rick


> ****************
> #! /usr/bin/perl
>
> $ip = "$_xs6.xs4all.nl [IPv6:2001:888:0:1::666]";
> #$ip = "$_smtp.jiscmail.ac.uk [130.246.192.55]";
>
> if ($ip =~ /\[(?:Ipv6:)?([\d.:abcdef]+)\]/) {
>   print "match\n";
>   print "$1\n";
> } else {
>   print "no match\n";
>   print "$1\n";
> }
> ****************
>
> Anyway, Julian will hopefully shed his guru perl light on the
> problem and a proper fix! ;-)
>
> >> >Rick
>
> Thanks,
> Mike.
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list