Markus Benning: > Hello, > > i'm using a before queue content filter setup with smtpd_proxy_filter and > smtp_send_xforward_command=yes. So far no problem. > But now i want to implement a whitelisting for some checks based on > the client IP address in the content filter. > The content filter supports both XFORWARD and XCLIENT. > Like postfix the content filter uses XFORWARD only for logging. > If i send the client information within a XCLIENT command > i'm able to defined restrictions/whitelistings based on the > (virtual) client address in the content filter. > But postfix is only able to send XFORWARD. > > Is there a reason why theres no option like smtp_send_xclient_command yet?
Yes. The reason is that all client/helo/sender/recipient access decisions must be made BEFORE the filter, not after. Among other things, that would break the speed adjust feature which can provide a significant performance improvement. Wietse