28 lines
458 B
Bash
28 lines
458 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# vmail-stack
|
||
|
# https://git.stack-source.com/msb/vmail-stack
|
||
|
# MIT License Copyright (c) 2021 Matthew Saunders Brown
|
||
|
|
||
|
# load config
|
||
|
source /usr/local/etc/vmail.conf
|
||
|
|
||
|
# check for and set virtualhost
|
||
|
if [ -n "$1" ]; then
|
||
|
virtualhost=$1
|
||
|
else
|
||
|
echo "virtualhost not set"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
vmail.sh create domain
|
||
|
dkim create
|
||
|
check if stack-dns nameservers
|
||
|
add dkim record
|
||
|
add dmarc record
|
||
|
vmail-secure.sh
|
||
|
esle
|
||
|
notify dkim & dmar
|
||
|
|
||
|
|