SMS Gateway 4.4 - User's Guide
2. The life of a message
2.1 Spooled Connections
When a message is placed in the outgoing queue for transmission, by using the sms command, a corresponding file is created in SPOOLDIR. Smsd the tries to send the message the number of times specified by MAX_RETRIES in the config file. After the message has been sent or could not be sent the program defined by EXECUTE_AFTER_SEND is executed. Finally the file in SPOOLDIR is removed and a corresponding entry for the message is added to the statistics file, stats.
2.2 Direct connections
Message delivery takes place immediately. Log information is written to smsd.* in SMSDIR/Log.