14 lines
270 B
Bash
Raw Normal View History

2021-12-17 03:33:54 +08:00
#!/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