2nd try: mkdir of config directories
This commit is contained in:
parent
aa0f635a2e
commit
3358b0123a
10
emailwiz.sh
10
emailwiz.sh
@ -20,6 +20,12 @@ umask 0022
|
||||
#A apt-get install -y postfix postfix-pcre dovecot-imapd dovecot-sieve opendkim opendkim-tools spamassassin spamc net-tools fail2ban
|
||||
pacman -Syu postfix postfix-pcre dovecot pigeonhole opendkim spamassassin net-tools fail2ban cronie
|
||||
|
||||
mkdir /etc/dovecot
|
||||
cp /usr/share/doc/dovecot/example-config/dovecot.conf /etc/dovecot/dovecot.conf
|
||||
cp -r /usr/share/doc/dovecot/example-config/conf.d /etc/dovecot
|
||||
|
||||
mkdir -p /var/lib/dovecot/sieve
|
||||
|
||||
#A domain="$(cat /etc/mailname)"
|
||||
domain="0124816.xyz"
|
||||
subdom="mail"
|
||||
@ -297,8 +303,8 @@ postconf -e 'non_smtpd_milters = inet:localhost:12301'
|
||||
postconf -e 'mailbox_command = /usr/lib/dovecot/deliver'
|
||||
|
||||
# A fix for "Opendkim won't start: can't open PID file?", as specified here: https://serverfault.com/a/847442
|
||||
/lib/opendkim/opendkim.service.generate
|
||||
systemctl daemon-reload
|
||||
# /lib/opendkim/opendkim.service.generate
|
||||
# systemctl daemon-reload
|
||||
|
||||
# Enable fail2ban security for dovecot and postfix.
|
||||
[ ! -f /etc/fail2ban/jail.d/emailwiz.local ] && echo "[postfix]
|
||||
|
Loading…
Reference in New Issue
Block a user