You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (Jira)" <se...@james.apache.org> on 2019/08/28 10:35:00 UTC

[jira] [Commented] (JAMES-2865) Implementing a MockSmtpServer

    [ https://issues.apache.org/jira/browse/JAMES-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917654#comment-16917654 ] 

Tellier Benoit commented on JAMES-2865:
---------------------------------------

https://github.com/linagora/james-project/pull/2623 proposed a simple mocked SMTP server

 - No answer count
 - No condition filtering
 - No soft failure - only hard reject is supported

> Implementing a MockSmtpServer
> -----------------------------
>
>                 Key: JAMES-2865
>                 URL: https://issues.apache.org/jira/browse/JAMES-2865
>             Project: James Server
>          Issue Type: Sub-task
>          Components: Remote Delivery, tests
>            Reporter: Tellier Benoit
>            Assignee: Tellier Benoit
>            Priority: Major
>
> Draft version [here](https://github.com/linagora/james-project/pull/2545)
> The MockSmtpServer should match these criteria:
>  - can return error responses
>  - can return error responses but actually still success to deliver the mails (450 - server retry and will be success)
>  - act like a simple smtp server if no mock setup, when mails come, save them in to the memory
> Regarding the behaviour:
>  - a behaviour can be applied to all given commands or a subset of them (condition)
>  - A number of answer can be specified, after X answers the behaviour will no longer be applied.
> You need to rely on the following POJOs : see JAMES-2853



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org