pyceo/.drone/mail-setup.sh

24 lines
412 B
Bash
Raw Normal View History

2021-09-09 20:13:39 -04:00
#!/bin/bash
set -ex
. .drone/common.sh
# set FQDN in /etc/hosts
add_fqdn_to_hosts $(get_ip_addr $(hostname)) mail
2021-09-09 23:21:22 -04:00
add_fqdn_to_hosts $(get_ip_addr auth1) auth1
2021-09-09 20:13:39 -04:00
. venv/bin/activate
python tests/MockMailmanServer.py &
python tests/MockSMTPServer.py &
2021-09-09 23:21:22 -04:00
export DEBIAN_FRONTEND=noninteractive
apt update
2021-09-10 18:29:32 -04:00
apt install -y netcat-openbsd
auth_setup mail
2021-09-09 23:21:22 -04:00
# sync with phosphoric-acid
nc -l 0.0.0.0 9000
2021-09-09 20:13:39 -04:00
sleep infinity