SMTPPD

Synopsis

SMTPPD [/?] [/WAITFOR string] [/IFLOCALPOST string] [/IFREMOTEPOST string] [/LOCAL string] [/TIMEOUT number] [/FOREVER[+|-]]

Description

SMTPPD reads mail from a maildrop area, that has been placed there by (for example) the SMTP Submission service, performs global alias processing on the recipients, and sorts the mail for local or remote delivery. The maildrop is taken to be the working directory of the dæmon.

By default all domains are considered remote. Individual domains must be explicitly specified as local with the /LOCAL option.

Note: It is strongly recommended that the domains specified as local include all of the domains specified as local to the SMTP Relay dæmon, if one is configured, otherwise mail received for local delivery will be sorted for remote delivery by the Post Office dæmon.

Often one will want to specify at minimum:

/LOCAL:localhost /LOCAL:localhost. /LOCAL:[127.0.0.1]

Example RUN files

SMTPPD can be managed as a service under RUNSVC, the Service Manager in the OS/2 Command Line Utilities version 2.2, A run file for such a service typically would look similar to:

  chdir %MAILQUEUEDIR%
  program %APPS%\JdeBP\IU\bin\SMTPPD.exe
  argument SMTPPD
  argument /WAITFOR:\SEM32\IU\SMTP\PD
  argument /IFLOCALPOST:\SEM32\IU\SMTP\LD
  argument /IFREMOTEPOST:\SEM32\IU\SMTP\RD

Example command-line invocation

  [c:\]smtppd /WAITFOR:\SEM32\IU\SMTP\PD /IFLOCALPOST:\SEM32\IU\SMTP\LD /IFREMOTEPOST:\SEM32\IU\SMTP\RD

Command-specific options

/WAITFOR
Specify the semaphore to wait for.
/IFLOCALPOST
Specify the semaphore to signal whenever a new message has been sorted for local delivery.
/IFREMOTEPOST
Specify the semaphore to signal whenever a new message has been sorted for remote delivery.
/LOCAL
Specify a domain that is to be considered local.
/TIMEOUT
Specify the semaphore wait timeout.
/FOREVER
Specify that the dæmon should wait forever for the semaphore.

The Internet Utilities are © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.