
smtp <subcommand>


     These commands are used for the Simple  Message  Transport
     Protocol  service (that is, mail).

    smtp batch [yes | no]

     If set smtp will batch the commands into one frame.  When off
     only one command is sent and a response is waited for.  Some old
     and flaky smtp servers cannot handle more than one command at a
     time.  NOS can handle multiple.  If you are not hindered by an
     old smtp server, setting batch reduces bandwidth.


    smtp bidcheck [ON | off]

     Sets or displays status of smtp bidchecking.  Default is ON.
     If ON, incoming messages with dupe bids are rejected, with an
     error message being sent to the sender.
     NOTE: this command was deleted in Jnos 1.10K, as duplicates are
     now merely ignored, and never returned to sender.     


    smtp dtimeout [<hours>]                             Default: 0
     Displays or sets the number of hours a message will remain in
     the smtp mqueue before being returned to sender.  Delivery attempts
     are made at "smtp timer" intervals.  If <hours> is zero, the message
     remains in mqueue indefinitely.


    smtp gateway [<hostid>]

     Displays or sets the host to be used as a "smart" mail relay.
     Any  mail sent to a host not in the domain.txt file or not found
     via a nameserver query, will instead be sent to the gateway for
     forwarding (if defined).


    smtp kick

     Run through the outgoing mail queue and attempt to deliver any
     pending  mail.  This command allows the user to "kick" the mail
     system manually.  Normally, this command is periodically invoked
     by a timer whenever NOS is running.


    smtp kill [<jobid>]

     Kill <jobid> and delete the message.


    smtp list

     List the current jobs. An "L" means locked and in progress.  It
     is wise to add in autoexec.bat a "del /spool/mqueue/*.lck"
     command.  As of JNOS 1.10 (x16), all '.lck' files are
     automatically deleted on startup.


    smtp maxclients [<count>]

     Displays or sets the maximum number of simultaneous outgoing
     SMTP sessions that will be allowed.  The default is 10.  Reduce
     <count> if network congestion is a problem.


    smtp mode [queue | ROUTE]

     Sets the smtp delivery mode.  If 'queue', all messages are left
     in /spool/rqueue for external forwarding and handling.  If
     'route', messages are handled and, if for local, appended to a
     mailbox, or if remote they are forwarded.  Default = 'route'


    smtp quiet [YES | no]

     Enables or disables the message that new mail arrived at this
     system.


    smtp t4 [<seconds>]

     Displays or sets a t4 timer for smtp client (outgoing) sessions
     so that they will disconnect after a period of inactivity and
     prevent lockups.  Default = 0, i.e., no disconnect timeout.
     

    smtp tdisc [<seconds>]

     Displays or sets a disconect timer for smtp server (incoming) 
     sessions so that they will disconnect after a period of inactivity
     and prevent lockups. Default = 0, i.e., no disconnect timeout.


    smtp timer [<seconds>]

     Displays or sets the interval, between scans of the outbound mail
     queue.  For example, smtp timer 600 will cause the system to
     check for outgoing mail every 10 minutes and attempt to deliver
     anything it finds, subject of course to the smtp maxclients
     limit.  Setting a value of zero disables queue scanning
     altogether.  This value is  recommended  for standalone IP
     gateways that never handle mail, since it saves wear and tear on
     the (floppy) disk drive.  Default = 0
    

    smtp trace [<value>]

     Displays or sets the trace flag in the SMTP client, allowing you
     to  watch SMTP's conversations as it delivers mail.  Zero (the
     default) disables tracing.  A trace value of 1 just enables the
     "new mail for n5knx from <k5arh@w5ddl.ampr.org>".  Larger values
     produce more voluminous trace output.
     

    smtp usemx [yes | NO]

     Displays or sets a flag enabling or disabling MX record lookups.
     This can  be enabled if a domain server is available in the near
     distance (reachable).  It should be disabled (default) if no
     domain server is in reach to  satisfy  the MX  query.  Note that
     MX record handling is very limited in NOS.  If an answer from a
     domain name server comes in it is taken to be the destination.

