diff options
author | Stef Walter <stef@memberwebs.com> | 2004-09-18 01:00:26 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-09-18 01:00:26 +0000 |
commit | 9992298ca9a1549ab3267506896852f9df0369ee (patch) | |
tree | 30c6d464f9c56054f769a8cae2cf1f7e938558ea /doc | |
parent | e5a50721d21a36b8f9f31fd4ef21e182781b22e2 (diff) |
Virus action support.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/clamsmtpd.conf | 4 | ||||
-rw-r--r-- | doc/clamsmtpd.conf.5 | 38 |
2 files changed, 42 insertions, 0 deletions
diff --git a/doc/clamsmtpd.conf b/doc/clamsmtpd.conf index 44fd01e..24afb19 100644 --- a/doc/clamsmtpd.conf +++ b/doc/clamsmtpd.conf @@ -42,3 +42,7 @@ OutAddress: 10026 # User to switch to #User: clamav + +# Virus actions. There's an option to run a script every time a +# virus is found. Read the man page for clamsmtpd.conf for details. + diff --git a/doc/clamsmtpd.conf.5 b/doc/clamsmtpd.conf.5 index 9505629..f79be11 100644 --- a/doc/clamsmtpd.conf.5 +++ b/doc/clamsmtpd.conf.5 @@ -128,6 +128,9 @@ The user to run as. If this option is specified then .Xr clamsmtpd 8 must be started as root. It will then drop root privileges and run as the specified user. The user can either be a name or a numerical user id. +.It Ar VirusAction +This is a command to run when a virus is found. See the VIRUS ACTION section +below for a discussion of this option. .El .Sh ADDRESSES Addresses can be specified in multiple formats: @@ -141,6 +144,41 @@ the port number (ie: '127.0.0.1:3310'). .It IPv6 addresses are implemented but disabled. The code needs testing. .El +.Sh VIRUS ACTIONS +Using the +.Ar VirusAction +option you can run a script or program whenever a virus is found. This may +be handy in certain circumstances but it has several drawbacks. For one, the +performance of the virus filtering will take a hit, perhaps DOS'ing your +machine under heavy load. Secondly as with running any program there are +security implications to be considered. +.Pp +.Please consider the above carefully before implementing a virus action. +.Pp +The script is run without its output being logged, or return value being +checked. Because of this you should test it thoroughly. Make sure it runs +without problems under the user that +.Xr clamsmtpd 8 +is being run as. +.Pp +Various environment variables will be present when your script is run: +.Bl -tag -width Fl +.It Ar EMAIL +When the +.Ar Quarantine +option is enabled, this specifies the file that the virus was saved to. +.It Ar RECIPIENTS +The email addresses of the email recipients. These are specified one per +line, in standard address format. +.It Ar SENDER +The email address for the sender of the email. +.It Ar TMP +The path to the temp directory in use. This is the same as the +.Ar TempDirectory +option. +.It Ar VIRUS +The name of the virus found. +.El .Sh SEE ALSO .Xr clamsmtpd 8 .Sh AUTHOR |