SMTPCD
[/?]
[/WAITFOR string]
[/TIMEOUT number]
[/FOREVER[+|-]]
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.
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
[c:\]smtpld /WAITFOR:\SEM32\IU\SMTP\CD
/WAITFOR/TIMEOUT/FOREVER