Prev | Current Page 1400 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


R $+ <@ $+> $@ OK we don't screen header addresses.
R $+ <@ $+> <$*> $(spammers $2 $: OK $)
R OK $@ OK
R $* $@ ERROR
Under the LOCAL_CONFIG section of this mc configuration file, we define a database,
/etc/mail/spammers, that contains a list of sites we want to reject for spamming.
Under the LOCAL_RULESETS section, we declare the DomainLookup rule set. We might call
this rule set from other policy rule sets, such as Local_check_mail (?§7.1.2 on page 255).
The first rule accepts anything that looks like a local address. The second rule appends the
value of the ${addr_type} macro to the workspace. The third and fourth rules accept all
envelope recipient addresses and all header addresses, but not envelope sender addresses.
Table 21-8. Possible values for the {addr_type} macro
Value Meaning
e s An envelope sender address
e r An envelope recipient address
h A header recipient address or header sender address
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
804 | Chapter 21: The D (Define a Macro) Configuration Command
The fifth rule looks up the envelope sender??™s host in the spammers database. If that hostname
is found, its value is returned (a spam site was found). If it is not found in the
database, OK is returned (the site is not a spam site). The last two rules simply return OK or
ERROR to indicate the nature of the hostname.


Pages:
1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412
życzenia dieta light katalog stron oferty fenster berlin