ClamSMTP: Using with Postfix

# ClamSMTP: FAQ

### Can you add XXX feature?

Maybe, maybe not. But you should try and see if you can write a script using the `VirusAction` feature (found in version 0.9 and later). It allows you to run an arbitrary program whenever a virus is found.

### Sometimes `clamd` uses up tons of CPU and errors out on certain connections. How can I fix this?

This should be fixed in versions later than 0.9. You may also want to try upgrading your version of clamav. If it still occurs then let the list know.

### When I use the `VirusAction` option I see defucnt or zombie processes left around. Why is that?

When `clamsmtpd` runs the script it ignores it, and doesn't check it's return value. This is done for efficiency. In some cases the SMTP connection is complete before the `VirusAction` script completes. In this case the process is left in the defunct/zombie state when it finishes.

Don't worry about this however, the process will be cleaned up the next time a `VirusAction` is run. There should be at most one or two of these processes hanging around.

### I get an warning message saying that clamsmtpd couldn't set timeouts on the connection.

This occurs in with Linux kernels in the 2.2 series and earlier. Solutions include upgrading to a later Linux version, or ignoring the warning.

###### Copyright 2002, N. Nielsen [ clamsmtp | home page ]