Skip to content

Commit

Permalink
fix: update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
yuikns committed Oct 28, 2024
1 parent 2c2ae31 commit 7128b61
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ command=/opt/postfix.sh
[program:dovecot]
command=/opt/dovecot.sh
[program:opendkim]
command=opendkim -f
command=/opt/opendkim.sh
EOF

# [program:rsyslog]
Expand All @@ -27,6 +27,12 @@ EOF
# ref: https://www.postfix.org/COMPATIBILITY_README.html
postconf compatibility_level=3.6

# for compatibility, create a dummy file
if [ ! -f /usr/share/man/man5/mysql_table.5.gz ]; then
mkdir -p /usr/share/man/man5/
touch /usr/share/man/man5/mysql_table.5.gz
fi

cat >> /opt/postfix.sh <<EOF
#!/bin/bash
Expand Down Expand Up @@ -63,6 +69,17 @@ chmod +x /opt/dovecot.sh
# chown -R postfix /var/spool/postfix
# chmod -R 755 /var/spool/postfix

# config for opendkim
cat >> /opt/opendkim.sh <<EOF
#! /bin/bash
set -e
chown -R opendkim:opendkim /etc/opendkim/
opendkim -f
EOF
chmod +x /opt/opendkim.sh

# config for dovecot
useradd vmail
Expand Down

0 comments on commit 7128b61

Please sign in to comment.