diff --git a/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.body b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.body new file mode 100644 index 00000000..72d5c376 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.body @@ -0,0 +1 @@ +novox.benovox.benovox.be143STARTTLS%EMAILADDRESS%password-cleartextmail.novox.be587STARTTLS%EMAILADDRESS%password-cleartext \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.headers b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.headers new file mode 100644 index 00000000..01eb3d79 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.headers @@ -0,0 +1,3 @@ +Content-Length: 612 +Content-Type: application/xml +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.request b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.request new file mode 100644 index 00000000..98ae52c5 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.request @@ -0,0 +1,3 @@ +GET https://autoconfig.novox.be/mail/config-v1.1.xml?emailaddress=jochen@novox.be +User-Agent: Thunderbird +Accept: */* diff --git a/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.status b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.status new file mode 100644 index 00000000..992a7e84 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/01-thunderbird-autoconfig-ok.status @@ -0,0 +1 @@ +200 OK diff --git a/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.body b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.body new file mode 100644 index 00000000..72d5c376 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.body @@ -0,0 +1 @@ +novox.benovox.benovox.be143STARTTLS%EMAILADDRESS%password-cleartextmail.novox.be587STARTTLS%EMAILADDRESS%password-cleartext \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.headers b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.headers new file mode 100644 index 00000000..01eb3d79 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.headers @@ -0,0 +1,3 @@ +Content-Length: 612 +Content-Type: application/xml +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.request b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.request new file mode 100644 index 00000000..2a6405cf --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.request @@ -0,0 +1,2 @@ +GET https://automx.novox.be/mail/config-v1.1.xml?emailaddress=jochen@novox.be +User-Agent: Thunderbird diff --git a/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.status b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.status new file mode 100644 index 00000000..992a7e84 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/02-thunderbird-on-automx-name.status @@ -0,0 +1 @@ +200 OK diff --git a/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.body b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.body new file mode 100644 index 00000000..72d5c376 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.body @@ -0,0 +1 @@ +novox.benovox.benovox.be143STARTTLS%EMAILADDRESS%password-cleartextmail.novox.be587STARTTLS%EMAILADDRESS%password-cleartext \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.headers b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.headers new file mode 100644 index 00000000..01eb3d79 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.headers @@ -0,0 +1,3 @@ +Content-Length: 612 +Content-Type: application/xml +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.request b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.request new file mode 100644 index 00000000..5b33fcce --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.request @@ -0,0 +1,2 @@ +GET https://autodiscover.novox.be/mail/config-v1.1.xml?emailaddress=jochen@novox.be +User-Agent: Thunderbird diff --git a/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.status b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.status new file mode 100644 index 00000000..992a7e84 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/03-thunderbird-on-autodiscover-name.status @@ -0,0 +1 @@ +200 OK diff --git a/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.body b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.body new file mode 100644 index 00000000..e69de29b diff --git a/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.headers b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.headers new file mode 100644 index 00000000..85abd033 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.headers @@ -0,0 +1,2 @@ +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.request b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.request new file mode 100644 index 00000000..d2459a88 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.request @@ -0,0 +1,2 @@ +GET https://autoconfig.novox.be/mail/config-v1.1.xml?emailaddress=nobody@unknown.example +User-Agent: Thunderbird diff --git a/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.status b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.status new file mode 100644 index 00000000..bd3152a3 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/04-thunderbird-unknown-domain.status @@ -0,0 +1 @@ +204 No Content diff --git a/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.body b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.body new file mode 100644 index 00000000..7f0ad25f --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.body @@ -0,0 +1 @@ +Missing request argument "emailaddress" \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.headers b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.headers new file mode 100644 index 00000000..64102801 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.headers @@ -0,0 +1,3 @@ +Content-Length: 39 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.request b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.request new file mode 100644 index 00000000..5d521f35 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.request @@ -0,0 +1,2 @@ +GET https://autoconfig.novox.be/mail/config-v1.1.xml +User-Agent: Thunderbird diff --git a/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.status b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.status new file mode 100644 index 00000000..59db10c4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/05-thunderbird-missing-emailaddress.status @@ -0,0 +1 @@ +400 Bad Request diff --git a/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.body b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.body new file mode 100644 index 00000000..8c25486a --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.body @@ -0,0 +1 @@ +Show Thunderbird-style XML configuration for abc@example.com. \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.headers b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.headers new file mode 100644 index 00000000..5cd620c0 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.headers @@ -0,0 +1,3 @@ +Content-Length: 152 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.request b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.request new file mode 100644 index 00000000..4dc45b54 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.request @@ -0,0 +1,2 @@ +GET https://autoconfig.novox.be/ +User-Agent: Mozilla/5.0 diff --git a/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.status b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.status new file mode 100644 index 00000000..992a7e84 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/06-autoconfig-root.status @@ -0,0 +1 @@ +200 OK diff --git a/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.body b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.body new file mode 100644 index 00000000..affacdf5 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.body @@ -0,0 +1,5 @@ + + +404 Not Found +

