Hi John,

Am Donnerstag, den 27.04.2017, 08:07 +0100 schrieb John Lines:
> Package: milter-greylist
> Version: 4.5.11-1.1+b1
> Severity: wishlist
> Tags: upstream
> 
> Dear Maintainer,
> 
> milter-greylist has the best information about the previous hop source of an
> email. In particular, if geoip support is used it knows the country associated
> with the IP address of the previous hop.
> 
> This information may be useful at a later stage in filtering, for example by
> spamassassin or sieve. One user may expect to receive mails from a relay in
> some country, whereas for another user any such emails are almost certainly
> spam.
> 
> Adding a Country Name header (using the geoip country code), e.g.
>  X-GreyList-CN: GB
> would help the downstream filter.

Good idea, but I would add this to the examples as optional feature, not
enable geoip by default, because you have to take care of updates and if
I remember right, you have to reload milter-greylist to recognize
changes in geoip databases. I do that with a simple after upgrading

 touch /etc/milter-greylist/greylist.conf

which causes milter-greylist to reload its config [1].

Something like this for the header:

  racl continue from /.*/ addheader "X-GreyList-CN: %C"

or

racl continue from /.*/ addheader "X-Greylist: inspected by %V for IP:'%
i' DOMAIN:'%d' HELO:'%h' FROM:'%f' RCPT:'%r' GEOIP:'%C'"

Ciao
Marcus

[1]
https://groups.yahoo.com/neo/groups/milter-greylist/conversations/messages/6917

Reply via email to