{
    "componentChunkName": "component---src-templates-plugin-docs-tsx",
    "path": "/plugins/scm-mail-plugin/docs/latest/en/testing/",
    "result": {"data":{"plugin":{"name":"scm-mail-plugin","displayName":"Mail","description":"Provides an api for sending e-mails and can be used by other plugins","author":"Cloudogu GmbH","documentation":[{"version":"3.5.x","languages":["de","en"]},{"version":"3.4.x","languages":["de","en"]},{"version":"3.3.x","languages":["de","en"]},{"version":"3.2.x","languages":["de","en"]},{"version":"3.1.x","languages":["de","en"]},{"version":"3.0.x","languages":["de","en"]}]},"navigation":{"nodes":[{"section":"Getting Started","entries":[{"frontmatter":{"title":"Configuration","subtitle":null,"partiallyActive":null},"fields":{"slug":"/plugins/scm-mail-plugin/docs/3.5.x/en/configuration/"}},{"frontmatter":{"title":"Permissions","subtitle":null,"partiallyActive":null},"fields":{"slug":"/plugins/scm-mail-plugin/docs/3.5.x/en/permission/"}},{"frontmatter":{"title":"Testing","subtitle":null,"partiallyActive":null},"fields":{"slug":"/plugins/scm-mail-plugin/docs/3.5.x/en/testing/"}}]}]},"versions":{"group":[{"fieldValue":"3.0.x"},{"fieldValue":"3.1.x"},{"fieldValue":"3.2.x"},{"fieldValue":"3.3.x"},{"fieldValue":"3.4.x"},{"fieldValue":"3.5.x"}]},"languages":{"group":[{"fieldValue":"de"},{"fieldValue":"en"}]},"markdownRemark":{"html":"<p>You can test this plugin against email testing tools like “<a href=\"https://github.com/mailhog/MailHog\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">MailHog</a>”.</p>\n<h3 id=\"setup-test-environment\" style=\"position:relative;\"><a href=\"#setup-test-environment\" aria-label=\"setup test environment permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Setup test environment</h3>\n<p>To setup a testing environment with MailHog, you may run</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">docker pull mailhog/mailhog\ndocker run -p 1025:1025 -p 8025:8025 mailhog/mailhog</code></pre></div>\n<p>Alternatively, simply use <code class=\"language-text\">docker-compose</code>:</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">docker-compose up</code></pre></div>\n<p>To connect against this container, you must set the following settings in your global email configuration:</p>\n<ul>\n<li>Host to <code class=\"language-text\">localhost</code>,</li>\n<li>port to <code class=\"language-text\">1025</code>, and</li>\n<li>“from” and “username” to any non-empty value.</li>\n</ul>\n<h3 id=\"tls-tests\" style=\"position:relative;\"><a href=\"#tls-tests\" aria-label=\"tls tests permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>TLS Tests</h3>\n<p>The following section describes a setup with self-signed certificates.\nIn order to track the certificate tests, the scm-ssl-context-plugin ought to be installed.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">cd tls-test\ndocker-compose up</code></pre></div>\n<h4 id=\"explicit-tls-starttls\" style=\"position:relative;\"><a href=\"#explicit-tls-starttls\" aria-label=\"explicit tls starttls permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Explicit TLS (STARTTLS)</h4>\n<p>Config:</p>\n<ul>\n<li>Host: <code class=\"language-text\">localhost</code></li>\n<li>Port: <code class=\"language-text\">25</code></li>\n<li>Username: <code class=\"language-text\">trillian@hitchhiker.org</code></li>\n<li>Password: <code class=\"language-text\">secret</code></li>\n<li>Transport Strategy: <code class=\"language-text\">SMTP_TLS</code></li>\n</ul>\n<h4 id=\"implicit-tls\" style=\"position:relative;\"><a href=\"#implicit-tls\" aria-label=\"implicit tls permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Implicit TLS</h4>\n<p>Config:</p>\n<ul>\n<li>Host: <code class=\"language-text\">localhost</code></li>\n<li>Port: <code class=\"language-text\">465</code></li>\n<li>Username: <code class=\"language-text\">trillian@hitchhiker.org</code></li>\n<li>Password: <code class=\"language-text\">secret</code></li>\n<li>Transport Strategy: <code class=\"language-text\">SMTPS</code></li>\n</ul>","description":"You can test this plugin against email testing tools like “MailHog”. Setup test environment To setup a testing environment with MailHog, you may run…","tableOfContents":"<ul>\n<li>\n<p><a href=\"#setup-test-environment\">Setup test environment</a></p>\n</li>\n<li>\n<p><a href=\"#tls-tests\">TLS Tests</a></p>\n<ul>\n<li><a href=\"#explicit-tls-starttls\">Explicit TLS (STARTTLS)</a></li>\n<li><a href=\"#implicit-tls\">Implicit TLS</a></li>\n</ul>\n</li>\n</ul>","frontmatter":{"title":"Testing","subtitle":null,"description":null,"keywords":null,"displayToc":null,"image":null}}},"pageContext":{"name":"scm-mail-plugin","slug":"/plugins/scm-mail-plugin/docs/3.5.x/en/testing/","version":"3.5.x","latestVersion":"3.5.x","latestPageVersion":"3.5.x","language":"en","canonicalPath":"/plugins/scm-mail-plugin/docs/latest/en/testing/","latestRootPath":"/plugins/scm-mail-plugin/docs/3.5.x/en/"}},
    "staticQueryHashes": ["1973669194","2742214048","2956773653","2957019495","698804963"]}