SMTPCD

Synopsis

SMTPCD [/?] [/WAITFOR string] [/TIMEOUT number] [/FOREVER[+|-]]

Description

SMTPCD cleans fully delivered messages from the mail queue that is produced by the SMTP Posting Office Sorting dæmon. The queue directory is taken to be the working directory of the dæmon.

SMTPCD communicates with the other servers in the SMTP message handling system via a semaphore. The SMTP Local Delivery dæmon and the SMTP Remote Delivery dæmon trigger SMTPCD's semaphore whenever they have fully delivered a message to all of its envelope recipients. Thus the semaphore names supplied on the command line should match the semaphore names supplied to the other dæmons.

SMTPCD simply deletes all messages from the queue who have no more undelivered envelope recipients.

Example RUN files

SMTPCD 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\SMTPCD.exe
  argument SMTPCD
  argument /WAITFOR:\SEM32\IU\SMTP\CD

Example command-line invocation

  [c:\]smtpld /WAITFOR:\SEM32\IU\SMTP\CD

Command-specific options

/WAITFOR
Specify the semaphore to wait for.
/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.