On 2013-08-11 15:43, manu@... wrote:
> Jim Klimov <jimklimov@... <mailto:jimklimov%40cos.ru>> wrote:
>
> > I see an as-of-yet undocumented config keyword "localaddr" which
> > can be defined, apparently, for Postfix users to use "spf self".
> > I wonder if it is for any reason NOT proper to use this value (if
> > defined) in place of missing {if_addr} values in the two other
> > places?
>
> No, it seems fine to do so
>
> > Also, would the netstat-like idea outlined above be feasible for
> > setting the value automatically (per-connection)?
>
> You want to run netstat in popen()? Or use the system non standard API
> to retreive the information?
I thought that maybe "netstat -an" relies on some standard API
to list the kernel's established TCP sessions on various OSes.
Forking an executable for each connection would of course be an
overkill. At most - make a netstat daemon (or thread) and query
it with a pipe ;)
Given your reply above, I think for many intents and purposes
the single value defined by admin in a config file would do.
It just has to become not only defined for POSIX, and used in
place of missing {if_addr} in those two spots. And also it
should become documented, at all and for such use in particular :)
I cannot promise I'd look into this anytime soon, there are some
quests at $work to do with higher priority... Then again, I thought
so about several of the features I've committed this weekend ;)
//JimMessage
Re: [milter-greylist] Toggle to not log failure to fetch {if_addr}
2013-08-11 by Jim Klimov
Attachments
- No local attachments were found for this message.