AntiSpam File Settings


This file specifies the core settings and options for the antispam engine. Most of the options are already located in the antispam dialog and you will not have to edit this file at all. Please, make changes to this file only if you know exactly what you are doing.
SpamBayesian = ("0" / "1")  
Enables bayesian filters.
 
SpamBayesianNoTag = ("0" / "1")  
OBSOLETE - Specifies that the bayesian probability should be calculated and used by other procedures but not evaluated as spam by the Bayesian engine.
 
SpamBayesianIgnoreMissing = ("0" / "1")  
Specifies all words from a message missing in the Spam DB will be ignored and not calculated.
 
SpamBayesianMaxWords = 1*DIGIT ; Max number of words
Specifies maximum number of words the bayesian database can include. New words will not be inserted.
 
SpamBayesCompactDays = 1*DIGIT ; Max age of words
Specifies max age of words to be deleted for auto indexing.
 
SpamPercentage = 1*DIGIT ; percentage number
Specifies the bayesian percentage for messages to be classified as spam. This option is overridden if SpamAssassin filter is enabled.
 
AddSubject = ("0" / "1")  
Add a string to message subject. System variables can also be used.
 
AddSubjectString = subjectstring  
Specifies the string to be prepended to the subject of a spam message.
 
OutgoingRules = ("0" / "1" / "2")  
Specifies the processing mode for outgoing messages.
0: check outgoing messages for spam
1: do not check outgoing messages for spam
2: reject outgoing spam messages
 
ArchiveIndexedMessages = ("0" / "1")  
This option specifies that all indexed messages will be placed under a Spam/Genuine archive folder so they can be viewed and checked later on and any fixes can be made eventually.
 
IgnoreMessagesLarger = 1*DIGIT ; size in kB
All messages greater than this size will be automatically considered to be genuine.
 
