manu@... wrote:
> Frantisek Hanzlik franta@... <mailto:franta%40hanzlici.cz>> wrote:
>
>> I understand that message is only debug or warning, and that private
>> IP ranges are not in GeoIP database. But why, when I have config
>> file as:
>> ...
>> list "my network" addr { 127.0.0.1/8 192.168.0.0/22 }
>> list "ip friends" geoip { "CZ" "DE" "SK" }
>> ...
>> racl whitelist list "my network"
>> racl greylist not list "ip friends"
>> ...
>>
>> is this message emitted?
>
> Because the GeoIP data is filled at conntect stage, and the racl are
> evaluated at RCPT-stage.
>
> If the problem is just the warning, I guess we could have a quiet_geoip
> option for that. And avoid looking up GeoIP for private addresses.
>
> --
> Emmanuel Dreyfus
> http://hcpnet.free.fr/pubz
> manu@... <mailto:manu%40netbsd.org>
Ouch, that was my RTFM fault, from greylist.conf man page
"DATA-STAGE ACL" paragraph first sentence says it clearly:
"ACL using the racl keyword are evaluated at the RCPT stage..."
Maybe I was affected from similar directive from milter-regex,
where IPs/FQDNs of connected MTAs are evaluated in connect stage.
And yes, problem is only cosmetical, but these warnings fill logs
IMO uselessly. Any of you suggested modifications will be good.
I just remember other cosmetical, but filling logs problem: when I
specify "maxpeek=nn", then when message exceed this size, I got in
log message as:
"DATE pc milter-greylist: ignoring message beyond maxpeek = nn"
but not one line, but many - the longer message, the more lines in
log. When I was trying find some dependency "No. of lines in log" x
"message size", then I got some as
NLines=(MsgLen - Maxpeek) / 64500
Then when I have "maxpeek 99999" and message size is 100kB I have
one ".. milter-greylist: ignoring message beyond maxpeek = 99999"
line in log, but when mail message will be 20MB large, I will get
over 300 these ...message beyond maxpeek... lines! This is slightly
annoying, IMO in log should be (if mail size >maxpeek) only one line.
Thanks for Your work!
Fr. HanzlikMessage
Re: [milter-greylist] GeoIP failed to lookup ip 'PRIVATE_IP'
2013-01-26 by Frantisek Hanzlik
Attachments
- No local attachments were found for this message.