AfterLogic XMail Server has the ability to deliver locally prepared mail files that if finds in the 'spool/local' directory. The format of these files is strict:
mail from:<...>[CR][LF] rcpt to:<...>[CR][LF] ... [CR][LF] message text in RFC822 format with [CR][LF] line termination
All lines must be [CR][LF] terminated, with one mail-from statement, one or more rcpt-to statements, an empty line and the message text. Mail files must not be created directly inside the '/spool/local' directory but instead inside '/spool/temp' directory. When the file is prepared it has to be moved into '/spool/local'. The file name format is:
stime-seqnr.pid.hostname
where:
system time in sec from 01/01/1970.
sequence number for the current file.
process or thread id.
creator process host name.
Example:
97456928-001.7892.home.bogus
AfterLogic XMail Server has a number of LMAIL threads that periodically scan the '/spool/local' directory watching for locally generated mail files. You can tune this number of threads with the '-Ln nthreads' command line option. The suggested number ranges from three to seven.