mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-20 03:18:18 +00:00
257dc4a25a
This has our first end-to-end integration test that validates smtp -> source mta -> sink mta -> maildir and confirms that the message has the right bits inside it. The end to end test will get refactored into more easily usable pieces in follow-up commit(s).
20 lines
495 B
Makefile
20 lines
495 B
Makefile
check:
|
|
cargo check
|
|
|
|
test:
|
|
cargo build
|
|
cargo nextest run
|
|
|
|
fmt:
|
|
cargo +nightly fmt
|
|
stylua --config-path stylua.toml .
|
|
black docs/generate-toc.py
|
|
|
|
sink: unsink
|
|
sudo iptables -t nat -A OUTPUT -p tcp \! -d 192.168.1.0/24 --dport 25 -j DNAT --to-destination 127.0.0.1:2026
|
|
sudo iptables -t nat -L -n
|
|
smtp-sink 127.0.0.1:2026 2000 || exit 0
|
|
|
|
unsink: # float?
|
|
while sudo iptables -t nat -D OUTPUT -p tcp \! -d 192.168.1.0/24 --dport 25 -j DNAT --to-destination 127.0.0.1:2026 ; do true ; done
|