On 2013-08-11 04:12, Jim Klimov wrote:
> Now, a separate question is if we can (or should) try to detect
> a "reasonable" value ourselves, in the milter, in case the macro
> value is not provided - i.e. try the only non-loopback IP address
> if there is only one, or review the system's SMTP connections
> like "netstat -an | grep ESTABLISHED" to find one(s) with that
> remote host and see which local IP address is used, if any?..
> As a possible aid for the latter technique, is there any macro that
> would pass us the remote relay's port number - just like we can have
> its host name and/or IP address?
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?
Also, would the netstat-like idea outlined above be feasible for
setting the value automatically (per-connection)?
//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.