Back to index

opendkim  2.6.6
opendkim-config.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2006-2009 Sendmail, Inc. and its suppliers.
00003 **     All rights reserved.
00004 **
00005 **  Copyright (c) 2009-2012, The OpenDKIM Project.  All rights reserved.
00006 **
00007 **  $Id: opendkim-config.h,v 1.32.10.1 2010/10/27 21:43:09 cm-msk Exp $
00008 */
00009 
00010 #ifndef _DKIM_CONFIG_H_
00011 #define _DKIM_CONFIG_H_
00012 
00013 #ifndef lint
00014 static char dkim_config_h_id[] = "@(#)$Id: opendkim-config.h,v 1.32.10.1 2010/10/27 21:43:09 cm-msk Exp $";
00015 #endif /* !lint */
00016 
00017 #include "build-config.h"
00018 
00019 /* system includes */
00020 #include <sys/types.h>
00021 
00022 /* macros */
00023 #ifndef FALSE
00024 # define FALSE       0
00025 #endif /* ! FALSE */
00026 #ifndef TRUE
00027 # define TRUE 1
00028 #endif /* ! TRUE */
00029 
00030 /* config definition */
00031 struct configdef dkimf_config[] =
00032 {
00033        { "AddAllSignatureResults", CONFIG_TYPE_BOOLEAN, FALSE },
00034        { "ADSPAction",                    CONFIG_TYPE_STRING,  FALSE },
00035        { "ADSPNoSuchDomain",              CONFIG_TYPE_BOOLEAN, FALSE },
00036        { "AllowSHA1Only",          CONFIG_TYPE_BOOLEAN, FALSE },
00037        { "AlwaysAddARHeader",             CONFIG_TYPE_BOOLEAN, FALSE },
00038        { "AlwaysSignHeaders",             CONFIG_TYPE_STRING,  FALSE },
00039 #ifdef _FFR_ATPS
00040        { "ATPSDomains",            CONFIG_TYPE_STRING,  FALSE },
00041        { "ATPSHashAlgorithm",             CONFIG_TYPE_STRING,  FALSE },
00042 #endif /* _FFR_ATPS */
00043        { "AuthservID",                    CONFIG_TYPE_STRING,  FALSE },
00044        { "AuthservIDWithJobID",    CONFIG_TYPE_BOOLEAN, FALSE },
00045        { "AutoRestart",            CONFIG_TYPE_BOOLEAN, FALSE },
00046        { "AutoRestartCount",              CONFIG_TYPE_INTEGER, FALSE },
00047        { "AutoRestartRate",        CONFIG_TYPE_STRING,  FALSE },
00048        { "Background",                    CONFIG_TYPE_BOOLEAN, FALSE },
00049        { "BaseDirectory",          CONFIG_TYPE_STRING,  FALSE },
00050        { "BodyLengthDB",           CONFIG_TYPE_STRING,  FALSE },
00051 #ifdef USE_UNBOUND
00052        { "BogusKey",               CONFIG_TYPE_STRING,  FALSE },
00053        { "BogusPolicy",            CONFIG_TYPE_STRING,  FALSE },
00054 #endif /* USE_UNBOUND*/
00055        { "Canonicalization",              CONFIG_TYPE_STRING,  FALSE },
00056        { "CaptureUnknownErrors",   CONFIG_TYPE_BOOLEAN, FALSE },
00057        { "ChangeRootDirectory",    CONFIG_TYPE_STRING,  FALSE },
00058        { "ClockDrift",                    CONFIG_TYPE_INTEGER, FALSE },
00059 #ifdef _FFR_DEFAULT_SENDER
00060        { "DefaultSender",          CONFIG_TYPE_STRING,  FALSE },
00061 #endif /* _FFR_DEFAULT_SENDER */
00062        { "Diagnostics",            CONFIG_TYPE_BOOLEAN, FALSE },
00063        { "DiagnosticDirectory",    CONFIG_TYPE_STRING,  FALSE },
00064        { "DisableADSP",            CONFIG_TYPE_BOOLEAN, FALSE },
00065 #ifdef _FFR_DKIM_REPUTATION
00066        { "DKIMReputationFail",            CONFIG_TYPE_INTEGER, FALSE },
00067        { "DKIMReputationPass",            CONFIG_TYPE_INTEGER, FALSE },
00068        { "DKIMReputationReject",   CONFIG_TYPE_INTEGER, FALSE },
00069        { "DKIMReputationRoot",            CONFIG_TYPE_STRING,  FALSE },
00070 #endif /* _FFR_DKIM_REPUTATION */
00071        { "DNSConnect",                    CONFIG_TYPE_BOOLEAN, FALSE },
00072        { "DNSTimeout",                    CONFIG_TYPE_INTEGER, FALSE },
00073        { "Domain",                 CONFIG_TYPE_STRING,  FALSE },
00074        { "DomainKeysCompat",              CONFIG_TYPE_BOOLEAN, FALSE },
00075        { "DontSignMailTo",         CONFIG_TYPE_STRING,  FALSE },
00076        { "EnableCoredumps",        CONFIG_TYPE_BOOLEAN, FALSE },
00077        { "ExemptDomains",          CONFIG_TYPE_STRING,  FALSE },
00078        { "ExternalIgnoreList",            CONFIG_TYPE_STRING,  FALSE },
00079 #ifdef USE_LUA
00080        { "FinalPolicyScript",             CONFIG_TYPE_STRING,  FALSE },
00081 #endif /* USE_LUA */
00082        { "FixCRLF",                CONFIG_TYPE_BOOLEAN, FALSE },
00083 #ifdef _FFR_IDENTITY_HEADER
00084 #ifdef _FFR_RATE_LIMIT
00085        { "FlowData",               CONFIG_TYPE_STRING,  FALSE },
00086        { "FlowDataFactor",         CONFIG_TYPE_INTEGER, FALSE },
00087        { "FlowDataTTL",            CONFIG_TYPE_INTEGER, FALSE },
00088 #endif /* _FFR_RATE_LIMIT */
00089        { "IdentityHeader",         CONFIG_TYPE_STRING,     FALSE },
00090        { "IdentityHeaderRemove",   CONFIG_TYPE_BOOLEAN,    FALSE },
00091 #endif /* _FFR_IDENTITY_HEADER */
00092        { "Include",                CONFIG_TYPE_INCLUDE, FALSE },
00093 #ifdef USE_UNBOUND
00094        { "InsecureKey",            CONFIG_TYPE_STRING,  FALSE },
00095        { "InsecurePolicy",         CONFIG_TYPE_STRING,  FALSE },
00096 #endif /* USE_UNBOUND */
00097        { "InternalHosts",          CONFIG_TYPE_STRING,  FALSE },
00098        { "KeepAuthResults",        CONFIG_TYPE_BOOLEAN, FALSE },
00099        { "KeepTemporaryFiles",            CONFIG_TYPE_BOOLEAN, FALSE },
00100        { "KeyFile",                CONFIG_TYPE_STRING,  FALSE },
00101        { "KeyTable",               CONFIG_TYPE_STRING,  FALSE },
00102 #ifdef USE_LDAP
00103        { "LDAPAuthMechanism",             CONFIG_TYPE_STRING,  FALSE },
00104 # ifdef USE_SASL
00105        { "LDAPAuthName",           CONFIG_TYPE_STRING,  FALSE },
00106        { "LDAPAuthRealm",          CONFIG_TYPE_STRING,  FALSE },
00107        { "LDAPAuthUser",           CONFIG_TYPE_STRING,  FALSE },
00108 # endif /* USE_SASL */
00109        { "LDAPBindPassword",              CONFIG_TYPE_STRING,  FALSE },
00110        { "LDAPBindUser",           CONFIG_TYPE_STRING,  FALSE },
00111        { "LDAPKeepaliveIdle",             CONFIG_TYPE_STRING,  FALSE },
00112        { "LDAPKeepaliveInterval",  CONFIG_TYPE_STRING,  FALSE },
00113        { "LDAPKeepaliveProbes",    CONFIG_TYPE_STRING,  FALSE },
00114        { "LDAPSoftStart",          CONFIG_TYPE_BOOLEAN, FALSE },
00115        { "LDAPTimeout",            CONFIG_TYPE_STRING,  FALSE },
00116        { "LDAPUseTLS",                    CONFIG_TYPE_BOOLEAN, FALSE },
00117 #endif /* USE_LDAP */
00118        { "LocalADSP",                     CONFIG_TYPE_STRING,  FALSE },
00119        { "LogResults",                    CONFIG_TYPE_BOOLEAN, FALSE },
00120        { "LogWhy",                 CONFIG_TYPE_BOOLEAN, FALSE },
00121        { "MaximumHeaders",         CONFIG_TYPE_INTEGER, FALSE },
00122        { "MaximumSignedBytes",            CONFIG_TYPE_INTEGER, FALSE },
00123        { "MaximumSignaturesToVerify",     CONFIG_TYPE_INTEGER, FALSE },
00124        { "MacroList",                     CONFIG_TYPE_STRING,  FALSE },
00125        { "MilterDebug",            CONFIG_TYPE_INTEGER, FALSE },
00126        { "Minimum",                CONFIG_TYPE_STRING,  FALSE },
00127        { "MultipleSignatures",            CONFIG_TYPE_BOOLEAN, FALSE },
00128        { "Mode",                   CONFIG_TYPE_STRING,  FALSE },
00129        { "MTA",                    CONFIG_TYPE_STRING,  FALSE },
00130        { "MTACommand",                    CONFIG_TYPE_STRING,  FALSE },
00131        { "MustBeSigned",           CONFIG_TYPE_STRING,  FALSE },
00132 #ifdef _FFR_ADSP_LISTS
00133        { "NoDiscardableMailTo",    CONFIG_TYPE_STRING,  FALSE },
00134 #endif /* _FFR_ADSP_LISTS */
00135        { "NoHeaderB",                     CONFIG_TYPE_BOOLEAN, FALSE },
00136        { "OmitHeaders",            CONFIG_TYPE_STRING,  FALSE },
00137        { "On-BadSignature",        CONFIG_TYPE_STRING,  FALSE },
00138        { "On-Default",                    CONFIG_TYPE_STRING,  FALSE },
00139        { "On-DNSError",            CONFIG_TYPE_STRING,  FALSE },
00140        { "On-InternalError",              CONFIG_TYPE_STRING,  FALSE },
00141        { "On-KeyNotFound",         CONFIG_TYPE_STRING,  FALSE },
00142        { "On-NoSignature",         CONFIG_TYPE_STRING,  FALSE },
00143        { "On-PolicyError",         CONFIG_TYPE_STRING,  FALSE },
00144 #ifdef _FFR_REPUTATION
00145        { "On-ReputationError",            CONFIG_TYPE_STRING,  FALSE },
00146 #endif /* _FFR_REPUTATION */
00147        { "On-Security",            CONFIG_TYPE_STRING,  FALSE },
00148 #ifdef _FFR_OVERSIGN
00149        { "OverSignHeaders",        CONFIG_TYPE_STRING,  FALSE },
00150 #endif /* _FFR_OVERSIGN */
00151        { "PeerList",               CONFIG_TYPE_STRING,  FALSE },
00152        { "PidFile",                CONFIG_TYPE_STRING,  FALSE },
00153 #ifdef POPAUTH
00154        { "POPDBFile",                     CONFIG_TYPE_STRING,  FALSE },
00155 #endif /* POPAUTH */
00156        { "Quarantine",                    CONFIG_TYPE_BOOLEAN, FALSE },
00157 #ifdef QUERY_CACHE
00158        { "QueryCache",                    CONFIG_TYPE_BOOLEAN, FALSE },
00159 #endif /* QUERY_CACHE */
00160 #ifdef _FFR_RATE_LIMIT
00161        { "RateLimits",                    CONFIG_TYPE_STRING,  FALSE },
00162 #endif /* _FFR_RATE_LIMIT */
00163 #ifdef _FFR_REDIRECT
00164        { "RedirectFailuresTo",            CONFIG_TYPE_STRING,  FALSE },
00165 #endif /* _FFR_REDIRECT */
00166        { "RemoveARAll",            CONFIG_TYPE_BOOLEAN, FALSE },
00167        { "RemoveARFrom",           CONFIG_TYPE_STRING,  FALSE },
00168        { "RemoveOldSignatures",    CONFIG_TYPE_BOOLEAN, FALSE },
00169 #ifdef _FFR_REPLACE_RULES
00170        { "ReplaceRules",           CONFIG_TYPE_STRING,  FALSE },
00171 #endif /* _FFR_REPLACE_RULES */
00172        { "ReportAddress",          CONFIG_TYPE_STRING,  FALSE },
00173        { "ReportBccAddress",              CONFIG_TYPE_STRING,  FALSE },
00174 #ifdef _FFR_REPUTATION
00175        { "ReputationCache",        CONFIG_TYPE_STRING,  FALSE },
00176        { "ReputationCacheTTL",            CONFIG_TYPE_INTEGER, FALSE },
00177        { "ReputationDuplicates",   CONFIG_TYPE_STRING,  FALSE },
00178        { "ReputationLimits",              CONFIG_TYPE_STRING,  FALSE },
00179        { "ReputationLowTime",             CONFIG_TYPE_STRING,  FALSE },
00180        { "ReputationMinimum",             CONFIG_TYPE_INTEGER, FALSE },
00181        { "ReputationLimitModifiers",      CONFIG_TYPE_STRING,  FALSE },
00182        { "ReputationRatios",              CONFIG_TYPE_STRING,  FALSE },
00183        { "ReputationSpamCheck",    CONFIG_TYPE_STRING,  FALSE },
00184        { "ReputationTimeFactor",   CONFIG_TYPE_INTEGER, FALSE },
00185        { "ReputationVerbose",             CONFIG_TYPE_BOOLEAN, FALSE },
00186 #endif /* _FFR_REPUTATION */
00187        { "RequestReports",         CONFIG_TYPE_BOOLEAN, FALSE },
00188        { "RequiredHeaders",        CONFIG_TYPE_BOOLEAN, FALSE },
00189        { "RequireSafeKeys",        CONFIG_TYPE_BOOLEAN, FALSE },
00190 #ifdef _FFR_RESIGN
00191        { "ResignAll",                     CONFIG_TYPE_BOOLEAN, FALSE },
00192        { "ResignMailTo",           CONFIG_TYPE_STRING,  FALSE },
00193 #endif /* _FFR_RESIGN */
00194 #ifdef USE_UNBOUND
00195        { "ResolvConf",                    CONFIG_TYPE_STRING,  FALSE },
00196 #endif /* USE_UNBOUND */
00197        { "ResolverTracing",        CONFIG_TYPE_BOOLEAN, FALSE },
00198 #ifdef USE_LUA
00199        { "ScreenPolicyScript",            CONFIG_TYPE_STRING,  FALSE },
00200 #endif /* USE_LUA */
00201        { "Selector",               CONFIG_TYPE_STRING,  FALSE },
00202        { "SelectCanonicalizationHeader", CONFIG_TYPE_STRING,   FALSE },
00203        { "SendADSPReports",        CONFIG_TYPE_BOOLEAN, FALSE },
00204        { "SenderHeaders",          CONFIG_TYPE_STRING,  FALSE },
00205 #ifdef _FFR_SENDER_MACRO
00206        { "SenderMacro",            CONFIG_TYPE_STRING,  FALSE },
00207 #endif /* _FFR_SENDER_MACRO */
00208        { "SendReports",            CONFIG_TYPE_BOOLEAN, FALSE },
00209 #ifdef USE_LUA
00210        { "SetupPolicyScript",             CONFIG_TYPE_STRING,  FALSE },
00211 #endif /* USE_LUA */
00212        { "SignatureAlgorithm",            CONFIG_TYPE_STRING,  FALSE },
00213        { "SignatureTTL",           CONFIG_TYPE_INTEGER, FALSE },
00214        { "SignHeaders",            CONFIG_TYPE_STRING,  FALSE },
00215        { "SigningTable",           CONFIG_TYPE_STRING,  FALSE },
00216        { "Socket",                 CONFIG_TYPE_STRING,  FALSE },
00217 #ifdef _FFR_STATS
00218        { "Statistics",                    CONFIG_TYPE_STRING,  FALSE },
00219        { "StatisticsName",         CONFIG_TYPE_STRING,  FALSE },
00220 # ifdef USE_LUA
00221 #  ifdef _FFR_STATSEXT
00222        { "StatisticsPolicyScript", CONFIG_TYPE_STRING,  FALSE },
00223 #  endif /* _FFR_STATSEXT */
00224 # endif /* USE_LUA */
00225        { "StatisticsPrefix",              CONFIG_TYPE_STRING,  FALSE },
00226 #endif /* _FFR_STATS */
00227        { "StrictHeaders",          CONFIG_TYPE_BOOLEAN, FALSE },
00228        { "StrictTestMode",         CONFIG_TYPE_BOOLEAN, FALSE },
00229        { "SubDomains",                    CONFIG_TYPE_BOOLEAN, FALSE },
00230        { "Syslog",                 CONFIG_TYPE_BOOLEAN, FALSE },
00231        { "SyslogFacility",         CONFIG_TYPE_STRING,  FALSE },
00232        { "SyslogSuccess",          CONFIG_TYPE_BOOLEAN, FALSE },
00233        { "TemporaryDirectory",            CONFIG_TYPE_STRING,  FALSE },
00234        { "TestDNSData",            CONFIG_TYPE_STRING,  FALSE },
00235        { "TestPublicKeys",         CONFIG_TYPE_STRING,  FALSE },
00236 #ifdef USE_UNBOUND
00237        { "TrustAnchorFile",        CONFIG_TYPE_STRING,  FALSE },
00238 #endif /* USE_UNBOUND */
00239        { "TrustSignaturesFrom",    CONFIG_TYPE_STRING,  FALSE },
00240        { "UMask",                  CONFIG_TYPE_INTEGER, FALSE },
00241 #ifdef USE_UNBOUND
00242        { "UnboundConfigFile",             CONFIG_TYPE_STRING,  FALSE },
00243 #endif /* USE_UNBOUND */
00244        { "UserID",                 CONFIG_TYPE_STRING,  FALSE },
00245 #ifdef _FFR_VBR
00246        { "VBR-Certifiers",         CONFIG_TYPE_STRING,  FALSE },
00247        { "VBR-PurgeFields",        CONFIG_TYPE_BOOLEAN, FALSE },
00248        { "VBR-TrustedCertifiers",  CONFIG_TYPE_STRING,  FALSE },
00249        { "VBR-TrustedCertifiersOnly",     CONFIG_TYPE_BOOLEAN, FALSE },
00250        { "VBR-Type",               CONFIG_TYPE_STRING,  FALSE },
00251 #endif /* _FFR_VBR */
00252        { "WeakSyntaxChecks",              CONFIG_TYPE_BOOLEAN, FALSE },
00253        { "X-Header",               CONFIG_TYPE_BOOLEAN, FALSE },
00254        { NULL,                            (u_int) -1,          FALSE }
00255 };
00256 
00257 #endif /* _DKIM_CONFIG_H_ */