Not Found

+

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

diff --git a/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.headers b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.headers new file mode 100644 index 00000000..11f1fdb6 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.headers @@ -0,0 +1,3 @@ +Content-Length: 207 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.request b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.request new file mode 100644 index 00000000..d45d9935 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.request @@ -0,0 +1 @@ +GET https://autoconfig.novox.be/.well-known/autoconfig/mail/config-v1.1.xml?emailaddress=jochen@novox.be diff --git a/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.status b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.status new file mode 100644 index 00000000..44d986c4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/07-wellknown-autoconfig-path.status @@ -0,0 +1 @@ +404 Not Found diff --git a/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.body b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.body new file mode 100644 index 00000000..a38132d8 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.body @@ -0,0 +1,5 @@ + + +500 Internal Server Error +

Internal Server Error

+

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

diff --git a/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.headers b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.headers new file mode 100644 index 00000000..463e2827 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.headers @@ -0,0 +1,3 @@ +Content-Length: 265 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.request b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.request new file mode 100644 index 00000000..258c92a6 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.request @@ -0,0 +1,12 @@ +POST https://autodiscover.novox.be/autodiscover/autodiscover.xml +User-Agent: Microsoft Office/16.0 (Windows NT 10.0; Microsoft Outlook 16.0.14326; Pro) +Content-Type: text/xml +Accept: */* + + + + + jochen@novox.be + http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a + + diff --git a/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.status b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.status new file mode 100644 index 00000000..e534a491 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/08-outlook-post-known-domain.status @@ -0,0 +1 @@ +500 Internal Server Error diff --git a/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.body b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.body new file mode 100644 index 00000000..e69de29b diff --git a/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.headers b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.headers new file mode 100644 index 00000000..85abd033 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.headers @@ -0,0 +1,2 @@ +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.request b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.request new file mode 100644 index 00000000..990a009c --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.request @@ -0,0 +1,6 @@ +POST https://autodiscover.novox.be/autodiscover/autodiscover.xml +User-Agent: Microsoft Office/16.0 +Content-Type: text/xml + + +nobody@unknown.examplehttp://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a diff --git a/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.status b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.status new file mode 100644 index 00000000..bd3152a3 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/09-outlook-post-unknown-domain.status @@ -0,0 +1 @@ +204 No Content diff --git a/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.body b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.body new file mode 100644 index 00000000..a38132d8 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.body @@ -0,0 +1,5 @@ + + +500 Internal Server Error +

Internal Server Error

+

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

diff --git a/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.headers b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.headers new file mode 100644 index 00000000..463e2827 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.headers @@ -0,0 +1,3 @@ +Content-Length: 265 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.request b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.request new file mode 100644 index 00000000..7467eeee --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.request @@ -0,0 +1,5 @@ +POST https://autodiscover.novox.be/autodiscover/autodiscover.xml +User-Agent: Microsoft Office/16.0 +Content-Type: text/xml + +this is not xml \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.status b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.status new file mode 100644 index 00000000..e534a491 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/10-outlook-post-malformed-body.status @@ -0,0 +1 @@ +500 Internal Server Error diff --git a/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.body b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.body new file mode 100644 index 00000000..c52afca0 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.body @@ -0,0 +1 @@ +Missing request argument "EMailAddress" \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.headers b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.headers new file mode 100644 index 00000000..64102801 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.headers @@ -0,0 +1,3 @@ +Content-Length: 39 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.request b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.request new file mode 100644 index 00000000..abea016e --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.request @@ -0,0 +1,6 @@ +POST https://autodiscover.novox.be/autodiscover/autodiscover.xml +User-Agent: Microsoft Office/16.0 +Content-Type: text/xml + + +http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a diff --git a/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.status b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.status new file mode 100644 index 00000000..59db10c4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/11-outlook-post-missing-emailaddress.status @@ -0,0 +1 @@ +400 Bad Request diff --git a/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.body b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.body new file mode 100644 index 00000000..08dacbdc --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.body @@ -0,0 +1,5 @@ + + +405 Method Not Allowed +

