Configure the content filter settings.
warden --task=contentfilter:milter
Options |
Value | Default | Description |
---|---|---|---|
--smtp_milter |
<1|0> | 1 | Enable the amavisd-milter on any mail that is received using the Postfix smtpd server running on any of the SMTP ports (25, 587, 465). This should be enabled at all times unless you have a reason to disable spam and virus scanning on your incoming and outgoing SMTP based email. |
--non_smtp_milter |
<1|0> | 1 | Enable the amavisd-milter on any mail that is sent using the Postfix sendmail command-line or the Postfix qmqpd server including any scripts using the PHP mail function. Users who send out a lot of PHP based mail may want to disable this if they do not want it scanned by Amavis. Note that disabling this will also disable any outgoing logging or statistics for any PHP based mail. |
--milter_default_action |
<string> | accept | How postfix handles milter application errors like when the amavisd-milter is down. Specify "accept" if you want to receive mail as if the filter does not exist, "tempfail" temporary error status so that the client will try again later, or "reject" to reject mail with a permanent status. |
--SOCKET |
<string> | inet:10024@127.0.0.1 | The communication socket between postfix and amavisd. This should not be changed. |
--MAX_CONNECTIONS |
<string> | 0 | The maximum concurrent amavisd connections. It must match the max servers entry under Filter settings. The default of 0 means an unlimited number of connections. Most servers should not have to change the default 0 setting. |
--MAX_WAIT |
<string> | 300 | The maximum wait for connection to amavisd in seconds. It must be less then sending MTA timeout for a response to the final "." that terminates a message on sending MTA. We suggest to use less than 10 minutes. |
--MAILDAEMON_TIMEOUT |
<string> | 600 | The connection timeout in seconds. It must must be greater than or equal to the amavisd connection timeout. When you use other milters (especially time-consuming), the timeout must be sufficient to process message in all milters. |
--AMAVISD_TIMEOUT |
<string> | 600 | The amavisd connection timeout in seconds. This timeout must be sufficient for message processing in amavisd. It is usually a good idea to adjust them to the same value as postfix connection timeout. |
--AMAVISD_OPTIONS |
<string> | -B -P | The parameters listed will be passed directly to amavisd-milter directly. The -B option enables policy bank support and is required. The -P option allows messages to pass though unchecked if Amavis fails. |
--default |
<yes> | Reset all settings to their default values. | |
--default_option |
<option> | Reset a specific setting to its default value. | |
--reload |
<yes> | Reload the service after saving settings. |
Options |
Value | Default | Description |
---|---|---|---|
--smtp_milter |
<1|0> | 1 | Enable the amavisd-milter on any mail that is received using the Postfix smtpd server running on any of the SMTP ports (25, 587, 465). This should be enabled at all times unless you have a reason to disable spam and virus scanning on your incoming and outgoing SMTP based email. |
--non_smtp_milter |
<1|0> | 1 | Enable the amavisd-milter on any mail that is sent using the Postfix sendmail command-line or the Postfix qmqpd server including any scripts using the PHP mail function. Users who send out a lot of PHP based mail may want to disable this if they do not want it scanned by Amavis. Note that disabling this will also disable any outgoing logging or statistics for any PHP based mail. |
--milter_default_action |
<string> | accept | How postfix handles milter application errors like when the amavisd-milter is down. Specify "accept" if you want to receive mail as if the filter does not exist, "tempfail" temporary error status so that the client will try again later, or "reject" to reject mail with a permanent status. |
--MILTERSOCKET |
<string> | inet:10024@127.0.0.1 | The communication socket between postfix and amavisd. This should not be changed. |
--AMAVISSOCKET |
<string> | /var/lib/amavis/amavisd.sock | The default location of the amavisd socket. |
--WORKINGDIR |
<string> | /var/lib/amavis/tmp | Here amavisd-milter stores the mails which should get checked (needs to be changed when amavisd TEMPBASE variable is modified). |
--EXTRAPARAMS |
<string> | -B -P | The parameters listed will be passed directly to amavisd-milter directly. The -B option enables policy bank support and is required. The -P option allows messages to pass though unchecked if Amavis fails. |
--default |
<yes> | Reset all settings to their default values. | |
--default_option |
<option> | Reset a specific setting to its default value. | |
--reload |
<yes> | Reload the service after saving settings. |
// disable the non_smtp_milter
warden --task=contentfilter:milter --non_smtp_milter=0 --reload=yes
// reset non_smtp_milter to default
warden --task=contentfilter:milter --default_option=non_smtp_milter --reload=yes
// reset all settings to defaults
warden --task=contentfilter:milter--default=yes --reload=yes