icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD

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

     smtpd - Obtuse Systems SMTPD message storing daemon

     smtpd [-HPDLq] [-c chrootdir] [-d spooldir] [-u user] [-g group] [-m
           myname] [-s maxsize] [-l listenip] [-p listenport] [-i pidfile]

     The smtpd daemon talks the Simple Mail Transfer Protocol (SMTP) with oth-
     er SMTP daemons to receive mail from them, and saves it into a spool di-
     rectory for later processing. It is the store portion of an SMTP store
     and forward proxy. The symbiotic companion program smtpfwdd(8) is used to
     forward the spooled mail on to its eventual destination.  smtpd is nor-
     mally invoked from a super-server such as inetd(8).

     -c      Specify a different chrootdir directory to chroot into on start-
             up. The default is /var/spool/smtpd. This directory should be
             readable and writable only to the user that smtpd runs as.

     -d      Specify a different spool directory within the chrooted subtree.
             The default is ".", making smtpd spool files to the directory it
             chroots itself to.

     -D      Tells smtpd to run as a daemon, listening on port 25.  The de-
             fault is not to run as a daemon.

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

     -H      Disable host checking against the DNS. By default smtpd checks
             and will complain in the syslogs if the DNS information for a
             host seems to indicate a possible spoof or misconfiguration.

     -i      specify a filename that smtpd should lock and write it's pid to
             when running as a daemon.  Doesn't do anything if running from
             inetd. Default pid file in daemon mode is /var/run/smtpd.pid On
             BSD systems, or /usr/spool/smtpd/smtpd.pid on non-BSD systems.

     -l      specify an ip address in dotted quad format for smtpd to accept
             connections to. In daemon mode this limits the address that smtpd
             listens on. In inetd mode, smtpd will issue a 521 error code and
             exit if connected to on an address other than the specified one.
             By default, smtpd accepts a connection no matter what address it
             is connected to on.

     -L      Suppress children in daemon mode (above) from doing an openlog()
             call. This means your syslogs won't have pid information, but is
             useful if you don't want to have to set up your chroot jail for
             smtpd in a manner that an openlog() call will work in it.

     -m      Specify myname, the hostname the daemon should announce itself
             as. the default is whatever gethostname() returns.

     -p      specify a decimal port number for smtpd to listen when running as
             a daemon. Doesn't do anything if running from inetd.

     -P      Enable paranoid mode of operation, in this mode connections are
             dropped from any client feeding smtpd a suspicious hostname,
             FROM:, or RCPT: line containing characters indicative of an at-
             tempt to do something evil, or any message headers that aren't
             8bit clean. The default is to log such occurances and substitute

             for the offending characters, but not drop the connection.

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

     -s      Specify maxsize the maximum size (in bytes) of mail message the
             daemon should accept. The default is not to have a maximum size.

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

     The address checking file is normally etc/smtpd_check_rules, within the
     chroot directory.

     The address check file, when enabled is read for each RCPT line in the
     SMTP dialogue. Each rule is checked with the current  source (SMTP client
     machine and possibly user from ident) and the current FROM: and RCPT: ad-

     smtpfwdd(8),  sendmail(8),  inetd(8)

     http://www.obtuse.com/smtpd.html for examples and rules file details.

     Mistakes in /etc/smtpd_check_rules can discard legitimate mail and annoy
     your users and other postmasters a very great deal!. When combined with
     custom return codes it is possible to write rules that completely break
     the smtp protocol. It is important to test your rules out and be abso-
     lutely sure they do exactly what you want and no more.

     If sendmail(8) is not run 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 as a daemon but not listening to the network.

OpenBSD                          Dec 10, 1997                                2

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]
OpenBSD sources for smtpd(8)

[Overview Topics]

Up to: Email Server and Transport Agents - Electronic mail servers including delivery, routing, and transfer agents (MTAs), protocols (SMTP, POP, IMAP, -

RocketLink!--> Man page versions: OpenBSD

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > smtpd.8/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments