9srv Manual Collection/plan9/smtpd(6) | 9srv Manual Collection/plan9/smtpd(6) |
---|
Many parameters are addresses, either numeric IP addresses in CIDR notation or a sender address in UUCP-style format.
An IP address in CIDR notation has the form
consisting of a four octet IP address, a slash, and a mask length specifying the number of significant high-order bits. The lower the mask length, the larger the range of addresses covered by the CIDR address; see RFC 1878 for a discussion of mask lengths. Missing low-order octets are assumed to be zero. If a mask length is not given, a mask length of 16, 24, or 32 is assumed for addresses containing two, three, or four octets, respectively. These mask lengths select a class B, class C or Class D address block. Notice that this convention differs from the standard treatment, where the default mask length depends on the allocation class of the network block containing the address.
Sender addresses are specified in UUCP notation as follows:
It is seldom necessary to specify more than one domain. When domain is missing or *, the address selects the specified user in all domains. A domain of the form *.domain selects the domain and all of its sub-domains. For example, example.com!user only matches the account user in domain example.com, while *.example.com!user selects that account in example.com and all of its sub-domains. When user is omitted or *, the address selects all users in the specified domain. Finally, when * is the last character of the user name it is a wild-card matching all user names beginning with user. This limited pattern matching capability should be used with care. For safety, the sender addresses *, !, *!, !* and *!* are ignored.
When the norelay option is enabled or the -f command line option given, relaying is allowed only if the source IP address is in ournets or the destination domain is specified in ourdomains.
The command line format and address specifications conform to the notation described above. If the parameters of the verb is sender addresses in UUCP format, the line must begin with an * character; if the parameters are one or more IP addresses, the * must precede the verb. Most verbs cause messages to be rejected; verbs of this class generally select different error messages. The remaining verbs specify addresses that are always accepted, in effect overriding blocked addresses. The file is processed in order, so an override must precede its associated blocked address. Supported verbs are:
Scanmail(8) describes spam detection software that works well with the capabilities described here and mail(1) defines additional smtpd command line arguments applicable to exposed systems.
9srv Manual Collection/plan9/smtpd(6) | Rev: Sun Dec 02 23:42:25 GMT 2007 |