Milter.LogLevelThe Milter.LogLevel option is of type number. If it is set with a negative number (other than a -1), a nonnumeric expression, or the value zero, no Milter logging will be done. If the Milter.LogLevel option is entirely missing (or set to a -1), it defaults to the same value as that specified for the LogLevel option (LogLevel). Otherwise, this option sets the log level used by sendmail to report on external Milter programs: define(`confMILTER_LOG_LEVEL',`9')
Here, the Milter log level is set to 9, which will report everything logged at level 9 and below. As of this writing, all Milter levels less than 10 are logged at LOG_ERR, and those greater than 10 are logged at LOG_INFO. Also as of this writing, only a few Milter log levels are available:
Milter.macros.connectThe Milter.macros.connect option is of type string. If set, it lists the sendmail macros whose names and values should be passed to the external program after a connection has been accepted. Only the macro names should be listed here (omit the leading $ from each), separated by commas.[42] For example:
define(`confMILTER_MACROS_CONNECT',``j, {daemon_name}'')
At most, 40 macros can be listed. If you list too many, the following error will be printed and logged: milter_set_option: too many macros in Milter.macros.connect num (max 40)
There is no built-in default. The default for the mc configuration technique includes the macros $j ($j), $_ ($_), ${daemon_name} (${daemon_name}), ${if_name} (${if_name}), and ${if_addr} (${if_addr}). If you replace the default list with no macros, none will be sent to the external program. Milter.macros.heloThe Milter.macros.helo option is of type string. If set, it lists the sendmail macros whose names and values should be passed to the external program after the HELO or EHLO command has been received. Only the macro names should be listed here (omit the leading $ from each), separated by commas.[43] For example:
define(`confMILTER_MACROS_HELO',``{client_addr}, {client_name}'')
At most, 40 macros can be listed. If you list too many, the following error will be printed and logged: milter_set_option: too many macros in Milter.macros.helo num (max 40) There is no built-in default. The default for the mc configuration technique includes the macros ${tls_version} (${tls_version}), ${cipher} (${cipher}), ${cipher_bits} (${cipher_bits}), ${cert_subject} (${cert_subject}), and ${cert_issuer} (${cert_issuer}). If you replace the default list with no macros, none will be sent to the external program. Milter.macros.envfromThe Milter.macros.envfrom option is of type string. If set, it lists the sendmail macros whose names and values should be passed to the external program after the MAIL FROM: command has been received. Only the macro names should be listed here (omit the leading $ from each), separated by commas.[44] For example:
define(`confMILTER_MACROS_ENVFROM',``{mail_addr}, {mail_mailer}'')
At most, 40 macros can be listed. If you list too many, the following error will be printed and logged: milter_set_option: too many macros in Milter.macros.envfrom num (max 40) There is no built-in default. The default for the mc configuration technique includes the macros $i ($i), ${auth_type} (${auth_type}), ${auth_authen} (${auth_authen}), ${auth_ssf} (${auth_ssf}), ${auth_author} (${auth_author}), ${mail_mailer} (${mail_mailer}), ${mail_host} (${mail_host}), and ${mail_addr} (${mail_addr}). If you replace the default list with no macros, none will be sent to the external program. Milter.macros.envrcptThe Milter.macros.envrcpt option is of type string. If set, it lists the sendmail macros whose names and values should be passed to the external program after each RCPT TO: command has been received. Only the macro names should be listed here (omit the leading $ from each), separated by commas.[45] For example:
define(`confMILTER_MACROS_ENVRCPT',``{rcpt_addr}, {rcpt_mailer}'')
At most, 40 macros can be listed. If you list too many, the following error will be printed and logged: milter_set_option: too many macros in Milter.macros.envrcpt num (max 40)
There is no built-in default. The default for the mc configuration technique includes the macros ${rcpt_mailer} (${rcpt_mailer}), ${rcpt_host} (${rcpt_host}), and ${rcpt_addr} (${rcpt_addr}). If you replace the default list with no macros, none will be sent to the external program. None of these Milter options is safe. If specified from the command line, any can cause sendmail to relinquish its special privileges. |