There are some tests, which use a Vagrant environment composed of four VMs.
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
).
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
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
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
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:
- The client is allowed to send mails if it is authenticated
- Mails sent via the local MTA is tagged as Spam if it is received by the mailserver
Hostname: client.localdomain
FQDN: -
IP: 192.168.56.201
rDNS: ip-192.168.56.201.someisp.test