smtpqer(1M) smtpqer(1M)
NAME
smtpqer - queue mail for delivery by SMTP
SYNOPSIS
/usr/lib/mail/surrcmd/smtpqer [-nu] [-a toaddr] [-d domain]
[-H helohost][-N] [-D]
sender host recip ...
DESCRIPTION
smtpqer queues the mail message it reads from standard input for even-
tual delivery by smtp. The message is queued for delivery to the host
specified in the to address.
smtpqer should normally be invoked by the mail command by placing the
following line in /etc/mail/mailsurr:
'.+' '([^!@]+)!(.+)' '< /usr/lib/mail/surrcmd/smtpqer %R \\1 \\2'
smtpqer will check the host name in the to address. If it is one that
can be reached (i.e. if netdirgetbyname [see netdir(3N)] can find it
on at least one TLI network), the message will be queued, and smtpqer
will exit with a return code of 0 (which means the mail was success-
fully queued). Otherwise, it will return with an exit code of 1, and
the message will not be queued.
Messages that are queued are stored in a file under the SMTP queue
directory (/var/spool/smtpq).
The -H option is used to specify the host name that should be used in
the SMTP HELO message. This option is passed to the smtp program.
By default, the -N option is set in the file /etc/mail/mailsurr and
means that MX resource records (MX = Mail Exchanger) are not taken
into account. MX information is provided by the DNS (Domain Name Ser-
vice). An MX resource record specifies a mail distributor, i.e. a sys-
tem that can forward messages to a domain or to specific computers in
a domain.
The -D option is used to write detailed information about mail routing
to /var/spool/smtpq/log.
The -d option is used to specify the domain name that should be used
for your host. This option is passed to the smtp program. If this
option is not used, and a domain has been specified in the mail confi-
guration file mailcnfg, that domain will be used instead.
The -u option prevents the mail's headers from being converted to
RFC822 format. This option is passed to the smtp(1M) program.
The -a option is used to specify the "to address" that is passed to
the smtp program. Finally, the -n option is used to prevent smtpqer
from starting an smtpsched process to deliver the mail.
Page 1 Reliant UNIX 5.44 Printed 11/98
smtpqer(1M) smtpqer(1M)
FILES
/usr/bin/rmail
where mail originates from
/etc/hosts
database of remote hosts (for TCP/IP)
/etc/mail/mailcnfg
mail configuration file
/etc/net/*/hosts
database of remote hosts (for other TLI networks)
/etc/mail/mailsurr
control file containing rule to invoke smtpqer
/usr/lib/mail/surrcmd/smtpsched
program to process message queues
/usr/lib/mail/surrcmd/smtp
program that passes message to remote host
/usr/lib/mail/surrcmd/tosmtp
filter to convert to RFC822 format
/var/spool/smtpq
where messages are queued
SEE ALSO
rmail(1), smtpsched(1M), smtp(1M), netdir(3N).
RFC822 - Standard for the Format of ARPA Internet Text Messages.
Page 2 Reliant UNIX 5.44 Printed 11/98