smtp(1M) smtp(1M)
NAME
smtp - send mail to a remote host using Simple Mail Transfer
Protocol
SYNOPSIS
/usr/lib/mail/surrcmd/smtp [-d debug level]
DESCRIPTION
smtp is a daemon that runs while there is mail to be sent to
remote hosts using the Simple Mail Transfer Protocol (SMTP).
The messages are retrieved from /var/spool/mailq in the form
of C. files and D. files. The C. files are the control files
for the messages, containing the sender, recipients, and path
of the D. file.
smtp first attempts to establish a connection to the host
given in the control file. If it cannot, it then generates a
list of ``message exchangers'' with which the mail may be
forwarded. This list is generated by querying the nameserver
for all MX records for the host given in the control file (as
specified in RFC974). smtp then tries to connect to each host
in preference order (lower preference numbers first) until one
accepts the call. The message is then delivered. smtp
attempts to deliver over each connection oriented transport
that is defined in the file /etc/netconfig and whose name to
address translation module returns an address for the
destination host and the service smtp.
Once it has a connection to a host, smtp will deliver all
queued messages for that host over the connection before
taking the connection down.
The option to smtp and its meaning is as follows:
-d debug level
This option turns on debugging at the level
given. Debugging information is printed on
standard error.
smtp is run by the smtpqer process in order to deliver mail
queued in /var/spool/mailq.
Copyright 1994 Novell, Inc. Page 1
smtp(1M) smtp(1M)
FILES
/etc/inet/services list of TCP/UDP services
/var/spool/mailq where messages are queued
REFERENCES
smtpd(1M), smtpqer(1M)
RFC821 - Simple Mail Transfer Protocol
RFC974 - Mail Routing and the Domain System
Copyright 1994 Novell, Inc. Page 2