MailScanner & IPv6
Mike
michael at NOMENNESCIO.NET
Wed Apr 6 10:32:13 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 Zanker
>
>I receive a fair amount of mail over IPv6 (including everything from the
>Exim mailing list) but have not had any problems. I am using Exim,
>though, not sendmail.
I think I've located the problem, it's in lib/Sendmail.pm (so it's sendmail related):
**********************
if ($Line =~ /^\$_/) {
$ip = $Line;
#chomp $ip;
if ($ip =~ /\[([\d.:abcdef]+)\]/) {
$message->{clientip} = $1;
} else {
# It is a locally-created message and doesn't have an smtp client ip
$message->{clientip} = '127.0.0.1';
}
$IPFound = 1; # We have found the client IP address
}
**********************
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.
>Mike.
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