MailScanner & IPv6 [SOLVED]

Mike michael at NOMENNESCIO.NET
Wed Apr 6 11:37:05 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
>Now to figure out what the "if ($ip =~ /\[([\d.:abcdef]+)\]/) {" check
>needs to be (I'm not a perl guru). I'll try to experiment a bit.

I solved this (see patch) by changing

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


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

in I'm not sure if this is the best check (ItWorksForMe[tm]), but I'll leave that to Julian.

Now I'm off to MailWatch, since it seems there's also something going wrong there. The mailscanner database does have the correct clientip record, however the details of a IPv6 message shows "" as "Received from:". There will probably a similar check with default "" in one of the .php files.


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

Support MailScanner development - buy the book off the website!

    [ Part 2, ""  Application/OCTET-STREAM (Name: ]
    [ "")  592bytes. ]
    [ Unable to print this part. ]

More information about the MailScanner mailing list