If you expect a ready to use SMTP server, you need both the Pliant SMTP server and a sample /etc/pliant/mail or /pliant_security/mail file (see samples below).
The control function is called saveral times while the client provides informations to the server.If the mail has several recipients, the control function will be called several times with stage=stage_to.
| variable |
minimal stage |
meaning |
| stage |
|
The current stage, so tells you which variables are meaningfull. |
| ip |
stage_open |
The IP address of the client. |
| name |
stage_helo |
The name provided by the client through HELO SMTP protocol instruction. |
| received_on |
stage_open |
The date and time the SMTP client started sending the message. |
| mailfrom |
stage_from |
The sender mailbox as provided through the MAIL FROM SMTP protocol instruction.
A sample value is: Mr Somebody <somebody@somewhere.com> |
| from |
stage_from |
The sender stripped mailbox.
A sample value is: somebody@somewhere.com |
| mailto |
stage_to |
The target mailbox as provided through the RCPT TO SMTP protocol instruction.
A sample value is: Mr Somebody <somebody@somewhere.com> |
| to |
stage_to |
The recipient stripped mailbox.
A sample value is: somebody@somewhere.com |
| hidden_to |
stage_header |
The list of all the recipients that are not listed in the message header.
This field type is 'List' and each element in the list has 'Str' type. |
| data |
stage_header / stage_body |
The stream containing the message.
At stage=stage_header, only the mail header has been received, but at stage=stage_body, all the mail has been received. |
| store path |
|
The mail will be stored in the provided path.
The path is generally the path of the recipient user mailbox. |
| archive path |
|
Same as 'store', but the path is one where several mailboxes are replicated for later searching. |
| exclude path |
|
Do not store the mail in the provided path.This enables to forbid mails from or to some confidential mailboxes to be stored in archives. |
| reject message |
|
Reject the mail with message being the one line explanation sent with the error code to the SMTP client. |