When building AfterLogic XMail Server, an executable called 'sendmail' is created. This is a replacement of the sendmail program used mostly on Unix systems; it uses the local mail delivery of AfterLogic XMail Server to send email generated onto the server machine. These sendmail options are supported (other options are simply ignored):
Set the sender of the email.
Set the extended sender of the email.
Extract recipients from the 'To:'/'Cc:'/'Bcc:' header tags.
Read the input until the End Of Stream, instead of stopping at the ''\n.\n'' sequence.
The syntax is:
sendmail [-t] [-f...] [-F...] [--input-file fname] [--xinput-file fname]=> [--rcpt-file fname] [--] recipient ...
The message content is read from the standard input and must be RFC compliant.
The following parameters are AfterLogic XMail Server extensions meant to be used with mailing lists managers (using sendmail as a mail list exploder):
take the message from the specified file instead from stdin (RFC format).
take the message from the specified file instead from stdin (AfterLogic XMail Server format).
add recipients listed inside the specified file (list exploder).
To be RFC compliant means that the message MUST have the format:
[Headers] NewLine Body
Suppose you have your message in the file 'msg.txt', you're 'axmsuser@smartdomain', and you want to send the message to 'user1@dom1' and 'user2@dom2'. The syntax is:
sendmail -faxmsuser@smartdomain user1@dom1 user2@dom2 < msg.txt
or
sendmail -faxmsuser@smartdomain --input-file msg.txt user1@dom1 user2@dom2
[top]