IndexGenuineAuth = ("0" / "1" ; Index as genuine (trusted and authorized)
This option enables indexing as genuine messages of trusted and authorized session emails.
 
MaxIndexMessagesPerDay = 1*DIGIT ; number of messages
Specifies the maximum number of messages per day that should be indexed using the auto indexing.
 
BypassKeywords BlockKeywords BlockKeywordScore = * (keyword ";")  
A message containing any of the keywords will be whitelisted or blacklisted.
 
spamReset = ("0" / "1" / "2")  
Spam settings level stored.
 
SpamRefuse = ("0" / "1")  
Mode for message refuse action.
 
SpamRefusePath = path  
Path to store refused messages to
 
BypassLocalIPs = ("0" / "1")  
All trusted IP addresses and authenticated SMTP sessions will be bypassed from the anti spam engine. Trusted IPs are specified in the Mail Service, Security, Relay IPs option.
 
BypassLocalDomains = ("0" / "1")  
All local domain sender messages will be bypassed from the anti spam engine.
 
WordStopList = *(word ";")  
These words will not be considered as words when calculating the bayesian probability. In fact the engine will completely ignore these words.
 
UseSpamFolder = ("0" / "1")  
Specifies the default mode whether the Spam Folder feature should be used or not. Exceptions can be made in the domain or user properties.
 
DeleteSpamMailOlder = 1*DIGIT ; number of days
This option specifies the number of days after which all messages in the Spam folder should be automatically deleted. 0 disables this delete feature.
 
SpamUseIMAP = ("0" / "1")  
Integrates IMAP with a user's spam folder.
 
SpamIMAPFolder = spamfoldername  
Specifies the IMAP spam folder name for users to see.
 
SpamBypassNonUsers = ("0" / "1")  
All local non user accounts will be bypassed by default and the antispam engine will not be applied to them.
 
SpamSkipBypassLocalUntrusted = ("0" / "1")  
Local sender domains from untrusted IPs and sessions will not be checked for bypass features.
 
SpamBypassGroupware SpamBypassIMRoster = ("0" / "1")  
Check groupware contact emails / instant messaging roster for spam messages senders or quarantine to bypass.
 
SpamMaxThreads = 1*DIGIT  
Specify and limit the number of threads used by whole antispam (for example not to take 100% CPU). 0 means unlimited threads.
 
SkipIndexingForCharsets = *(charset ";")  
You might need to specify several character sets you know you receive messages with. Bayesian filtering does not work with asian languages or languages that do not uses spaces as word separators. You should list all of those here.
 
CharsetSpam CharsetSpamScore = ("0" / "1")  
All messages with a charset from SkipIndexingForCharsets will considered as spam. The score specified by the CharsetSpamScore option will be added to the overall spam score.
 
MissingCharset MissingCharsetScore = ("0" / "1")  
Score assigned to messages without a charset and containing characters higher than 0x7F.
 
SpamUpdate = ("0" / "1")  
Enables the Spam DB updates from web.
 
SpamUpdateDays = 1*DIGIT ; bit-mapped value
Specifies which days the update should be applied. Each bit represents a day and the value is calculated as 127-bitmask.
Sunday: 1
Monday: 2
Tuesday: 4
Wednesday: 8
Thursday: 16
Friday: 32
Saturday: 64
Example:
SpamUpdateDays=0: update every day (127-(1+2+4+8+16+32+64)=0)
SpamUpdateDays=53: update on Mon, Wed, Sat (127-(2+8+64)=53)
SpamUpdateDays=126: update on Sundays only (127-1=126)
 
SpamUpdateTime = (hour ":" minute)  
Specifies the exact time the spam DB update should be applied at.
 
SpamUseCustomDB = ("0" / "1")  
All message indexings and DB changes will be applied to a custom DB (spam.db.usr) if turned on. Everything else will be done to the core DB (spam.db). When using a custom DB there will be no problem downloading updates from the web as only the core DB is updated from the web.
 
SpamUpdateURL = URL  
Specifies the update URL.
 
SpamUpdateProxy = hostname:port;username:pwd  
Specifies proxy server used for downloading the updates of the spam DB.
 
SpamFilterRecords = *(filter ";")  
filter = (days "," genuine "," spam)  
Specifies that records older than days and with the exact amount of indexed genuine and spam words will be dropped during a "Compact Database" process. This option is used for randomly generated words so they do not flood the Spam DB.
 
SpamHTMLExternalURL SpamHTMLExternalURLScore = ("0" / "1")  
HTML messages containing SRC with external URLs will be considered as spam. The score specified by the SpamHTMLExternalURLScore option will be added to the overall spam score.
 
SpamHTMLNoText SpamHTMLNoTextScore = ("0" / "1")  
HTML messages containing 0 length text or simply only HTML tags without any text will be considered as spam. The score specified by the SpamHTMLNoTextScore option will be added to the overall spam score.
 
SpamHTMLScript SpamHTMLScriptScore = ("0" / "1")  
HTML messages with script codes will be considered as spam. The score specified by the SpamHTMLScriptScore option will be added to the overall spam score.
 
SpamHTMLEqual SpamHTMLEqualScore = ("0" / "1")  
HTML messages should have approximately the same content in both text/plain and text/html message parts. If not the message is considered to be spam. The score specified by the SpamHTMLEqualScore option will be added to the overall spam score.
 
SpamBlankMail SpamBlankMailScsore = ("0" / "1")  
Messages without any subject and body will be considered as spam. The score specified by the SpamBlankMailScore option will be added to the overall spam score.
 
SpamReceivedHeade SpamReceivedHeadeScsore = ("0" / "1")  
Messages with only one received header (the one inserted by local server) will be scored.
 
SpamHTMLEmbdeddedImage SpamHTMLEmbdeddedImageScore = ("0" / "1")  
HTML messages with embedded images will be scored.
 
SpamHTMLOtherFilters SpamHTMLOtherFiltersScore = *(filter ";")  
HTML messages containing any of the items specified by the filters will be considered as spam. For instance you could add an IFRAME filter etc.
 
SpamChallenge = ("0" / "1")  
This option enables/disables Quarantine engine.
 
SpamChallengeLocalDomains = ("0" / "1" / "2")  
Mode whether local domain senders will be processed by quarantine.
 
SpamChallengeAddOutgoing = ("0" / "1")  
Automatically adds outbound message recipients to the white list for Quarantine.
 
SpamChallengeMarked = ("0" / "1")  
Apply Quarantine to messages marked as spam.
 
SpamChallengeUnMarked = ("0" / "1")  
Apply Quarantine to messages not marked as spam.
 
SpamChallengeManual = ("0" / "1")  
Disable challenge response request confirmation e-mails. Manual handling of the queue is required.
 
SpamChallengeExpires = 1*DIGIT ; number of days
Number of days before pending message (i.e. message awaiting authorization for Quarantine) is automatically deleted.
 
SpamChallengeURL = URL  
Confirmation website URL, e.g. http:mail.icewarp.com:32000/challenge/
 
SpamChallengeConnection = DSNname  
This option specifies DataBase connection string to DataBase used by Quarantine engine.
 
SpamChallengeEmailFrom = sender  
This value is used as the sender during SMTP session in the Quarantine request confirmation e-mail.
 
SpamChallengeMailFrom = fromheader  
This value is used in the From: header in the Quarantine request confirmation e-mail.
 
SpamChallengePerc = ("0" / "1")  
This option enables/disables application of Challenge Respons according to the Bayesian percentage.
 
SpamChallengeSpam = 1*DIGIT ; percentage number
SpamChallengeGenuine = 1*DIGIT ; percentage number
Quarantine applies if Bayesian percentage is between these two values.
 
SpamChallengeSeparateUsers = ("0" / "1" / "2")  
Send Quarantine e-mail to sender for each user, i.e. each user on the mail server will have to approve all senders.
 
SpamChallengeSAPerc = ("0" / "1")  
This option enables/disables application of Challenge Respons according to the SpamAssasin filters score.
 
SpamChallengeSASpam = 1*DIGIT ; score number
SpamChallengeSAGenuine = 1*DIGIT ; score number
Quarantine applies if SpamAssasin score is between these two values.
 
SpamChallengeSendOnce = ("0" / "1")  
If disabled (0) Quarantine applies to each message from sender - i.e. there is no "whitelisting" for Quarantine.
 
SpamChallengeFont = fontname  
SpamChallengeFontSize = 1*DIGIT ; font size
These options specify the font used on Quarantine web screen.
 
SpamAssassinEnabled = ("0" / "1")  
Spam Assassin engine enabled.
 
SpamAssassinMarked = ("0" / "1")  
Spam Assassin engine used on all messages including those marked as spam by other filters.
 
SpamAssassinRulesPath = spamrulespath  
By default the spam\rules path is used, you can also specify a different path by this option so you can for instance shared rules on the network.
 
SpamAssassinRulesStats = statisticsfilename  
Enables the spam assassin rules statistics which will be saved each midnight to this filename. Filename can contain "yyyymmddhhnnss" time variables.
 
SpamAssassinReporting = ("0" / "1")  
Enables the spam assassin reporting functions.
 
SpamAssassinNoCustom = ("0" / "1")  
This option disables using custom rules (spam\local.cf file) for SpamAssasin engine.
 
SpamAssassinMaxScore = 1*DIGIT ; score number
Maximum SpamAssasin score. Any higher score will be set to this value.
 
SpamMaxText = 1*DIGIT ; size in kB
Any antispam test will be applied only to the first SpamMaxText kilobytes of the message body, for performance reasons. HTML tags and special characters are ignored.
 
SAScore = ("0" / "1")  
When this option is enabled, messages with a score higher than the value specified by the SAScoreValue option will be marked as spam.
 
SAScoreValue = 1*DIGIT ; score number
Minimum score required to classify messages as spam, when the SAScore option is enabled.
 
SAQuarantine = ("0" / "1")  
When this option is enabled, messages with a score higher than the value specified by the SAQuarantineScore option will be sent to the quarantine e-mail address.
 
SAQuarantineScore = 1*DIGIT ; score number
Minimum score required to quarantine messages, when the SAQuarantine option is enabled.
 
SADelete = ("0" / "1")  
When this option is enabled, messages with a score higher than the value specified by the SADeleteScore option will be deleted.
 
SADeleteScore = 1*DIGIT ; score number
Minimum score required to delete messages, when the SADelete option is enabled.
 
SpamGLActive = ("0" / "1")  
Enable Greylisting system.
 
SpamGLAllow = 1*DIGIT ; seconds
Temporary rejection time of the incoming session. If the originating server is attempting to retry the delivery during this time period it is rejected.
 
SpamGLPending = 1*DIGIT ; hours
If the originating server will not retry to deliver the mail within this time period, the server IP is deleted from the database.
 
SpamGLAuthorized = 1*DIGIT ; days
The authorization will be valid for this number of days, then the remote server will have to go through Greylisting process again. If the value is set to 0 authorizations never expire.
 
SpamGLResponse = response  
Custom SMTP response for sessions refused by Greylisting. If left blank, the default SMTP response message is returned.
 
SpamGLDisconnect = ("0" / "1")  
Sometimes the remote server will attempt the delivery of the same message again during the same session, resulting in a loop. With this option looping connections will be terminated automatically.
 
SpamGLMode = ("0" / "1" / "2" / "3")  
Mode specifying the primary key of the grey listing engine.
 
SpamHashActive = ("0" / "1")  
Enables the content hash indexing service.
 
SpamHashScore = score  
The score for content hash messages.
 
SpamHashThreshold = threshold  
Threshold for messages to be scored.
 
SpamHashThresholExpire = expiration  
Expiration of content hash database records.
 
SpamHashExpire = expiration  
Expiration of content hash records which did not meet the threshold yet.
 
SpamHashMode = ("0" / "1" / "2")  
Mode for content hash indexing.
 
SpamNoSenderDomain SpamNoSenderDomainScore = ("0" / "1")  
Score messages where sender's domain does not have an MX record.
 
SpamHELOIP SpamHELOIPScore = ("0" / "1")  
Score messages where HELO host does not resolve to remote IP.
 
SpamRemoteSMTP SpamRemoteSMTPScore SpamRemoteSMTPConnectTimeout = ("0" / "1")  
Score messages where remote IP does not verify to a valid SMTP server. SpamRemoteSMTPConnectTimeout is a ms connection timeout
 
SpamQReports SpamFReports SpamReportMailFrom SpamQReportsMode SpamReportLogs = ("0" / "1")  
Enable spam reports
 
SpamLang = language  
Language id for challenge response and spam reports
 
SpamBList SpamWList SpamBDelete = ("0" / "1")  
Enable black/white list queries in the database