2021-12-21 03:15:49 +08:00

14 lines
270 B
Bash
Executable File

#!/bin/sh
# maildir
MAIL_PATH="/var/mail/domains"
MAIL_USER="mail"
if [ ! -d ${MAIL_PATH} ]; then mkdir -p ${MAIL_PATH}; fi
chown -R ${MAIL_USER} ${MAIL_PATH}
# openkdim
chown -R opendkim:opendkim /etc/opendkim
# starting
syslogd; opendkim; postfix start; dovecot -F