Method Not Allowed

+

The method is not allowed for the requested URL.

diff --git a/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.headers b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.headers new file mode 100644 index 00000000..84e74dc7 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.headers @@ -0,0 +1,4 @@ +Allow: POST, OPTIONS +Content-Length: 153 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.request b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.request new file mode 100644 index 00000000..11530419 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.request @@ -0,0 +1,2 @@ +GET https://autodiscover.novox.be/autodiscover/autodiscover.xml +User-Agent: Microsoft Office/16.0 diff --git a/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.status b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.status new file mode 100644 index 00000000..ddf33a47 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/12-outlook-get-not-allowed.status @@ -0,0 +1 @@ +405 Method Not Allowed diff --git a/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.body b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.body new file mode 100644 index 00000000..affacdf5 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.body @@ -0,0 +1,5 @@ + + +404 Not Found +

Not Found

+

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

diff --git a/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.headers b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.headers new file mode 100644 index 00000000..11f1fdb6 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.headers @@ -0,0 +1,3 @@ +Content-Length: 207 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.request b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.request new file mode 100644 index 00000000..ff129abe --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.request @@ -0,0 +1,6 @@ +POST https://autodiscover.novox.be/Autodiscover/Autodiscover.xml +User-Agent: Microsoft Office/16.0 +Content-Type: text/xml + + +jochen@novox.behttp://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a diff --git a/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.status b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.status new file mode 100644 index 00000000..44d986c4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/13-outlook-post-capitalised-path.status @@ -0,0 +1 @@ +404 Not Found diff --git a/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.body b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.body new file mode 100644 index 00000000..bc384fc9 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.body @@ -0,0 +1,5 @@ + + +Redirecting... +

Redirecting...

+

You should be redirected automatically to the target URL: https://automx.novox.be/mobileconfig/?emailaddress=jochen@novox.be. If not, click the link. diff --git a/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.headers b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.headers new file mode 100644 index 00000000..75822817 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.headers @@ -0,0 +1,4 @@ +Content-Length: 319 +Content-Type: text/html; charset=utf-8 +Location: https://automx.novox.be/mobileconfig/?emailaddress=jochen@novox.be +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.request b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.request new file mode 100644 index 00000000..ee86c5ba --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.request @@ -0,0 +1,3 @@ +GET https://automx.novox.be/mobileconfig?emailaddress=jochen@novox.be +User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) Safari +Accept: */* diff --git a/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.status b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.status new file mode 100644 index 00000000..8e8ce5e4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/14-mobileconfig-no-slash.status @@ -0,0 +1 @@ +308 Permanent Redirect diff --git a/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.body b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.body new file mode 100644 index 00000000..875543c0 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.body @@ -0,0 +1,5 @@ + + +400 Bad Request +

Bad Request

+

The browser (or proxy) sent a request that this server could not understand.

