per-domain whitelist ip
Julian Field
mailscanner at ecs.soton.ac.uk
Thu Jun 10 12:15:07 IST 2004
For some bizarre reason unknown to me now, I put in support for checking
the IP address for the user and "default", but not for the domain.
Look in CustomConfig.pm and find this chunk of code in "sub
LookupByDomainList".
return 1 if $BlackWhite->{$to}{$from};
return 1 if $BlackWhite->{$to}{$fromdomain};
return 1 if $BlackWhite->{$to}{$ip};
return 1 if $BlackWhite->{$todomain}{$from};
return 1 if $BlackWhite->{$todomain}{$fromdomain};
return 1 if $BlackWhite->{'default'}{$from};
return 1 if $BlackWhite->{'default'}{$fromdomain};
return 1 if $BlackWhite->{'default'}{$ip};
Just before the first "'default'" line, add this:
return 1 if $BlackWhite->{$todomain}{$ip};
This will be in the next release.
At 09:09 10/06/2004, you wrote:
>Is it really possible to whitelist ip-addresses with per-domain
>whitelisting through customconfig.pm??
>
>The example includes these lines:
>soton.ac.uk
>ecs.soton.ac.uk
>jules at julianfield.net
>123.234.45.56
>
>I can whitelist domains and email addresses but cannot get ip address
>whitelisting to work.
>
>
>Regards, Tony
>
>-------------------------- MailScanner list ----------------------
>To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
>Before posting, please see the Most Asked Questions at
>http://www.mailscanner.biz/maq/ and the archives at
>http://www.jiscmail.ac.uk/lists/mailscanner.html
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list