Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.89 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.89 KB

Tests

There are some tests, which use a Vagrant environment composed of four VMs.

Executing tests

Vagrant and VirtualBox is needed to run the tests, which are simple Ansible playbooks under tests/*.

There is a Makefile which can be used to setup the Vagrant environment (make -j setup) and to run the test suite (make tests).

Vagrant environment

ns.test

A custom nameserver is needed as we need other RRs than simple A-RRs. The role nameserver is used which configures bind with the zone-files needed for the test environment.

Hostname: ns.test
FQDN: ns.test
IP: 192.168.56.2

sut.mydomain.test

This VM is the system-under-test which gets the role chkpnt.mailserver with all the relevant settings we want to test. The rspamd WebUI can be accessed via http://192.168.56.10:11334/ and password changeme.

Hostname / FQDN: sut.mydomain.test
IP: 192.168.56.10

mail-sink.theirdomain.test

This VM uses smtp-sink from the package postfix to catch all mails and write them into /tmp/maildump.

Hostname / FQDN: mail-sink.theirdomain.test
IP: 192.168.56.20

client.localdomain

This VM is used to be the Mail User Agent (MUA).

The mismatch in hostname and rDNS is by purpose to simulate a client sending mails from a regular internet connection at home:

Hostname: client.localdomain
FQDN: -
IP: 192.168.56.201
rDNS: ip-192.168.56.201.someisp.test