diff --git a/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.headers b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.headers new file mode 100644 index 00000000..184e49a4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.headers @@ -0,0 +1,3 @@ +Content-Length: 167 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.request b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.request new file mode 100644 index 00000000..47197a20 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.request @@ -0,0 +1,3 @@ +GET https://automx.novox.be/mobileconfig/?emailaddress=jochen@novox.be +User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) Safari +Accept: */* diff --git a/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.status b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.status new file mode 100644 index 00000000..59db10c4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/15-mobileconfig-known-domain.status @@ -0,0 +1 @@ +400 Bad Request diff --git a/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.body b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.body new file mode 100644 index 00000000..e69de29b diff --git a/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.headers b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.headers new file mode 100644 index 00000000..85abd033 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.headers @@ -0,0 +1,2 @@ +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.request b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.request new file mode 100644 index 00000000..b38acb38 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.request @@ -0,0 +1,2 @@ +GET https://automx.novox.be/mobileconfig/?emailaddress=nobody@unknown.example +User-Agent: Mozilla/5.0 (iPhone) diff --git a/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.status b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.status new file mode 100644 index 00000000..bd3152a3 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/16-mobileconfig-unknown-domain.status @@ -0,0 +1 @@ +204 No Content diff --git a/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.body b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.body new file mode 100644 index 00000000..7f0ad25f --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.body @@ -0,0 +1 @@ +Missing request argument "emailaddress" \ No newline at end of file diff --git a/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.headers b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.headers new file mode 100644 index 00000000..64102801 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.headers @@ -0,0 +1,3 @@ +Content-Length: 39 +Content-Type: text/html; charset=utf-8 +Server: Werkzeug/3.1.9 Python/3.9.5 diff --git a/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.request b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.request new file mode 100644 index 00000000..a7f84362 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.request @@ -0,0 +1,2 @@ +GET https://automx.novox.be/mobileconfig/ +User-Agent: Mozilla/5.0 (iPhone) diff --git a/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.status b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.status new file mode 100644 index 00000000..59db10c4 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/17-mobileconfig-missing-emailaddress.status @@ -0,0 +1 @@ +400 Bad Request diff --git a/modules/mailu/cmd/automx/testdata/captured/CAPTURED b/modules/mailu/cmd/automx/testdata/captured/CAPTURED new file mode 100644 index 00000000..88967524 --- /dev/null +++ b/modules/mailu/cmd/automx/testdata/captured/CAPTURED @@ -0,0 +1,30 @@ +What mailu's autoconfiguration module (automx2 2021.6, container mailu-automx on novox, Werkzeug/3.1.9 Python/3.9.5) +answers to the requests mail clients make (R4d step AMX-1, issue 1630, ADR 0480). + +Captured 2026-10-21 between 13:58:25 and 13:58:52 (CEST; the Date headers said 11:58 GMT) with the mesh tool +shanks/netcheck.netcheck_request, called from shanks, through the names clients use (autoconfig.novox.be, +autodiscover.novox.be, automx.novox.be: HTTPS, the mesh's route), no ssh. A redirect is reported, never followed. +Mail domain served: novox.be. Mailbox used: jochen@novox.be; unknown domain: nobody@unknown.example. + +Each capture is four files with the same stem: + .request method and URL, then the request headers sent, then (after a blank line) the body sent + .status the status line + .headers the response headers, sorted by name, without Date (it changes on every request) + .body the response body, byte for byte (Content-Length in .headers equals its size) +The files were written from the tool's answers by a script (not by retyping each by hand); the tool returns JSON, so +a later capture that wants exact bytes needs a tool that writes the answer to a file. + +What the answers show (read, not guessed): + - GET /mail/config-v1.1.xml?emailaddress=... answers 200 application/xml on all three names; same body on each. + - The incoming (IMAP) server has an EMPTY hostname (), port 143, STARTTLS. The outgoing server is + mail.novox.be:587 STARTTLS. Cause (from reading the module, not from the database): automx/files/add-domains:35 + reads AMX_IMAP_SERVER, files/mailu.env:58 sets AMX_IMAP_ADDRESS, so the IMAP name was never written. + A client given this answer cannot find its IMAP server. + - POST /autodiscover/autodiscover.xml with a valid request for the served domain answers 500 (the Outlook + answer for a real mailbox does not work today). Unknown domain: 204 no body. Malformed body: 500. + No EMailAddress element: 400 "Missing request argument "EMailAddress"". GET: 405 with Allow: POST, OPTIONS. + The path is case sensitive (/Autodiscover/Autodiscover.xml is 404). + - GET /mobileconfig?emailaddress=... redirects (308) to /mobileconfig/?emailaddress=...; for the served domain that + answers 400 with no profile; unknown domain 204; no emailaddress 400. + - GET / on autoconfig answers 200 with a small HTML page linking to an example address. + - Not captured: the database rows (no mesh tool reads /data/db.sqlite; issue 1630 AC4).