smtp.proxy.1
上传用户:skhuanbao
上传日期:2007-01-04
资源大小:43k
文件大小:3k
- .de ES
- .sp
- .in +0.5i
- ..
- .de EE
- .in -0.5i
- .sp
- ..
- .de EX
- .sp
- .in +0.5i
- \$1
- .in -0.5i
- .sp
- ..
- .TH SMTP.PROXY 1 "28 August 1999"
- .SH NAME
- smtp.proxy - SMTP proxy server
- .SH SYNOPSIS
- fBsmtp.proxyfR [fIoptionsfR] [fIserverfR]
- .SH DESCRIPTION
- .I smtp.proxy
- is a proxy server for the SMTP protocol.
- It forwards traffic between a client and a server watching that the client
- fullfills the protocol specification.
- .PP
- .I smtp.proxy
- is usually started from a TCP superserver like
- .IR inetd (1)
- or
- .IR tcpproxy (1).
- It can be used from the command line to but does not support binding to a
- service port like
- .IR sendmail (1).
- .PP
- fIserverfR can be either an SMTP server on a different machine which is then
- contacted via TCP/IP or a local fIsendmailfR binary.
- If fIserverfR is omitted the latter is assumed with fIsendmailfR
- in fI/usr/sbinfR.
- .SS Protocol Support
- .I smtp.proxy
- supports the following SMTP commands:
- .PP
- .RS
- HELO, EHLO
- .br
- [MAIL|SEND|SOML|SAML] FROM, RCPT TO, DATA,
- .br
- NOOP, RSET, HELP, ETRN, QUIT
- .br
- .PP
- .RE
- Unsupported SMTP commands result in a syslog message without forwarding the
- command to the server.
- ETRN is only supported if the fB-efR option is given on the command line.
- .PP
- Email addresses are checked againt some simple tests:
- .PP
- .RS
- - they must be enclosed in angle brackets `<', `>',
- .br
- - they must contain exactly one `@',
- .br
- - they must not contain a `%' or a `!',
- .br
- - `:' and `,' characters are also not allowed.
- .br
- .PP
- .RE
- While these checks block some valid email addresses they are almost
- what you want these days in an Internet with DNS.
- .br
- The special envelope address `<>' is always allowed.
- .SH OPTIONS
- The following options are available:
- .TP
- .B -e
- enable proxying of then ETRN command.
- .TP
- .B -d
- switch to debug mode: the dialog between server and client is written to
- stderr.
- .TP
- fB-lfR fIdirfR
- if set fIsmtp.proxyfR looks if the file fIclientipfR exists in
- the directory fIdirfR and if it's not older than 600 seconds.
- If so the client is accepted otherwise not.
- .TP
- .B -q
- remove the mailpath from the received mail.
- Specifing fb-qfR twice supresses also the proxy's own `received from' line.
- .TP
- fB-rfR fIrcptlistfR
- specify a comma separated list of valid receipients.
- If this option is set fIsmtp.proxyfR checks each receipient from the RCPT
- command against the patterns (use `*' and `?' as wildcards) from that list
- and rejects it if it doesn't match any pattern without forwarding the
- request to the server.
- .br
- If a pattern from fIrcptlistfR starts with an `@'-sign only the domain part
- of the email address is matched against it, not the whole email address.
- .TP
- fB-sfR fIsenderlistfR
- the same as the above fIrcptlistfR but for senders in the MAIL command.
- .TP
- fB-tfR fItimeoutfR
- specify a different SMTP timeout in seconds than the default of 300 (5 minutes).
- .PP
- .SH NOTES
- If your running fIsmtp.proxyfR with a local fIsendmailfR make sure the
- user running the proxy is on the fBTfIuserfR list in fIsendmail.cffR.
- Otherwise you'll get authentication warnings in your syslog and the emails.
- .SH "SEE ALSO"
- .IR inetd (1),
- .IR sendmail (1),
- .IR tcpproxy (1).