On Wed, 23 May 2018 22:30:39 -0600, Eric Broch wrote:
> What's in qmail-queue-wrapper, what does it do, and which messages 
> does it add a custom header to? Mail from outside to local accounts? 
> Mail going out from local accounts?

The script is super simple, and doesn't do anything that should affect clamav, 
but since you asked here's the reply to your questions:

I adapted Peter Samuel's qmail-queue-wrapper script to prepend `X-AuthUser: 
$ENV{'TCPREMOTEINFO'}` to every message. Here's it is: 
https://gist.github.com/quinncomendant/6a0a3a9d7699db48c9ade6f4942b8a92

All it does is prints `X-AuthUser: …`, followed by the entirety of the message 
as-is.

Since the script replaces the default qmail-queue, it is executed for all mail 
that makes it past simscan, local→local, local→remote, remote→local, 
remote→remote. 

Quinn

Reply via email to