SMTPFWDD(8)             OpenBSD System Manager's Manual            SMTPFWDD(8)

NAME
     smtpfwdd - Obtuse Systems SMTPFWDD message forwarding daemon

SYNOPSIS
     smtpfwdd [-q] [-d spooldir] [-u user] [-g group] [-s mailprog] [-M
              maxchildren] [-P poll time]

DESCRIPTION
     The smtpfwdd daemon forwards mail messages from a spool directory to
     their eventual destinations.  It regularly scans the spool directory in
     which its symboitic companion program smtpd(8) stores messages and in-
     vokes a mail program (such as sendmail(8)) to forward them.  It is the
     forward portion of an SMTP store and forward proxy.  smtpfwdd is a stan-
     dalone daemon, usually invoked at system startup.

     The options are as follows:

     -d      Specify a different spool directory. This should be the same di-
             rectory in which smtpd(8) is spooling files (usually
             /var/spool/smtpd)

     -g      Specify a group to run as.  Same as user above.

     -M      Specifies maxchildren as the maximum number of children smtpfwdd
             should be allowed to spawn at once when delivering mail.  Default
             is 10.

     -P      specifies a polling interval of polltime seconds indicating how
             often the master smtpfwdd process should wake up and check the
             spool directory for new mail to forward.  Default is 10 seconds.

     -q      Tell smtpfwdd to be quieter.  By default, smtpfwdd emits very
             verbose syslog messages.  With this option it will emit one line
             of log for each normal message exchange.

     -s      Specify a different mail program to use to forward mail.  The de-
             fault is /usr/sbin/sendmail Any replacement must be able to be
             invoked in the same manner as sendmail with a -f fromaddress,
             followed by one or more destination addresses on the command
             line.

     -u      Specify a user to run as.  This user must not be root but should
             normally be a user that is able to run sendmail(8) and use the -f
             option to specify the sender of a mail message.

SEE ALSO
     inetd(8), sendmail(8), smtpd(8)

BUGS
     Since sendmail(8) is not normally running as a daemon when using smtpd(8)
     and smtpfwdd(8), one must use cron to periodically invoke sendmail -q so
     that queued messages are retried for eventual delivery, alternatively
     sendmail may be run standalone, but not listening to the network if your
     version of sendmail supports doing this correctly.

     There are many different variations of sendmail.  smtpfwdd will check and
     pay attention to the exit status of the sendmail processes it invokes,
     possibly retrying an invocation of sendmail.  If you aren't using real
     unadulterated Berkeley sendmail or a recent vintage, you may need to dis-
     able the exit status checking at compile time.

     sendmail(8) can't handle a `.' on one line in a message body.  This prob-
     lem is bypassed in smtpfwdd by giving sendmail the option -oitrue. Again,
     if you aren't using genuine sendmail, you may need to disable this at
     compile time.

OpenBSD 2.9                    December 10, 1997                             2
