#
# MailScanner - SMTP E-Mail Virus Scanner
# Copyright (C) 2002 Julian Field
#
# $Id: ConfigDefs.pl 3918 2007-05-27 20:32:11Z sysjkf $
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# The author, Julian Field, can be contacted by email at
# Jules@JulianField.net
# or by paper mail at
# Julian Field
# Dept of Electronics & Computer Science
# University of Southampton
# Southampton
# SO17 1BJ
# United Kingdom
#
1;
__DATA__
########################################################################
#
# Go through the entire source code, checking wherever any variable is
# used. Ensure they are used in a way that matches their spec.
#
########################################################################
#
# Translation between Internal and External keyword names.
# This lets me use nice brief names internally, and set the
# config file options to names that mean something.
#
# Format:
# Internal = External
#
[Translation,Translation]
addenvfrom = AddEnvelopeFromHeader
addenvto = AddEnvelopeToHeader
AllowObjectTags = AllowObjectCodebaseTags
AllowExternal = AllowExternalMessageBodies
AllowPartial = AllowPartialMessages
allowpasszips = AllowPasswordProtectedArchives
AllowWebBugTags = AllowWebBugs
AttachmentCharset = AttachmentEncodingCharset
AttachZipName = AttachmentsZipFilename
bayesrebuild = RebuildBayesEvery
bayeswait = WaitDuringBayesRebuild
blacklistedishigh = definitespamishighscoring
BlockEncrypted = BlockEncryptedMessages
BlockUnencrypted = BlockUnencryptedMessages
cachetiming = SpamAssassinCacheTimings
CheckSAIfOnSpamList = checkspamassassinifonspamlist
children = maxchildren
clamavmaxreclevel = clamavmodulemaximumrecursionlevel
clamavmaxfiles = clamavmodulemaximumfiles
clamavmaxfilesize = clamavmodulemaximumfilesize
clamavmaxratio = clamavmodulemaximumcompressionratio
clamwatchfiles = monitorsforclamavupdates
cleanheader = cleanheadervalue
contentmodifysubject = contentmodifysubject
contentsubjecttext = contentsubjecttext
criticalqueuesize = maxnormalqueuesize
dangerscan = dangerouscontentscanning
deletedcontentmessage = deletedbadcontentmessagereport
deletedfilenamemessage = deletedbadfilenamemessagereport
deletedsizemessage = deletedsizemessagereport
deletedvirusmessage = deletedvirusmessagereport
deliverdisinfected = deliverdisinfectedfiles
deliversilent = stilldeliversilentviruses
dirtyheader = infectedheadervalue
disarmmodifysubject = disarmedmodifysubject
disarmsubjecttext = disarmedsubjecttext
disinfectedheader = disinfectedheadervalue
disinfectedreporttext = disinfectedreport
envfromheader = EnvelopeFromHeader
envtoheader = EnvelopeToHeader
findphishing = FindPhishingFraud
gsscanner = UseCustomSpamScanner
gstimeout = CustomSpamScannerTimeout
gstimeoutlen = CustomSpamScannertimeouthistory
hamactions = nonspamactions
hideworkdir = hideincomingworkdir
hideworkdirinnotice = hideincomingworkdirinnotices
highrbls = spamliststoreachhighscore
highscorespamactions = highscoringspamactions
highscoremcpactions = highscoringmcpactions
highmcpmodifysubject = highscoringmcpmodifysubject
highspammodifysubject = highscoringspammodifysubject
highmcpsubjecttext = highscoringmcpsubjecttext
highspamsubjecttext = highscoringspamsubjecttext
htmltotext = converthtmltotext
includespamheader = alwaysincludespamassassinreport
includemcpheader = alwaysincludemcpreport
infoheader = informationheader
infovalue = informationheadervalue
inlinehtmlsig = inlinehtmlsignature
inlinehtmlwarning = inlinehtmlwarning
inlinetextsig = inlinetextsignature
inlinetextwarning = inlinetextwarning
inqueuedir = incomingqueuedir
keepspamarchiveclean = keepspamandmcparchiveclean
lastafterbatch = alwayslookeduplastafterbatch
lastlookup = alwayslookeduplast
listsascores = includescoresinspamassassinreport
loghtmltags = logdangeroushtmltags
logfacility = syslogfacility
lookforuu = finduuencodedfiles
maxattachmentsize = maximumattachmentsize
maxdirtybytes = maxunsafebytesperscan
maxdirtymessages = maxunsafemessagesperscan
maxgssize = maxcustomspamscannersize
maxgstimeouts = maxcustomspamscannertimeouts
maxmessagesize = maximummessagesize
maxparts = maximumattachmentspermessage
maxunscannedbytes = maxunscannedbytesperscan
maxunscannedmessages = maxunscannedmessagesperscan
maxzipdepth = maximumarchivedepth
minattachmentsize = minimumattachmentsize
minstars = minimumstarsifonspamlist
namemodifysubject = filenamemodifysubject
namesubjecttext = filenamesubjecttext
noisyviruses = nonforgingviruses
normalrbls = spamliststobespam
nosenderprecedence = nevernotifysendersofprecedence
noticefullheaders = noticesincludefullheaders
noticerecipient = noticesto
phishinghighlight = highlightphishingfraud
phishingnumbers = alsofindnumericphishing
phishingsubjecttag = phishingsubjecttext
phishingwhitelist = phishingsafesitesfile
outqueuedir = outgoingqueuedir
quarantinesilent = quarantinesilentviruses
quarantineuser = quarantineuser
quarantinegroup = quarantinegroup
quarantineperms = quarantinepermissions
rbltimeoutlen = spamlisttimeoutshistory
usesacache = cachespamassassinresults
satimeoutlen = spamassassintimeoutshistory
removeheaders = removetheseheaders
replacetnef = usetnefcontents
reqspamassassinscore = requiredspamassassinscore
sacache = spamassassincachedatabasefile
saviwatchfiles = monitorsforsophosupdates
scanmail = scanmessages
scoreformat = spamscorenumberformat
secondlevellist = countrysubdomainslist
sendercontentreport = senderbadcontentreport
senderfilenamereport = senderbadfilenamereport
senderrblspamreport = senderspamlistreport
sendersaspamreport = senderspamassassinreport
sendersamcpreport = sendermcpreport
sendersizereport = sendersizereport
senderbothspamreport = senderspamreport
showscanner = includescannernameinreports
signalreadyscanned = signmessagesalreadyprocessed
signunscannedmessages = markunscannedmessages
sophosallowederrors = allowedsophoserrormessages
sophoside = sophosidedir
sophoslib = sophoslibdir
spamblacklist = isdefinitelyspam
spamdetail = detailedspamreport
mcpmodifysubject = mcpmodifysubject
sizemodifysubject = sizemodifysubject
sizesubjecttext = sizesubjecttext
spammodifysubject = spammodifysubject
spamscorenotstars = spamscorenumberinsteadofstars
spamstars = spamscore
spamstarscharacter = spamscorecharacter
spamstarsheader = spamscoreheader
spamwhitelist = isdefinitelynotspam
storedcontentmessage = storedbadcontentmessagereport
storedfilenamemessage = storedbadfilenamemessagereport
storedsizemessage = storedsizemessagereport
storedvirusmessage = storedvirusmessagereport
storeentireasdfqf = quarantinewholemessagesasqueuefiles
strictphishing = usestricterphishingnet
stripdangeroustags = convertdangeroushtmltotext
mcpblacklist = isdefinitelymcp
mcpblacklistedishigh = definitemcpishighscoring
mcpdetail = detailedmcpreport
mcplistsascores = includescoresinmcpreport
mcpreqspamassassinscore = mcprequiredspamassassinscore
mcpwhitelist = isdefinitelynotmcp
unscannedheader = unscannedheadervalue
usedefaultswithmanyrecips = usedefaultruleswithmultiplerecipients
tagphishingsubject = phishingmodifysubject
#virusbeforespammcp = virusscanningbeforespamormcp
virusmodifysubject = virusmodifysubject
virusscan = virusscanning
warnsenders = notifysenders
warnvirussenders = notifysendersofviruses
warnnamesenders = notifysendersofblockedfilenamesorfiletypes
warnsizesenders = notifysendersofblockedsizeattachments
warnothersenders = notifysendersofotherblockedcontent
webbugurl = webbugreplacement
webbugwhitelist = ignoredwebbugfilenames
whitelistmaxrecips = ignorespamwhitelistifrecipientsexceed
workuser = incomingworkuser
workgroup = incomingworkgroup
workperms = incomingworkpermissions
#
# Simple variables which can only have a single value, no rules allowed.
#
# These can be any of the words given, with the corresponding value stored.
# Format is <Keyword Name>
# <Default internal value>
# [ <External name> <Internal store value ] ...
#
[Simple,YesNo]
bayeswait 0 no 0 yes 1
debug 0 no 0 yes 1
debugspamassassin 0 no 0 yes 1
deliverinbackground 1 no 0 yes 1
lognonspam 0 no 0 yes 1
logsilentviruses 0 no 0 yes 1
logspam 0 no 0 yes 1
logspeed 0 no 0 yes 1
logmcp 0 no 0 yes 1
expandtnef 1 no 0 yes 1
runinforeground 0 no 0 yes 1
showscanner 1 no 0 yes 1
spamassassinautowhitelist 1 no 0 yes 1
spliteximspool 0 no 0 yes 1
storeentireasdfqf 0 no 0 yes 1
usedefaultswithmanyrecips 0 no 0 yes 1
#virusbeforespammcp 0 no 0 yes 1
# These should be checked for dir existence
[Simple,Dir]
incomingworkdir /var/spool/MailScanner/incoming
lockfiledir /tmp
# Check the first word of these for file existence
[Simple,File]
PhishingWhitelist /etc/MailScanner/phishing.safe.sites.conf
pidfile /var/run/MailScanner.pid
SecondLevelList /etc/MailScanner/country.domains.conf
#spamassassinprefsfile /etc/MailScanner/spam.assassin.prefs.conf
SpamListDefinitions /etc/MailScanner/spam.lists.conf
mcpspamassassinprefsfile /etc/MailScanner/mcp/mcp.spam.assassin.prefs.conf
VirusScannerDefinitions /etc/MailScanner/virus.scanners.conf
# Check these to ensure they are just numbers
[Simple,Number]
BayesRebuild 0
Children 5
clamavmaxreclevel 8
clamavmaxfiles 1000
clamavmaxfilesize 10000000
clamavmaxratio 250
CriticalQueueSize 800
FileTimeout 20
GSTimeout 20
GSTimeoutLen 20
GunzipTimeout 50
MaxUnscannedBytes 100000000
MaxUnscannedMessages 30
MaxDirtyBytes 50000000
MaxDirtyMessages 30
MaxGSSize 20000
MaxGSTimeouts 10
MaxSpamAssassinTimeouts 10
MaxSpamCheckSize 150000
QueueScanInterval 6
RBLTimeoutLen 10
RestartEvery 14400
SATimeoutLen 30
SpamListTimeout 10
SpamAssassinTimeout 75
VirusScannerTimeout 300
MCPMaxSpamAssassinTimeouts 20
MCPSpamAssassinTimeout 10
TNEFTimeout 120
UnrarTimeout 50
WhitelistMaxRecips 20
# For Qmail users
qmailhashdirectorynumber 23
qmailintdhashnumber 1
# These are all the other strings I haven't categorised.
# inqueuedir is here as it can be a glob (if it contains a * or a ?) or a
# filename containing a list of directories.
[Simple,Other]
cachetiming 1800,300,10800,172800,600
ClamWatchFiles /usr/local/share/clamav/*.cvd
CustomFunctionsDir /usr/lib/MailScanner/MailScanner/CustomFunctions
FileCommand /usr/bin/file
FirstCheck mcp
GunzipCommand /bin/gunzip
inqueuedir /var/spool/mqueue.in
LDAPbase
LDAPserver
LDAPsite
# LockType *must not* have a static default
LockType
LogFacility mail
MailScannerVersionNumber 1.0.0
MaxSpamAssassinSize 30000
MinimumCodeStatus supported
MTA sendmail
QuarantineUser
QuarantineGroup
QuarantinePerms 0600
RunAsUser 0
RunAsGroup 0
SACache /var/spool/MailScanner/incoming/SpamAssassin.cache.db
SAVIWatchFiles /usr/local/Sophos/ide/*.zip
SophosAllowedErrors
sophoside
sophoslib
SpamAssassinUserStateDir
SpamAssassinSiteRulesDir
SpamAssassinLocalRulesDir
SpamAssassinLocalStateDir
SpamAssassinDefaultRulesDir
SpamAssassinInstallPrefix
SpamStarsCharacter s
MCPMaxSpamAssassinSize 100000
MCPSpamAssassinUserStateDir
MCPSpamAssassinLocalRulesDir /etc/MailScanner/mcp
MCPSpamAssassinDefaultRulesDir /etc/MailScanner/mcp
MCPSpamAssassinInstallPrefix /etc/MailScanner/mcp
TNEFExpander /usr/bin/tnef --maxsize=100000000
UnrarCommand /usr/bin/unrar
VirusScanners auto # Space-separated list
WorkUser
WorkGroup
WorkPerms 0600
#
# These variables match on any rule matching From:, else anything for To:
#
[First,YesNo]
AllowExternal 0 no 0 yes 1
AllowPartial 0 no 0 yes 1
ArchivePublicKeys 0 no 0 yes 1
blacklistedishigh 0 no 0 yes 1
bouncemcpasattachment 0 no 0 yes 1
bouncespamasattachment 0 no 0 yes 1
CheckSAIfOnSpamList 1 no 0 yes 1
ContentModifySubject start no 0 yes 1 start start end end
DeliverDisinfected 0 no 0 yes 1
DeliverSilent 0 no 0 yes 1
deliverunparsabletnef 0 no 0 yes 1
deliverymethod batch batch batch queue queue
DisarmModifySubject start no 0 yes 1 start start end end
EnableSpamBounce 0 no 0 yes 1
findarchivesbycontent 1 no 0 yes 1
gsscanner 0 no 0 yes 1
HideWorkDir 1 no 0 yes 1
HideWorkDirInNotice 0 no 0 yes 1
HighMCPModifySubject start no 0 yes 1 start start end end
HighSpamModifySubject start no 0 yes 1 start start end end
IncludeSpamHeader 0 no 0 yes 1
IncludeMCPHeader 0 no 0 yes 1
KeepSpamArchiveClean 0 no 0 yes 1
LastAfterBatch 0 no 0 yes 1
LastLookup 0 no 0 yes 1
ListSAScores 1 no 0 yes 1
#LoadSpamAssassin 0 no 0 yes 1
LogHTMLTags 0 no 0 yes 1
LogPermittedFilenames 0 no 0 yes 1
LogPermittedFiletypes 0 no 0 yes 1
LookForUU 0 no 0 yes 1
MultipleHeaders append append append replace replace add add
NameModifySubject start no 0 yes 1 start start end end
NoticeFullHeaders 1 no 0 yes 1
ScannedModifySubject 0 no 0 yes 1 start start end end
SendNotices 1 no 0 yes 1
SignAlreadyScanned 0 no 0 yes 1
SignCleanMessages 1 no 0 yes 1
SignUnscannedMessages 1 no 0 yes 1
SizeModifySubject start no 0 yes 1 start start end end
SpamBlacklist 0 no 0 yes 1
SpamDetail 1 no 0 yes 1
SpamChecks 1 no 0 yes 1
MCPModifySubject start no 0 yes 1 start start end end
SpamModifySubject start no 0 yes 1 start start end end
SpamScoreNotStars 0 no 0 yes 1
SpamWhitelist 0 no 0 yes 1
StripDangerousTags 0 no 0 yes 1
MCPBlacklist 0 no 0 yes 1
MCPblacklistedishigh 0 no 0 yes 1
MCPChecks 0 no 0 yes 1
MCPDetail 1 no 0 yes 1
MCPListSAScores 0 no 0 yes 1
MCPWhitelist 0 no 0 yes 1
UseSACache 1 no 0 yes 1
VirusModifySubject start no 0 yes 1 start start end end
warningisattachment 1 no 0 yes 1
WarnSenders 1 no 0 yes 1
WarnVirusSenders 0 no 0 yes 1
WarnNameSenders 1 no 0 yes 1
WarnSizeSenders 0 no 0 yes 1
WarnOtherSenders 1 no 0 yes 1
[First,File]
DeletedContentMessage /etc/MailScanner/reports/en/deleted.content.message.txt
DeletedFilenameMessage /etc/MailScanner/reports/en/deleted.filename.message.txt
DeletedSizeMessage /etc/MailScanner/reports/en/deleted.size.message.txt
DeletedVirusMessage /etc/MailScanner/reports/en/deleted.virus.message.txt
DisinfectedReportText /etc/MailScanner/reports/en/disinfected.report.txt
inlinehtmlsig /etc/MailScanner/reports/en/inline.sig.html
inlinehtmlwarning /etc/MailScanner/reports/en/inline.warning.html
inlinespamwarning /etc/MailScanner/reports/en/inline.spam.warning.txt
inlinetextsig /etc/MailScanner/reports/en/inline.sig.txt
inlinetextwarning /etc/MailScanner/reports/en/inline.warning.txt
languagestrings
recipientmcpreport /etc/MailScanner/reports/en/recipient.mcp.report.txt
recipientspamreport /etc/MailScanner/reports/en/recipient.spam.report.txt
rejectionreport /etc/MailScanner/reports/en/message.rejection.report.txt
sendercontentreport /etc/MailScanner/reports/en/sender.content.report.txt
sendererrorreport /etc/MailScanner/reports/en/sender.error.report.txt
senderfilenamereport /etc/MailScanner/reports/en/sender.filename.report.txt
SenderRBLSpamReport /etc/MailScanner/reports/en/sender.spam.rbl.report.txt
SenderSASpamReport /etc/MailScanner/reports/en/sender.spam.sa.report.txt
SenderSAMCPReport /etc/MailScanner/reports/en/sender.mcp.report.txt
SenderSizeReport /etc/MailScanner/reports/en/sender.size.report.txt
SenderBothSpamReport /etc/MailScanner/reports/en/sender.spam.report.txt
sendervirusreport /etc/MailScanner/reports/en/sender.virus.report.txt
StoredContentMessage /etc/MailScanner/reports/en/stored.content.message.txt
StoredFilenameMessage /etc/MailScanner/reports/en/stored.filename.message.txt
StoredSizeMessage /etc/MailScanner/reports/en/stored.size.message.txt
StoredVirusMessage /etc/MailScanner/reports/en/stored.virus.message.txt
[First,Command]
Sendmail /usr/sbin/sendmail
[First,Dir]
OutQueueDir /var/spool/mqueue
PublicKeyArchiveDir #/var/spool/MailScanner/keys
quarantinedir /var/spool/MailScanner/quarantine
[First,Number]
HighRBLs 3
HighSpamAssassinScore 10
MaxAttachmentSize -1
MaxMessageSize 0
MaxParts 200
MaxSpamListTimeouts 7
MaxZipDepth 2
MCPErrorScore 1
MCPHighSpamAssassinScore 10
MCPReqSpamAssassinScore 1
MinAttachmentSize -1
MinStars 0
NormalRBLs 1
ReqSpamAssassinScore 6
[First,Other]
AttachmentCharset ISO-8859-1
AttachmentWarningFilename VirusWarning.txt
AttachZipName MessageAttachments.zip
cleanheader Found to be clean
ContentSubjectText {Dangerous Content?}
dirtyheader Found to be infected
DisarmSubjectText {Disarmed}
DisinfectedHeader Disinfected
EnvFromHeader X-MailScanner-Envelope-From:
EnvToHeader X-MailScanner-Envelope-To:
HighMCPSubjectText {MCP?}
HighSpamSubjectText {Spam?}
Hostname the MailScanner
InfoHeader
InfoValue Please contact the ISP for more information
LocalPostmaster postmaster
MailHeader X-MailScanner:
NameSubjectText {Filename?}
NoticesFrom MailScanner
NoticeSignature -- \nMailScanner\nEmail Virus Scanner\nwww.mailscanner.info
PhishingSubjectTag {Fraud?}
ScannedSubjectText {Scanned}
ScoreFormat %d
Sendmail2 /usr/sbin/sendmail
SpamHeader X-MailScanner-SpamCheck:
SpamList
MCPSubjectText {MCP?}
SpamSubjectText {Spam?}
SpamStarsHeader X-MailScanner-SpamScore:
MCPHeader X-MailScanner-MCPCheck:
UnscannedHeader Not scanned: please contact your Internet E-Mail Service Provider for details
VirusSubjectText {Virus?}
WebBugURL http://www.mailscanner.info/images/1x1spacer.gif
HamActions deliver header "X-Spam-Status: No"
SpamActions deliver header "X-Spam-Status: Yes"
HighScoreSpamActions deliver header "X-Spam-Status: Yes"
NonMCPActions deliver
MCPActions deliver
HighScoreMCPActions deliver
SizeSubjectText {Size}
[All,YesNo]
AddEnvFrom 1 no 0 yes 1
AddEnvTo 0 no 0 yes 1
AllowIFrameTags convert no 0 yes 1 disarm convert
AllowFormTags convert no 0 yes 1 disarm convert
AllowObjectTags convert no 0 yes 1 disarm convert
AllowScriptTags convert no 0 yes 1 disarm convert
AllowPassZips 0 no 0 yes 1
AllowWebBugTags convert no 0 yes 1 disarm convert
BlockEncrypted 0 no 0 yes 1
BlockUnencrypted 0 no 0 yes 1
DangerScan 1 no 0 yes 1
DeliverCleanedMessages 1 no 0 yes 1
FindPhishing 1 no 0 yes 1
markinfectedmessages 1 no 0 yes 1
PhishingHighlight 1 no 0 yes 1
HtmlToText 0 no 0 yes 1
PhishingNumbers 1 no 0 yes 1
QuarantineInfections 1 no 0 yes 1
QuarantineModifiedBody 0 no 0 yes 1
QuarantineSilent 0 no 0 yes 1
QuarantineWholeMessage 0 no 0 yes 1
RejectMessage 0 no 0 yes 1
ReplaceTNEF 2 no 0 add 1 replace 2
ScanMail 1 no 0 yes 1
SpamStars 1 no 0 yes 1
StrictPhishing 1 no 0 yes 1
TagPhishingSubject 0 no 0 yes 1 start start end end
MCPUseSpamAssassin 1 no 0 yes 1
UseSpamAssassin 1 no 0 yes 1
VirusScan 1 no 0 yes 1
ZipAttachments 0 no 0 yes 1
[All,File]
#FilenameRules /etc/MailScanner/filename.rules.conf
[All,Other]
# This is the other stuff that came up in the search that I haven't
# figured out what to do with yet...
ArchiveMail
FilenameRules
FiletypeRules
NoisyViruses Joke/ OF97/ WM97/ W97M/ eicar
NoSenderPrecedence list bulk
NoticeRecipient postmaster
RemoveHeaders X-Mozilla-Status: X-Mozilla-Status2:
SilentViruses HTML-IFrame All-Viruses
SpamDomainList
webbugwhitelist
allowfilenames
denyfiletypes
allowfiletypes
denyfilenames
syntax highlighted by Code2HTML, v. 0.9.1