...
- In the Virtualize Server view, choose the virtual asset you want to configure to use with the custom message listener.
- Choose Transports> Transports > Custom in the Virtual Asset Deployment Settings. If multiple listeners are installed, choose choose SMTP Listener from the Select Implementation menu.
- Configure the connection and security settings (see Configuration).
- Save your changes.
Messages
For each email that it receives, the SMTP Listener will create three request messages for responders.
One: an XML document detailing who sent the email. This makes it easier to set up responders based on the email's sender. For example:
Code Block | ||
---|---|---|
| ||
<SMTP>
<From>[email protected]</From>
</SMTP> |
Two: an XML document detailing the email's recipients. This makes it easier to set up responders based on the email's recipients. For example:
Code Block | ||
---|---|---|
| ||
<SMTP>
<Recipients>
<Recipient>[email protected]</Recipient>
</Recipients>
</SMTP> |
Three: the complete email. For example:
Code Block | ||
---|---|---|
| ||
Received: from hostname (localhost [127.0.0.1])
by hostname
with SMTP (SubEthaSMTP null) id M4LMIVYQ
for [email protected];
Thu, 12 Dec 2024 09:[MASKED]9:22 -0800 (PST)
From: [email protected]
To: [email protected]
Message-ID: <1[MASKED]1973616[MASKED].0.1734026361923.JavaMail.hostname>
Content-Transfer-Encoding: 7bit
Subject: Testing Subject
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
This is a Text Message. |
Responders can return a response at any step. Responses are treated as error messages sent back to the client and can be a text message, an error code and a text message, or just an error code.
Error message example:
Code Block |
---|
Transaction failed |
Error message with code:
Code Block |
---|
450: The requested mail action was not taken because the mailbox is unavailable |
Configuration
A Literal Message Responder with an empty payload should be configured for the SMTP listener to accept incoming messages.
...