; $Id: amavis.conf,v 1.24 2002/07/24 22:59:08 bengen Exp $

; Configuration file for amavis

[global]

;; Which MTA to use. Specify one.

; mail-transfer-agent = DebugMTA
; mail-transfer-agent = Exim
; mail-transfer-agent = EximPerl
; mail-transfer-agent = Postfix
; mail-transfer-agent = Sendmail
 mail-transfer-agent = SMTP
; mail-transfer-agent = Milter

;; Which virus scanner to use. Use more than one if you desire
; virus-scanner = FSAV
; virus-scanner = AVP
; virus-scanner = FSP
; virus-scanner = hbEDV
; virus-scanner = Sophos
; virus-scanner = Sophie
; virus-scanner = Bitdefender
; virus-scanner = FPROT
; virus-scanner = MKS
; virus-scanner = NAI
; virus-scanner = NVC
; virus-scanner = Panda
; virus-scanner = CLAM
; virus-scanner = Trend
; virus-scanner = OpenAntiVirus

;; Extractor modules. 
;; "Mail" should definitely be used, it is used for decoding MIME
;; attachments
; extractors=Mail, Text, GZIP, BZIP2, LHA, ARC, Zip, Tar, ZOO, RAR
extractors=Mail, Text, GZIP, BZIP2, Zip, Tar

;; Who should be notified?
; notifiers=Sender, Recipients, Admin

;; What should be inserted into the message's headers if it is let
;; through?
x-header = true
x-header-tag = X-Scanned-By
x-header-line = AMaViS at a badly configured site.

umask = 002

[paths]

;; Where should mails be unpacked to?
unpack dir = /tmp/

;; Where should infected mail be stored? (Only the actual mail, not
;; the unpacked attachments)
quarantine dir = /var/quarantine

;; If problems occur, put message into this directory
problem dir = /var/problems

;; Should the unpacking directory be removed afterwards? Set to 'no'
;; only for debugging purposes
cleanup = yes

[Logging]

;; Use syslog? Facility (e.g. mail|info) or "no"
 syslog = no
; syslog loglevel = 3

;; Log to which file? And atwhat level?
logfile = STDERR
logfile loglevel = 7

[Notify]

;; Which domains should be considered local? Recipients are notified
;; about mail that was stopped only if they are local. The domain name
;; is matches against this Perl regular expression.
local domain = .*example\.com

;; What address will appear in the From:-header of warning messages
mail from = postmaster@example.com

;; Who is the mail admin? Comma separated list if multiple admins
admin = postmaster@example.com

[Exim]

;; Location and arguments of the binary
exim = /usr/sbin/exim
args = -oMr no-scan -i -f 

[Sendmail]

;; Location and arguments of the binary
sendmail = /usr/sbin/sendmail
args = -i -C /etc/mail/sendmail.cf.orig -f 

[Postfix]

;; Location and arguments of the binary
postfix = /usr/sbin/sendmail
args = -i -f

[Qmail]

qmail-queue = /usr/sbin/qmail-queue

[SMTP]

input address = 127.0.0.1
input port = 10025
output address = 127.0.0.1
output port = 25

;; SMTP session timeout.
;; unset: accept message immediately
;; =0:    no timeout. Response is sent to client after processing
;; >0:    timeout is set to n seconds. After n seconds, processing 
;;        is aborted if it has not been finished.

session timeout = 86400

pidfile = /tmp/amavisd.pid


[Milter]
;; Currently, an external C program amavis-milter is needed for Milter
;; support.

;; This is the socket AMaViS will listen on. amavis-milter will
;; connect to this socket if it wants a message to be checked.
amavis socket = /var/run/amavis/socket.amavis

;; This is the socket amavs-milter will listen on.
milter socket = /var/run/amavis/socket.milter

;; The path to amavis-milter
amavis-milter = /usr/sbin/amavis-milter

;; amavis-milter pid file
amavis-milter pidfile = /var/run/amavis/amavis-milter.pid

;; Debug options for amavis-milter (should not be needed in normal
;; operation)
; amavis-milter debug = 3
; amavis-milter logfile = /var/log/amavis/amavis-milter.log

;; The AMaViS pid file
pidfile = /var/run/amavis/amavisd.pid
daemon = yes

;; For sending out messages
sendmail = /usr/sbin/sendmail
args = -i -f

[DebugMTA]

input file = /dev/stdin
output file = /dev/stdout

[external]

arc = /bin/false
bzip2 = /bin/false
lha = /bin/false
unarj = /bin/false
unrar = /bin/false
zoo = /bin/false

[security]

;; Resource limits for unpacking each message

;; How many levels of unpacking do we do?
maxlevels = 20
;; How many files do we want to write?
maxfiles = 1000
;; How much diskspace do we want to consume?
maxspace = 30M

;; If amavis is run as UID root, drop root privileges to uid, gid.
uid = 8
gid = 12

;; chroot after initialization
chroot = /tmp/amavis-root

[FSAV]

fsav = /usr/bin/fsav

[AVP]

avp = /usr/bin/avp

[Sophos]

sweep = /usr/bin/sweep

[hbEDV]

antivir = /usr/bin/antivir

[Sophie]

socket = /var/run/sophie

[NAI]

uvscan = /usr/bin/uvscan

[NVC]

nvc = /usr/bin/nvccmd

[Bitdefender]

bitdefender = /usr/bin/bdc

[Panda]

panda = /usr/bin/pavcl

[CLAM]

clamscan = /usr/bin/clamscan

[FPROT]

fprot = /usr/bin/f-prot

[Trend]

vscan = /usr/bin/vscan

[OpenAntiVirus]

socket = localhost:8127
