MailScanner & IPv6 [SOLVED]
Mike
michael at NOMENNESCIO.NET
Wed Apr 6 11:57:53 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 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?
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.
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!
More information about the MailScanner
mailing list