{NULL,"database",'d',TYPE_STRING,NULL,-1,DATADIR,FLAG_REQUIRED|FLAG_MULTIPLE,OPT_CLAMSCAN,"",""},/* merge it with DatabaseDirectory (and fix conflict with --datadir */
{"LogFileUnlock",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_MILTER,"By default the log file is locked for writing and only a single\ndaemon process can write to it. This option disables the lock.","yes"},
{"LogFileMaxSize",NULL,0,TYPE_SIZE,MATCH_SIZE,1048576,NULL,0,OPT_CLAMD|OPT_FRESHCLAM|OPT_MILTER,"Maximum size of the log file.\nValue of 0 disables the limit.","5M"},
{"LogFacility",NULL,0,TYPE_STRING,NULL,-1,"LOG_LOCAL6",FLAG_REQUIRED,OPT_CLAMD|OPT_FRESHCLAM|OPT_MILTER,"Type of syslog messages.\nPlease refer to 'man syslog' for the facility names.","LOG_MAIL"},
{"LogRotate","log-rotate",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_FRESHCLAM|OPT_MILTER,"Rotate log file. Requires LogFileMaxSize option set prior to this option.","yes"},
{"ExtendedDetectionInfo",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD,"Log additional information about the infected file, such as its\nsize and hash, together with the virus name.","yes"},
{"TemporaryDirectory","tempdir",0,TYPE_STRING,NULL,-1,NULL,0,OPT_CLAMD|OPT_MILTER|OPT_CLAMSCAN|OPT_SIGTOOL,"This option allows you to change the default temporary directory.","/tmp"},
{"DatabaseDirectory","datadir",0,TYPE_STRING,NULL,-1,DATADIR,0,OPT_CLAMD|OPT_FRESHCLAM|OPT_SIGTOOL,"This option allows you to change the default database directory.\nIf you enable it, please make sure it points to the same directory in\nboth clamd and freshclam.","/var/lib/clamav"},
{"OfficialDatabaseOnly","official-db-only",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Only load the official signatures published by the ClamAV project.","no"},
{"TCPAddr",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_CLAMD,"By default clamd binds to INADDR_ANY.\nThis option allows you to restrict the TCP address and provide\nsome degree of protection from the outside world.","127.0.0.1"},
{"StreamMaxLength",NULL,0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXFILESIZE,NULL,0,OPT_CLAMD,"Close the STREAM session when the data size limit is exceeded.\nThe value should match your MTA's limit for the maximum attachment size.","25M"},
{"StreamMinPort",NULL,0,TYPE_NUMBER,MATCH_NUMBER,1024,NULL,0,OPT_CLAMD,"The STREAM command uses an FTP-like protocol.\nThis option sets the lower boundary for the port range.","1024"},
{"ReadTimeout",NULL,0,TYPE_NUMBER,MATCH_NUMBER,120,NULL,0,OPT_CLAMD,"This option specifies the time (in seconds) after which clamd should\ntimeout if a client doesn't provide any data.","120"},
{"CommandReadTimeout",NULL,0,TYPE_NUMBER,MATCH_NUMBER,5,NULL,0,OPT_CLAMD,"This option specifies the time (in seconds) after which clamd should\ntimeout if a client doesn't provide any initial command after connecting.","5"},
{"SendBufTimeout",NULL,0,TYPE_NUMBER,MATCH_NUMBER,500,NULL,0,OPT_CLAMD,"This option specifies how long to wait (in miliseconds) if the send buffer\nis full. Keep this value low to prevent clamd hanging.","200"},
{"MaxQueue",NULL,0,TYPE_NUMBER,MATCH_NUMBER,100,NULL,0,OPT_CLAMD,"Maximum number of queued items (including those being processed by MaxThreads\nthreads). It is recommended to have this value at least twice MaxThreads\nif possible.\nWARNING: you shouldn't increase this too much to avoid running out of file\n descriptors, the following condition should hold:\n MaxThreads*MaxRecursion + MaxQueue - MaxThreads + 6 < RLIMIT_NOFILE\n (usual max for RLIMIT_NOFILE is 1024)\n","200"},
{"IdleTimeout",NULL,0,TYPE_NUMBER,MATCH_NUMBER,30,NULL,0,OPT_CLAMD,"This option specifies how long (in seconds) the process should wait\nfor a new job.","60"},
{"ExcludePath",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_CLAMD,"Don't scan files/directories whose names match the provided\nregular expression. This option can be specified multiple times.","^/proc/\n^/sys/"},
{"MaxDirectoryRecursion","max-dir-recursion",0,TYPE_NUMBER,MATCH_NUMBER,15,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Maximum depth the directories are scanned at.","15"},
{"SelfCheck",NULL,0,TYPE_NUMBER,MATCH_NUMBER,600,NULL,0,OPT_CLAMD,"This option specifies the time intervals (in seconds) in which clamd\nshould perform a database check.","600"},
{"VirusEvent",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_CLAMD,"Execute a command when a virus is found. In the command string %v will be\nreplaced with the virus name. Additionally, two environment variables will\nbe defined: $CLAM_VIRUSEVENT_FILENAME and $CLAM_VIRUSEVENT_VIRUSNAME.","/usr/bin/mailx -s \"ClamAV VIRUS ALERT: %v\" alert < /dev/null"},
{"AllowSupplementaryGroups",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_FRESHCLAM|OPT_MILTER,"Initialize a supplementary group access (the process must be started by root).","no"},
{"Bytecode","bytecode",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"With this option enabled ClamAV will load bytecode from the database. It is highly recommended you keep this option on, otherwise you'll miss detections for many new viruses.","yes"},
"Set bytecode security level.\nPossible values:\n\tTrustSigned - trust bytecode loaded from signed .c[lv]d files,\n\t\t insert runtime safety checks for bytecode loaded from other sources\n\tParanoid - don't trust any bytecode, insert runtime checks for all\nRecommended: TrustSigned, because bytecode in .cvd files already has these checks.","TrustSigned"},
"Set bytecode execution mode.\nPossible values:\n\tAuto - automatically choose JIT if possible, fallback to interpreter\nForceJIT - always choose JIT, fail if not possible\nForceIntepreter - always choose interpreter\nTest - run with both JIT and interpreter and compare results. Make all failures fatal.","Auto"},
{"ExcludePUA","exclude-pua",0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_CLAMD|OPT_CLAMSCAN,"Exclude a specific PUA category. This directive can be used multiple times.\nSee http://www.clamav.net/support/pua for the complete list of PUA\ncategories.","NetTool\nPWTool"},
{"IncludePUA","include-pua",0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_CLAMD|OPT_CLAMSCAN,"Only include a specific PUA category. This directive can be used multiple\ntimes.","Spy\nScanner\nRAT"},
{"AlgorithmicDetection","algorithmic-detection",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"In some cases (eg. complex malware, exploits in graphic files, and others),\nClamAV uses special algorithms to provide accurate detection. This option\ncontrols the algorithmic detection.","yes"},
{"ScanPE","scan-pe",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"PE stands for Portable Executable - it's an executable file format used\nin all 32- and 64-bit versions of Windows operating systems. This option\nallows ClamAV to perform a deeper analysis of executable files and it's also\nrequired for decompression of popular executable packers such as UPX or FSG.\nIf you turn off this option, the original files will still be scanned, but\nwithout additional processing.","yes"},
{"ScanELF","scan-elf",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Executable and Linking Format is a standard format for UN*X executables.\nThis option allows you to control the scanning of ELF files.\nIf you turn off this option, the original files will still be scanned, but\nwithout additional processing.","yes"},
{"DetectBrokenExecutables","detect-broken",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"With this option enabled clamav will try to detect broken executables\n(both PE and ELF) and mark them as Broken.Executable.","yes"},
{"ScanMail","scan-mail",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Enable the built in email scanner.\nIf you turn off this option, the original files will still be scanned, but\nwithout parsing individual messages/attachments.","yes"},
{"ScanPartialMessages",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD,"Scan RFC1341 messages split over many emails. You will need to\nperiodically clean up $TemporaryDirectory/clamav-partial directory.\nWARNING: This option may open your system to a DoS attack. Please don't use\nthis feature on highly loaded servers.","no"},
{"PhishingSignatures","phishing-sigs",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"With this option enabled ClamAV will try to detect phishing attempts by using\nsignatures.","yes"},
{"PhishingScanURLs","phishing-scan-urls",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Scan URLs found in mails for phishing attempts using heuristics.","yes"},
{"PhishingAlwaysBlockCloak","phishing-cloak",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Always block cloaked URLs, even if they're not in the database.\nThis feature can lead to false positives.","no"},
{"PhishingAlwaysBlockSSLMismatch","phishing-ssl",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Always block SSL mismatches in URLs, even if they're not in the database.\nThis feature can lead to false positives.",""},
{"HeuristicScanPrecedence","heuristic-scan-precedence",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Allow heuristic match to take precedence.\nWhen enabled, if a heuristic scan (such as phishingScan) detects\na possible virus/phish it will stop scan immediately. Recommended, saves CPU\nscan-time.\nWhen disabled, virus/phish detected by heuristic scans will be reported only\nat the end of a scan. If an archive contains both a heuristically detected\nvirus/phish, and a real malware, the real malware will be reported.\nKeep this disabled if you intend to handle \"*.Heuristics.*\" viruses\ndifferently from \"real\" malware.\nIf a non-heuristically-detected virus (signature-based) is found first,\nthe scan is interrupted immediately, regardless of this config option.","yes"},
{"StructuredMinCreditCardCount","structured-cc-count",0,TYPE_NUMBER,MATCH_NUMBER,CLI_DEFAULT_MIN_CC_COUNT,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the lowest number of Credit Card numbers found in a file\nto generate a detect.","5"},
{"StructuredMinSSNCount","structured-ssn-count",0,TYPE_NUMBER,MATCH_NUMBER,CLI_DEFAULT_MIN_SSN_COUNT,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the lowest number of Social Security Numbers found\nin a file to generate a detect.","5"},
{"StructuredSSNFormatNormal",NULL,0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD,"With this option enabled the DLP module will search for valid\nSSNs formatted as xxx-yy-zzzz.","yes"},
{"StructuredSSNFormatStripped",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD,"With this option enabled the DLP module will search for valid\nSSNs formatted as xxxyyzzzz","no"},
{"ScanHTML","scan-html",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Perform HTML/JavaScript/ScriptEncoder normalisation and decryption.\nIf you turn off this option, the original files will still be scanned, but\nwithout additional processing.","yes"},
{"ScanOLE2","scan-ole2",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option enables scanning of OLE2 files, such as Microsoft Office\ndocuments and .msi files.\nIf you turn off this option, the original files will still be scanned, but\nwithout additional processing.","yes"},
{"OLE2BlockMacros",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD,"With this option enabled OLE2 files with VBA macros, which were not\ndetected by signatures will be marked as \"Heuristics.OLE2.ContainsMacros\".","no"},
{"ScanPDF","scan-pdf",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option enables scanning within PDF files.\nIf you turn off this option, the original files will still be scanned, but\nwithout decoding and additional processing.","yes"},
{"ScanSWF","scan-swf",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option enables scanning within SWF files.\nIf you turn off this option, the original files will still be scanned, but\nwithout decoding and additional processing.","yes"},
{"ScanArchive","scan-archive",0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Scan within archives and compressed files.\nIf you turn off this option, the original files will still be scanned, but\nwithout unpacking and additional processing.","yes"},
{"MaxScanSize","max-scansize",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXSCANSIZE,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the maximum amount of data to be scanned for each input file.\nArchives and other containers are recursively extracted and scanned up to this\nvalue.\nThe value of 0 disables the limit.\nWARNING: disabling this limit or setting it too high may result in severe\ndamage.","100M"},
{"MaxFileSize","max-filesize",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXFILESIZE,NULL,0,OPT_CLAMD|OPT_MILTER|OPT_CLAMSCAN,"Files/messages larger than this limit won't be scanned. Affects the input\nfile itself as well as files contained inside it (when the input file is\nan archive, a document or some other kind of container).\nThe value of 0 disables the limit.\nWARNING: disabling this limit or setting it too high may result in severe\ndamage to the system.","25M"},
{"MaxRecursion","max-recursion",0,TYPE_NUMBER,MATCH_NUMBER,CLI_DEFAULT_MAXRECLEVEL,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR\nfile, all files within it will also be scanned. This option specifies how\ndeeply the process should be continued.\nThe value of 0 disables the limit.\nWARNING: disabling this limit or setting it too high may result in severe\ndamage to the system.","16"},
{"MaxFiles","max-files",0,TYPE_NUMBER,MATCH_NUMBER,CLI_DEFAULT_MAXFILES,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Number of files to be scanned within an archive, a document, or any other\ncontainer file.\nThe value of 0 disables the limit.\nWARNING: disabling this limit or setting it too high may result in severe\ndamage to the system.","10000"},
{"MaxEmbeddedPE","max-embeddedpe",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXEMBEDDEDPE,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the maximum size of a file to check for embedded PE.\nFiles larger than this value will skip the additional analysis step.\nNegative values are not allowed.\nWARNING: setting this limit too high may result in severe damage or impact performance.","10M"},
{"MaxHTMLNormalize","max-htmlnormalize",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXHTMLNORMALIZE,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the maximum size of a HTML file to normalize.\nHTML files larger than this value will not be normalized or scanned.\nNegative values are not allowed.\nWARNING: setting this limit too high may result in severe damage or impact performance.","10M"},
{"MaxHTMLNoTags","max-htmlnotags",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXHTMLNOTAGS,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the maximum size of a normalized HTML file to scan.\nHTML files larger than this value after normalization will not be scanned.\nNegative values are not allowed.\nWARNING: setting this limit too high may result in severe damage or impact performance.","2M"},
{"MaxScriptNormalize","max-scriptnormalize",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXSCRIPTNORMALIZE,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the maximum size of a script file to normalize.\nScript content larger than this value will not be normalized or scanned.\nNegative values are not allowed.\nWARNING: setting this limit too high may result in severe damage or impact performance.","5M"},
{"MaxZipTypeRcg","max-ziptypercg",0,TYPE_SIZE,MATCH_SIZE,CLI_DEFAULT_MAXZIPTYPERCG,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"This option sets the maximum size of a ZIP file to reanalyze type recognition.\nZIP files larger than this value will skip the step to potentially reanalyze as PE.\nNegative values are not allowed.\nWARNING: setting this limit too high may result in severe damage or impact performance.","1M"},
{"OnAccessIncludePath",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_CLAMD,"This option specifies a directory (including all files and directories\ninside it), which should be scanned on access. This option can\nbe used multiple times.","/home\n/students"},
{"OnAccessExcludePath",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_CLAMD,"This option allows excluding directories from on-access scanning. It can\nbe used multiple times.","/home/bofh\n/root"},
{"OnAccessExcludeUID",NULL,0,TYPE_NUMBER,MATCH_NUMBER,-1,NULL,FLAG_MULTIPLE,OPT_CLAMD,"With this option you can whitelist specific UIDs. Processes with these UIDs\nwill be able to access all files.\nThis option can be used multiple times (one per line).","0"},
{"DatabaseOwner","user",'u',TYPE_STRING,NULL,-1,CLAMAVUSER,FLAG_REQUIRED,OPT_FRESHCLAM,"When started by root freshclam will drop privileges and switch to the user\ndefined in this option.",CLAMAVUSER},
{"Checks","checks",'c',TYPE_NUMBER,MATCH_NUMBER,12,NULL,0,OPT_FRESHCLAM,"This option defined how many times daily freshclam should check for\na database update.","24"},
{"DNSDatabaseInfo",NULL,0,TYPE_STRING,NULL,-1,"current.cvd.clamav.net",FLAG_REQUIRED,OPT_FRESHCLAM,"Use DNS to verify the virus database version. Freshclam uses DNS TXT records\nto verify the versions of the database and software itself. With this\ndirective you can change the database verification domain.\nWARNING: Please don't change it unless you're configuring freshclam to use\nyour own database verification domain.","current.cvd.clamav.net"},
{"DatabaseMirror",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_FRESHCLAM,"DatabaseMirror specifies to which mirror(s) freshclam should connect.\nYou should have at least two entries: db.XY.clamav.net (or db.XY.ipv6.clamav.net\nfor IPv6) and database.clamav.net (in this order). Please replace XY with your\ncountry code (see http://www.iana.org/cctld/cctld-whois.htm).\ndatabase.clamav.net is a round-robin record which points to our most reliable\nmirrors. It's used as a fall back in case db.XY.clamav.net is not working.","db.XY.clamav.net\ndatabase.clamav.net"},
{"PrivateMirror",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_FRESHCLAM,"This option allows you to easily point freshclam to private mirrors.\nIf PrivateMirror is set, freshclam does not attempt to use DNS\nto determine whether its databases are out-of-date, instead it will\nuse the If-Modified-Since request or directly check the headers of the\nremote database files. For each database, freshclam first attempts\nto download the CLD file. If that fails, it tries to download the\nCVD file. This option overrides DatabaseMirror, DNSDatabaseInfo\nand Scripted Updates. It can be used multiple times to provide\nfall-back mirrors.","mirror1.mynetwork.com\nmirror2.mynetwork.com"},
{"MaxAttempts",NULL,0,TYPE_NUMBER,MATCH_NUMBER,3,NULL,0,OPT_FRESHCLAM,"This option defines how many attempts freshclam should make before giving up.","5"},
{"ScriptedUpdates",NULL,0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_FRESHCLAM,"With this option you can control scripted updates. It's highly recommended to keep them enabled.","yes"},
{"TestDatabases",NULL,0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_FRESHCLAM,"With this option enabled, freshclam will attempt to load new\ndatabases into memory to make sure they are properly handled\nby libclamav before replacing the old ones.","yes"},
{"CompressLocalDatabase",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_FRESHCLAM,"By default freshclam will keep the local databases (.cld) uncompressed to\nmake their handling faster. With this option you can enable the compression.\nThe change will take effect with the next database update.",""},
{"ExtraDatabase",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_FRESHCLAM,"Download an additional 3rd party signature database distributed through\nthe ClamAV mirrors. This option can be used multiple times.\nHere you can find a list of available databases:\nhttp://www.clamav.net/download/cvd/3rdparty","dbname1\ndbname2"},
{"DatabaseCustomURL",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_FRESHCLAM,"With this option you can provide custom sources (http:// or file://) for database files.\nThis option can be used multiple times.","http://myserver.com/mysigs.ndb\nfile:///mnt/nfs/local.hdb"},
{"HTTPUserAgent",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_FRESHCLAM,"If your servers are behind a firewall/proxy which does a User-Agent\nfiltering you can use this option to force the use of a different\nUser-Agent header.","default"},
{"NotifyClamd","daemon-notify",0,TYPE_STRING,NULL,-1,CONFDIR_CLAMD,0,OPT_FRESHCLAM,"Send the RELOAD command to clamd after a successful update.","yes"},
{"OnOutdatedExecute","on-outdated-execute",0,TYPE_STRING,NULL,-1,NULL,0,OPT_FRESHCLAM,"Run a command when freshclam reports an outdated version.\nIn the command string %v will be replaced with the new version number.","command"},
{"LocalIPAddress","local-address",'a',TYPE_STRING,NULL,-1,NULL,0,OPT_FRESHCLAM,"With this option you can provide a client address for the database downlading.\nUseful for multi-homed systems.","aaa.bbb.ccc.ddd"},
{"SubmitDetectionStats",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_FRESHCLAM,"When enabled freshclam will submit statistics to the ClamAV Project about\nthe latest virus detections in your environment. The ClamAV maintainers\nwill then use this data to determine what types of malware are the most\ndetected in the field and in what geographic area they are.\nFreshclam will connect to clamd in order to get recent statistics.","/path/to/clamd.conf"},
{"DetectionStatsCountry",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_FRESHCLAM,"Country of origin of malware/detection statistics (for statistical\npurposes only). The statistics collector at ClamAV.net will look up\nyour IP address to determine the geographical origin of the malware\nreported by your installation. If this installation is mainly used to\nscan data which comes from a different location, please enable this\noption and enter a two-letter code (see http://www.iana.org/domains/root/db/)\nof the country of origin.","country-code"},
{"DetectionStatsHostID",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_FRESHCLAM,"This option enables support for our \"Personal Statistics\" service.\nWhen this option is enabled, the information on malware detected by\nyour clamd installation is made available to you through our website.\nTo get your HostID, log on http://www.stats.clamav.net and add a new\nhost to your host list. Once you have the HostID, uncomment this option\nand paste the HostID here. As soon as your freshclam starts submitting\ninformation to our stats collecting service, you will be able to view\nthe statistics of this clamd installation by logging into\nhttp://www.stats.clamav.net with the same credentials you used to\ngenerate the HostID. For more information refer to:\nhttp://www.clamav.net/support/faq/faq-cctts/\nThis feature requires SubmitDetectionStats to be enabled.","unique-id"},
{"SafeBrowsing",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_FRESHCLAM,"This option enables support for Google Safe Browsing. When activated for\nthe first time, freshclam will download a new database file (safebrowsing.cvd)\nwhich will be automatically loaded by clamd and clamscan during the next\nreload, provided that the heuristic phishing detection is turned on. This\ndatabase includes information about websites that may be phishing sites or\npossible sources of malware. When using this option, it's mandatory to run\nfreshclam at least every 30 minutes.\nFreshclam uses the ClamAV's mirror infrastructure to distribute the\ndatabase and its updates but all the contents are provided under Google's\nterms of use. See http://code.google.com/support/bin/answer.py?answer=70015\nand http://safebrowsing.clamav.net for more information.","yes"},
{"Bytecode",NULL,0,TYPE_BOOL,MATCH_BOOL,1,NULL,0,OPT_FRESHCLAM,"This option enables downloading of bytecode.cvd, which includes additional\ndetection mechanisms and improvements to the ClamAV engine.","yes"},
{"DisableCertCheck","nocerts",0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_CLAMD|OPT_CLAMSCAN,"Disable authenticode certificate chain verification in PE files.","no"},
{"ClamdSocket",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_MILTER,"Define the clamd socket to connect to for scanning.\nThis option is mandatory! Syntax:\n ClamdSocket unix:path\n ClamdSocket tcp:host:port\nThe first syntax specifies a local unix socket (needs an absolute path) e.g.:\n ClamdSocket unix:/var/run/clamd/clamd.socket\nThe second syntax specifies a tcp local or remote tcp socket: the\nhost can be a hostname or an ip address; the \":port\" field is only required\nfor IPv6 addresses, otherwise it defaults to 3310\n ClamdSocket tcp:192.168.0.1\nThis option can be repeated several times with different sockets or even\nwith the same socket: clamd servers will be selected in a round-robin fashion.","tcp:scanner.mydomain:7357"},
{"MilterSocket",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"Define the interface through which we communicate with sendmail.\nThis option is mandatory! Possible formats are:\n[[unix|local]:]/path/to/file - to specify a unix domain socket;\ninet:port@[hostname|ip-address] - to specify an ipv4 socket;\ninet6:port@[hostname|ip-address] - to specify an ipv6 socket.","/tmp/clamav-milter.socket\ninet:7357"},
{"LocalNet",NULL,0,TYPE_STRING,NULL,-1,NULL,FLAG_MULTIPLE,OPT_MILTER,"Messages originating from these hosts/networks will not be scanned\nThis option takes a host(name)/mask pair in CIRD notation and can be\nrepeated several times. If \"/mask\" is omitted, a host is assumed.\nTo specify a locally orignated, non-smtp, email use the keyword \"local\".","local\n192.168.0.0/24\n1111:2222:3333::/48"},
{"OnClean",NULL,0,TYPE_STRING,"^(Accept|Reject|Defer|Blackhole|Quarantine)$",-1,"Accept",0,OPT_MILTER,"Action to be performed on clean messages (mostly useful for testing).\nThe following actions are available:\nAccept: the message is accepted for delievery\nReject: immediately refuse delievery (a 5xx error is returned to the peer)\nDefer: return a temporary failure message (4xx) to the peer\nBlackhole: like Accept but the message is sent to oblivion\nQuarantine: like Accept but message is quarantined instead of being delivered","Accept"},
{"OnInfected",NULL,0,TYPE_STRING,"^(Accept|Reject|Defer|Blackhole|Quarantine)$",-1,"Quarantine",0,OPT_MILTER,"Action to be performed on clean messages (mostly useful for testing).\nThe following actions are available:\nAccept: the message is accepted for delievery\nReject: immediately refuse delievery (a 5xx error is returned to the peer)\nDefer: return a temporary failure message (4xx) to the peer\nBlackhole: like Accept but the message is sent to oblivion\nQuarantine: like Accept but message is quarantined instead of being delivered","Quarantine"},
{"OnFail",NULL,0,TYPE_STRING,"^(Accept|Reject|Defer)$",-1,"Defer",0,OPT_MILTER,"Action to be performed on error conditions (this includes failure to\nallocate data structures, no scanners available, network timeouts, unknown\nscanner replies and the like.\nThe following actions are available:\nAccept: the message is accepted for delievery;\nReject: immediately refuse delievery (a 5xx error is returned to the peer);\nDefer: return a temporary failure message (4xx) to the peer.","Defer"},
{"RejectMsg",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"This option allows to set a specific rejection reason for infected messages\nand it's therefore only useful together with \"OnInfected Reject\"\nThe string \"%v\", if present, will be replaced with the virus name.","MTA specific"},
{"AddHeader",NULL,0,TYPE_STRING,"^(No|Replace|Yes|Add)$",-1,"no",0,OPT_MILTER,"If this option is set to \"Replace\" (or \"Yes\"), an \"X-Virus-Scanned\" and an\n\"X-Virus-Status\" headers will be attached to each processed message, possibly\nreplacing existing headers.\nIf it is set to Add, the X-Virus headers are added possibly on top of the\nexisting ones.\nNote that while \"Replace\" can potentially break DKIM signatures, \"Add\" may\nconfuse procmail and similar filters.","Replace"},
{"ReportHostname",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"When AddHeader is in use, this option allows to arbitrary set the reported\nhostname. This may be desirable in order to avoid leaking internal names.\nIf unset the real machine name is used.","my.mail.server.name"},
{"VirusAction",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"Execute a command when an infected message is processed.\nThe following parameters are passed to the invoked program in this order:\nvirus name, queue id, sender, destination, subject, message id, message date.\nNote #1: this requires MTA macroes to be available (see LogInfected below)\nNote #2: the process is invoked in the context of clamav-milter\nNote #3: clamav-milter will wait for the process to exit. Be quick or fork to\navoid unnecessary delays in email delievery","/usr/local/bin/my_infected_message_handler"},
{"Chroot",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"Chroot to the specified directory.\nChrooting is performed just after reading the config file and before\ndropping privileges.","/newroot"},
{"Whitelist",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"This option specifies a file which contains a list of basic POSIX regular\nexpressions. Addresses (sent to or from - see below) matching these regexes\nwill not be scanned. Optionally each line can start with the string \"From:\"\nor \"To:\" (note: no whitespace after the colon) indicating if it is,\nrespectively, the sender or recipient that is to be whitelisted.\nIf the field is missing, \"To:\" is assumed.\nLines starting with #, : or ! are ignored.","/etc/whitelisted_addresses"},
{"SkipAuthenticated",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"Messages from authenticated SMTP users matching this extended POSIX\nregular expression (egrep-like) will not be scanned.\nAs an alternative, a file containing a plain (not regex) list of names (one\nper line) can be specified using the prefix \"file:\".\ne.g. SkipAuthenticated file:/etc/good_guys\n\nNote: this is the AUTH login name!","SkipAuthenticated ^(tom|dick|henry)$"},
{"LogInfected",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"This option allows to tune what is logged when a message is infected.\nPossible values are Off (the default - nothing is logged),\nBasic (minimal info logged), Full (verbose info logged)\nNote:\nFor this to work properly in sendmail, make sure the msg_id, mail_addr,\nrcpt_addr and i macroes are available in eom. In other words add a line like:\nMilter.macros.eom={msg_id}, {mail_addr}, {rcpt_addr}, i\nto your .cf file. Alternatively use the macro:\ndefine(`confMILTER_MACROS_EOM', `{msg_id}, {mail_addr}, {rcpt_addr}, i')\nPostfix should be working fine with the default settings.","Basic"},
{"LogClean",NULL,0,TYPE_STRING,NULL,-1,NULL,0,OPT_MILTER,"This option allows to tune what is logged when no threat is found in a scanned message.\nSee LogInfected for possible values and caveats.\nUseful in debugging but drastically increases the log size.","Basic"},
{"SupportMultipleRecipients",NULL,0,TYPE_BOOL,MATCH_BOOL,0,NULL,0,OPT_MILTER,"This option affects the behaviour of LogInfected, LogClean and VirusAction\nwhen a message with multiple recipients is scanned:\nIf SupportMultipleRecipients is off (the default)\nthen one single log entry is generated for the message and, in case the\nmessage is determined to be malicious, the command indicated by VirusAction\nis executed just once. In both cases only the last recipient is reported.\nIf SupportMultipleRecipients is on:\nthen one line is logged for each recipient and the command indicated\nby VirusAction is also executed once for each recipient.\n\nNote: although it's probably a good idea to enable this option, the default value\nis currently set to off for legacy reasons.","yes"},