qmail-dcc
Section: User Commands (1)
Index
Return to Main Contents
NAME
qmail-dcc - test message for bulkiness
SYNOPSIS
Can be invoked by
qmail-qfilter
or
qmail-local.
qmail-dcc [-rhot] [-m message] [-s /path/to/socket ]
DESCRIPTION
If the environment variable
QMAILDCC
is set and equal to "1",
qmail-dcc
will test the message on stdin for bulkiness. stdin must be a seekable file.
qmail-dcc
requires a
dccifd
instance to be running.
- -h
-
Adds a
X-DCC
header to the message. The header is composed of the text
returned by
dccifd.
An existing header is removed.
- -r
-
Reject the message if
dccifd
indicates it is a bulk message.
- -t
-
Tell
dccifd
to update the checksum counts based on this message.
- -o
-
Only emit the header that would be added.
- -m message
-
If rejected, the string
message
is used in the SMTP reject response. Default is the standard qmail reject
response, "554 mail server permanently rejected message (#5.3.0)".
If
message
is prefixed with
env:,
the rest of the string is treated as the name of an environment variable
that contains the reject response.
- -s /path/to/socket
-
The socket used to communicate with
dccifd.
If not supplied,
the default value is
/etc/dcc/dccifd.
USAGE
With
qmail-qfilter:
-
#!/bin/bash
export DCCREJ='Message rejected as bulk (#5.3.0)'
/path/to/qmail-qfilter \
/path/to/qmail-dcc -r -m env:DCCREJ -s /etc/dcc/dccifd
As a delivery instruction for
qmail-local:
-
|/path/to/qmail-dcc -h | forward $LOCAL@server-exchange.com
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- USAGE
-
This document was created by
man2html,
using the manual pages.
Time: 09:21:51 GMT, May 04, 2005