I'd like to log remoteIP when rejecting viruses, so that I can respond
quickly to local infections.

With other milters, I've stored the remote IP address into the privdata
structure. With clamav-milter, though, substantial restructuring seems to
be required, since remoteIP is only seen in the clamfi_connect callback,
and you don't initialize privdata until clamfi_envfrom. Would you consider
doing this restructuring?

An alternative approach for my needs would be to add {client_addr} to
confMILTER_MACROS_BODY and fetch it with smfi_getsymval() -- that would
save me from forking too far from the supported code base -- but I'd
imagine others might appreciate this feature.

I can work on the patch if you'd prefer...
-- 
Rich Graves <[EMAIL PROTECTED]>
UNet Systems Administrator

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to