NAME
smtp, smtpd – mail transport |
SYNOPSIS
upas/smtp [ –aAdfiops ] [ –b busted–mx ] ... [ –g gateway ] [ –h host
] [ –u user ] [ .domain ] destaddr sender rcpt–list
upas/smtpd [ –adDfrg ] [ –c certfile ] [ –h mydom ] [ –k evilipaddr
] [ –m mailer ] [ –n netdir ] |
DESCRIPTION
Smtp sends the mail message from standard input to the users rcpt–list
on the host at network address address using the Simple Mail Transfer
Protocol. The options are: –aif the server supports PLAIN or LOGIN authentication, authenticate to the server using a password from factotum(4). See RFCs 3207 and 2554. This option implies –s. –Aautistic server: don't wait for an SMTP greeting banner but immediately send a NOOP command to provoke the server into responding. –bignore busted–mx when trying MX hosts. May be repeated. –dturn on debugging to standard error. –fjust filter the converted message to standard output rather than sending it. –gmakes gateway the system to pass the message to if smtp can't find an address nor MX entry for the destination system. –huse host as the local system name; it may be fully–qualified or not. If not specified, it will default to the contents of /dev/sysname. –iunder –a, authenticate even if we can't start TLS. –ounder –s, use TLS even if we don't know the remote system. –pping: just verify that the users named in the rcpt–list are valid users at destaddr; don't send any mail. –sif the server supports the ESMTP extension to use TLS encryption, turn it on for this session. See RFC3207 for details. –uspecify a user name to be used in authentication. The default name is the current login id. Finally if .domain is given, it is appended to the end of any unqualified system names in the envelope or header. Smtpd receives a message using the Simple Mail Transfer Protocol. Standard input and output are the protocol connection. SMTP authentication by login and cram–md5 protocols is supported; authenticated connections are permitted to relay.
The options are:
–kcauses connections from the host at the IP address, evilipaddr, to be dropped at program startup. Multiple addresses can be specified with several –k options. This option should be used carefully; it is intended to lessen the effects of denial of service attacks or broken mailers which continually connect. The
–nspecifies the name of the network directory assigned to the incoming connection. This is used to determine the peer IP address. If this flag is not specified, the peer address is determined using standard input. –ppermits clients to authenticate using protocols which transfer the password in the clear, e.g. login protocol. This should only be used if the connection has previously encrypted using e.g. tlssrv(8). –rturns on forward DNS validation of non–trusted sender address. –scauses copies of blocked messages to be saved in a sub–directory of /mail/queue.dump.
Smtpd is normally run by a network listener such as listen(8).
Most of the command line options are more conveniently specified
in the smtpd configuration file stored in /mail/lib/smtpd.conf. |
SOURCE
/sys/src/cmd/upas/smtp |
SEE ALSO
aliasmail(8), faces(1), filter(1), mail(1), marshal(1), mlmgr(1),
nedmail(1), qer(8), rewrite(6), send(8), tlssrv(8), upasfs(4) |