Prev | Current Page 2035 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

All rights reserved.
25.5 Rules Check Header Contents | 1135
prevent sendmail from stripping RFC2822 parenthetical comments from each
header??™s value.
Consider a site that sends email only to mailing lists. On such a site, it is desirable to
prevent mail that is considered spam from going out. One way to do this is to reject
all mail that contains addresses that are in either Cc: or Bcc: headers (good addresses
should only be in To: headers). Such a site might have an mc file that contains the
following:
LOCAL_CONFIG
C{BannedRecipientHeaders} Cc Bcc
H*: $>CheckBanned
LOCAL_RULESETS
SCheckBanned
R $* $: $&{hdr_name}
R $={BannedRecipientHeaders} $#error $@ 5.7.0 $: "553 Banned recipient header"
The LOCAL_CONFIG part of this mc file contains two configuration commands.
The first declares a class called BannedRecipientHeaders and assigns to that class a list
of header names that should be banned, those being the Cc: or Bcc: headers with the
colon removed.
The second configuration command starts with the wildcard form of the H configuration
command. The * in place of a header??™s name causes all headers, other than those
that have their own H configuration commands, to be screened by the CheckBanned
rule set.
The LOCAL_RULESETS part of this mc file contains a single rule set, the
CheckBanned rule set, which contains two rules.


Pages:
2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047
życzenia ślubne gustowne meble katowice felgi aluminiowe poznań katalog firm katalog stron