Mischback / mailsrv

Setup of a mail service, including MTA and MDA
MIT License
0 stars 0 forks source link

Test Suite #1

Closed Mischback closed 1 year ago

Mischback commented 2 years ago

The Python-based test suite should verify, that the general setup of the different components is working.

Prerequisites

Test Cases

Required Infrastructure

Mischback commented 2 years ago

Adjust the output of the test suite.

https://stackoverflow.com/a/16974979 suggests defining own logging levels, which may cover the gap between DEBUG and INFO and https://stackoverflow.com/a/35804945 shows how to do this (final implementation: https://github.com/madphysicist/haggis/blob/master/src/haggis/logs.py)!

Mischback commented 2 years ago

https://rszalski.github.io/magicmethods/

Mischback commented 2 years ago

Colored Output of the test runner

Mischback commented 1 year ago

Note

To make the name resolution work during the test suite, the SUT's /etc/hosts is modified to include another-host.test.

For Postfix to pick this up, the following setting has to be applied

smtp_host_lookup = dns,native

By default, Postfix will only use the (system-configured) DNS server to resolve hosts, which is generally desired. Adding native enables lookups from /etc/hosts for hosts, that are not resolvable by DNS (and the *.test TLD is never resolvable by DNS).

Things to consider