Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ smtpqer(1M) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gethostent(3N)

mail(1)

smtp(1M)






       smtpqer(1M)                                              smtpqer(1M)


       NAME
             smtpqer - queue mail for delivery by SMTP

       SYNOPSIS
             smtpqer [-d level] [-N] [-r] -f sender -s host recip . . .

       DESCRIPTION
             smtpqer queues the mail message it reads from standard input
             for delivery by smtp to the host specified by host.

             smtpqer is invoked by the mail command.

             smtpqer checks the host name host.  If host can be reached,
             the message is queued, and smtpqer exits with a return code of
             0 (which means the mail was successfully queued).  Otherwise,
             it returns with an exit code of 1 and the message is not
             queued.  mail then tries to deliver by using other mail
             surrogates in the /etc/mail/mailsurr file.  smtpqer determines
             if the host can be reached by checking whether the host name
             can be looked up directly via gethostbyname [see
             gethostent(3N)] or by checking if there is at least one
             ``message exchanger'' for this host which can be reached.

             Queued messages are stored as two files under the SMTP queue
             directory (/var/spool/mailq).  Messages are queued under the
             security level at which smtpqer is run.  This, in turn, is
             determined by the invoking mail command.

             A C.* file contains control information for the smtp command,
             and a D.* file contains the actual mail message.  Finally,
             smtpqer invokes the smtp program to deliver the mail.

             The options to smtpqer and their meanings are as follows:

             -N          Turns off the nameserver MX record lookup that
                         normally occurs.  This option will speed up
                         processing if your host is not configured to use a
                         nameserver (either local or remote).  This option
                         is passed through to the smtp process that
                         delivers the mail.

             -d level    Turns on debugging output in the surrogate (which
                         may be used to see why a surrogate is rejecting
                         your mail).




                           Copyright 1994 Novell, Inc.               Page 1













      smtpqer(1M)                                              smtpqer(1M)


            -r          Does a reverse alias lookup on the sender address
                        before using it.

            -f sender   Sets the sender of the message.

            -s host     Specifies that smtp is to send this message to
                        host.

      FILES
            /etc/inet/hosts              database of remote hosts
            /etc/mail/mailcnfg           mail configuration file
            /etc/mail/mailsurr           control file containing rule to invoke smtpqer
            /usr/bin/rmail               where mail originates from [see mail(1)]
            /usr/lib/mail/surrcmd/smtp   program which passes message to remote host
            /var/spool/mailq             where messages are queued
            /var/spool/mailq/C.*         control files for host
            /var/spool/mailq/D.*         message files for host

      EXIT CODES
            0   Mail has been queued for delivery
            1   Mail is not for SMTP

      REFERENCES
            gethostent(3N), mail(1), smtp(1M)
            RFC822 - Standard for the Format of ARPA Internet Text
            Messages






















                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026