X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/qmail/blobdiff_plain/2117e02ec495fdfd6e96b39778b701a5bcff8aa5..897b03dfcf776b99815eaddde4d58479f05ba166:/qmail-smtpd.8 diff --git a/qmail-smtpd.8 b/qmail-smtpd.8 index f1cb4a2..d00f339 100644 --- a/qmail-smtpd.8 +++ b/qmail-smtpd.8 @@ -28,12 +28,49 @@ supports ESMTP, including the 8BITMIME and PIPELINING options. .B qmail-smtpd converts the SMTP newline convention into the UNIX newline convention by converting CR LF into LF. +It returns a temporary error and drops the connection on bare LFs; +see +.BR http://pobox.com/~djb/docs/smtplf.html . .B qmail-smtpd accepts messages that contain long lines or non-ASCII characters, even though such messages violate the SMTP protocol. .SH "CONTROL FILES" .TP 5 +.I addrcheck.cdb +A database of acceptable mailboxes. If present, this is used to report +erroneous RCPT TO commands, which can reduce the amount of junk mail +accepted. It contains an encoding of the virtual domains map +.RB ( \c +.BI V domain +maps to +.IR prefix ), +the local domains +.RB ( \c +.BI @ domain +maps to an empty string), and the available local parts +.RB ( \c +.BI L mailbox +maps to +.B + +if the address is valid or +.B \- +if not). It's best made using +.BR qmail-valid-addresses (8). +.TP 5 +.I addrcheck-delay +Delay in seconds before reporting bad mailbox names after the +.I addrcheck-slow +limit is reached. The default is 2. +.TP 5 +.I addrcheck-limit +Number of bad mailbox names to tolerate before dropping the connection. +Zero means an infinite number. The default is 50. +.TP 5 +.I addrcheck-slow +Number of bad mailbox names to tolerate before imposing delays. The +default is 5. +.TP 5 .I badmailfrom Unacceptable envelope sender addresses. .B qmail-smtpd @@ -47,6 +84,33 @@ may be of the form meaning every address at .IR host . .TP 5 +.I databytes +Maximum number of bytes allowed in a message, +or 0 for no limit. +Default: 0. +If a message exceeds this limit, +.B qmail-smtpd +returns a permanent error code to the client; +in contrast, if +the disk is full or +.B qmail-smtpd +hits a resource limit, +.B qmail-smtpd +returns a temporary error code. + +.I databytes +counts bytes as stored on disk, not as transmitted through the network. +It does not count the +.B qmail-smtpd +Received line, the +.B qmail-queue +Received line, or the envelope. + +If the environment variable +.B DATABYTES +is set, it overrides +.IR databytes . +.TP 5 .I localiphost Replacement host name for local IP addresses. Default: @@ -67,6 +131,29 @@ with This is done before .IR rcpthosts . .TP 5 +.I morercpthosts +Extra allowed RCPT domains. +If +.I rcpthosts +and +.I morercpthosts +both exist, +.I morercpthosts +is effectively appended to +.IR rcpthosts . + +You must run +.B qmail-newmrh +whenever +.I morercpthosts +changes. + +Rule of thumb for large sites: +Put your 50 most commonly used domains into +.IR rcpthosts , +and the rest into +.IR morercpthosts . +.TP 5 .I rcpthosts Allowed RCPT domains. If @@ -75,18 +162,11 @@ is supplied, .B qmail-smtpd will reject any envelope recipient address with a domain not listed in -.IR rcpthosts . - -Exception: -If the environment variable -.B RELAYCLIENT -is set, -.B qmail-smtpd -will ignore -.IR rcpthosts , -and will append the value of -.B RELAYCLIENT -to each incoming recipient address. +.I rcpthosts +unless the sending host is a designated relay client (see the +description of the +.I relayhosts +file beow). .I rcpthosts may include wildcards: @@ -99,6 +179,32 @@ may include wildcards: Envelope recipient addresses without @ signs are always allowed through. .TP 5 +.I relayhosts +Allowed relay clients. Each line is a host-suffix pair, separated by a +colon. If the client's hostname matches one of the hostnames in the +file, that client is permitted to send mail to any host (i.e., to use us +as a relay), and the corresponding suffix is appended to all recipient +addresses generated by the client. + +.I relayhosts +may include wildcards: + +.EX + heaven.af.mil: + .heaven.af.mil: + hell.irs.gov:.irs.virtdomain +.EE + +For historical reasons, the +.B RELAYCLIENT +environment variable overrides this table. If +.B RELAYCLIENT +is set, it has the same effect as there being a matching entry in the +.I relayhosts +file, using the value of +.B RELAYCLIENT +as the suffix. +.TP 5 .I smtpgreeting SMTP greeting message. Default: @@ -121,5 +227,6 @@ tcp-env(1), tcp-environ(5), qmail-control(5), qmail-inject(8), +qmail-newmrh(8), qmail-queue(8), qmail-remote(8)