Prev | Current Page 1399 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

Note that the $& prefix is necessary when you reference this
macro in rules (that is, use $&a, not $a).
21.9.3 ${addr_type}
Is address recipient/sender header/envelope V8.10 and later
Some rule sets are passed only a recipient or a sender address, supplied from either a
header or the envelope. Examples are rule sets 1 and 2, and the rule sets indicated by the R=
and S= equates. Other rule sets, such as the canonify rule set 3, can be called withany
combination.
When designing rules, it might be necessary to know whether those rules are dealing with a
sender or a recipient, and whether the address is from the envelope or a header. Beginning
withV8.10, sendmail offers the ${addr_type} macro as a means to solve that very problem.
As shown in Table 21-8, the ${addr_type} macro can hold any of several pairs of characters,
depending on whether the address is from the envelope or a header, and whether the
address is that of a sender or a recipient.
To illustrate one use for this ${addr_type} macro??™s value, consider a rule set that screens
addresses and rejects any that are found in a database of spam sender hosts:
LOCAL_CONFIG
Kspammers hash /etc/mail/spammers
LOCAL_RULESETS
SDomainLookup
R $+ <@ $=w .> $@ OK local users are always OK
R $+ <@ $+> $: $1 <@ $2 > <$&{addr_type}>
R $+ <@ $+> $@ OK we only screen envelope senders.


Pages:
1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411
wierszyki bajka Tango Olsztyn pozycjonowanie typy bukmacherskie