config/inbucket
Adrian 694e6bf290 Add mail setup and named configuration 2020-04-17 01:03:31 +02:00
..
README.md Add mail setup and named configuration 2020-04-17 01:03:31 +02:00
inbucket.conf Add mail setup and named configuration 2020-04-17 01:03:31 +02:00
inbucket.service Add mail setup and named configuration 2020-04-17 01:03:31 +02:00
nginx.conf Add mail setup and named configuration 2020-04-17 01:03:31 +02:00

README.md

Inbucket

To be used together with the mail setup.

Install Software

Get: https://www.inbucket.org/binaries/

cd /usr/local/share
sudo tar -xf ~/inbucket_*
sudo ln -s inbucket_* inbucket
sudo ln -s ../share/inbucket/inbucket /usr/local/bin
sudo ln -s ../share/inbucket/inbucket-client /usr/local/bin

Apply Configuration

DOMAIN=test.local

sudo cp inbucket.service /etc/systemd/system
sudo cp nginx.conf /etc/nginx/sites-available/inbucket
sudo -u vmail cp inbucket.conf /data/mail/config

sudo ln -s ../sites-available/inbucket /etc/nginx/sites-enabled
sudo sed -i s/example.com/$DOMAIN/ /etc/nginx/sites-available/inbucket

echo "inbucket:$(openssl passwd -5)" | sudo -u vmail tee /data/mail/config/inbucket.htpasswd
sudo chown vmail:www-data /data/mail/config/inbucket.htpasswd
sudo chmod 640 /data/mail/config/inbucket.htpasswd

echo "insert into domain (domain, transport) values ('$DOMAIN','smtp:[localhost]:2500')" | sudo -u vmail sqlite3 /data/mail/config/vmail.db

sudo systemctl enable inbucket