sendmail

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):

-f{mail from}

Set the sender of the email.

-F{ext mail from}

Set the extended sender of the email.

-t

Extract recipients from the 'To:'/'Cc:'/'Bcc:' header tags.

-i

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):

--input-file fname

take the message from the specified file instead from stdin (RFC format).

--xinput-file fname

take the message from the specified file instead from stdin (AfterLogic XMail Server format).

--rcpt-file fname

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]