Chris wrote: > I am not sure I follow your logic here though, because I thought it was > clamav-milter that passes those 7 arguments (not sendmail), all of which > look good, except the 4th: "destination".
That's correct. But clamav-milter is just a stupid streaming bridge which knows nothing about mails. And that's by design. All the info it passes on to your script it gets from sendmail. If sendmail doesn't fill in some, you get 'UNKNOWN'. Sendmail, by default, doesn't fill in all of the fields passed to your script, hence, you get 'UNKNOWN'. To get sendmail to fill in all the fields you need, you have to explicitly instruct it to do so. And this is done via its configuration file, using the confMILTER_MACROS_EOM as I wrote above. Any clearer now? -acab _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml