MailScanner & IPv6 [SOLVED]

Rick Cooper rcooper at DWFORD.COM
Wed Apr 6 12:11:10 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 5:58 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
> >
> >I was about to suggest you go with if ($ip =~
> /\[IPv6:([\d.:abcdef]+)\]/) {
> >
> >if they are using the same format as in the log snipet you showed I don't
> >believe you actually want the "IPv6:" portion in the IP address, unless
> >somewhere else in the code it's removed. Your change would
> return the IP as
> >IPv6:2001:888:0:1::666 not 2001:888:0:1::666
>
> Well, actually you do want that, since it's easier to distinguish
> that's an IPv6 address. I also believe that the IPv6: tag is
> mantory (at least for now), or am I wrong?
>

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.

> Also, I don't think your statement works. It also has to match
> non IPv6 addresses, which your solution does not. In your case
> IPv6 works, but regular IPv4 addresses will get the default
> "127.0.0.1", since the if only matches when it starts with IPv6.
>

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.

> I'll let Julian come up with a good/better solution than mine. I
> just made a quick fix, so IPv6 mail is no longer automagically
> tagged as coming from the localhost and ergo being non spam.
>
> >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