[clamav-users] clamav-milter LocalNet option / outgoing mail (Debian Wheezy)

Noel Jones njones at megan.vbhcs.org
Sat Feb 21 20:28:52 EST 2015

On 2/21/2015 6:42 PM, Daniel Spies wrote:
> Hello,
> what is the correct way to prevent clamav-milter (0.98.5 in Debian
> Wheezy) from scanning and tagging _outgoing_ e-mail? I assumed it
> was the LocalNet option; however, I did not manage to get it to
> work. Here is the man entry:
> LocalNet STRING     Messages originating from these hosts/networks
> will not be scanned. This option takes a host(name)/mask pair in
> CIRD notation and  can  be  repeated several times. If "/mask" is
> omitted, a host is assumed. To specify a locally orignated,
> non-smtp, email use the keyword "local"
> Default: unset (scan everything regardless of the origin)
> Here is what I tried:
> LocalNet ::1/128 local
> clamav-milterERROR: Can't resolve LocalNet hostname ::1

I believe the correct syntax is:
LocalNet ::1/128
LocalNet local

ie. repeat the option, not the network.

> LocalNet
> OK, BUT scan/tag happens
> LocalNet ::1/128
> OK, BUT scan/tag happens
> LocalNet local
> OK, BUT scan/tag happens

So where does the message originate from?  Maybe the debugging
options will help with this.

More information about the clamav-users mailing list