smtpqer(1M) smtpqer(1M)
NAME
smtpqer - queue mail for delivery by SMTP
SYNOPSIS
smtpqer [ -nu ] [ -a toaddr ] [ -d domain ] [ -H helohost ] sender
host recip ...
DESCRIPTION
smtpqer queues the mail message it reads from standard input for
eventual 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(3) 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 successfully
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). If the -u option is not used, they are
first converted to RFC822 format, by filtering them through the
program tosmtp. Finally, smtpqer invokes the smtpsched program to
deliver the mail.
The -H option is used to specify the host name that should be used in
the SMTP HELO message. This option is passed to both the tosmtp and
smtp programs.
The -d option is used to specify the domain name that should be used
for your host. This option is passed to the tosmtp program. If this
option is not used, and a domain has been specified in the mail
configuration file mailcnfg, that domain will be used instead.
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.
FILES
/usr/bin/rmail where mail originates from
/etc/hosts database of remote hosts (for TCP/IP)
/etc/mail/mailcnfg mail configuration file
8/91 Page 1
smtpqer(1M) smtpqer(1M)
/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(1M), smtpsched(1M), smtp(1M), tosmtp(1M)
getdomainname(3) in the Programmer's Reference Manual.
RFC822 - Standard for the Format of ARPA Internet Text Messages
Page 2 8/91