dkimpy dev and nextcloud installation details

This commit is contained in:
github@kiekerjan.isdronken.nl 2022-01-06 22:06:27 +01:00
parent 3350fecd92
commit 99c960fc56
4 changed files with 20 additions and 22 deletions

View File

@ -25,22 +25,18 @@ echo "127.0.0.1" > /etc/dkim/TrustedHosts
touch /etc/dkim/KeyTable touch /etc/dkim/KeyTable
touch /etc/dkim/SigningTable touch /etc/dkim/SigningTable
if grep -q "ExternalIgnoreList" /etc/dkimpy-milter/dkimpy-milter.conf; then tools/editconf.py /etc/dkimpy-milter/dkimpy-milter.conf -s \
true # already done #NODOC "MacroList=daemon_name|ORIGINATING"
else "MacroListVerify=daemon_name|VERIFYING"
# Add various configuration options to the end of `dkimpy-milter.conf`. "Canonicalization=relaxed/simple"
cat >> /etc/dkimpy-milter/dkimpy-milter.conf << EOF; "MinimumKeyBits=1024"
Canonicalization relaxed/simple "ExternalIgnoreList=refile:/etc/dkim/TrustedHosts"
MinimumKeyBits 1024 "InternalHosts=refile:/etc/dkim/TrustedHosts"
ExternalIgnoreList refile:/etc/dkim/TrustedHosts "KeyTable=refile:/etc/dkim/KeyTable"
InternalHosts refile:/etc/dkim/TrustedHosts "KeyTableEd25519=refile:/etc/dkim/KeyTableEd25519"
KeyTable refile:/etc/dkim/KeyTable "SigningTable=refile:/etc/dkim/SigningTable"
KeyTableEd25519 refile:/etc/dkim/KeyTableEd25519 "Socket=inet:8892@127.0.0.1"
SigningTable refile:/etc/dkim/SigningTable "RequireSafeKeys=false"
Socket inet:8892@127.0.0.1
RequireSafeKeys false
EOF
fi
# Create a new DKIM key. This creates mail.private and mail.txt # Create a new DKIM key. This creates mail.private and mail.txt
# in $STORAGE_ROOT/mail/dkim. The former is the private key and # in $STORAGE_ROOT/mail/dkim. The former is the private key and

View File

@ -92,7 +92,7 @@ tools/editconf.py /etc/postfix/master.cf -s -w \
-o smtpd_sasl_auth_enable=yes -o smtpd_sasl_auth_enable=yes
-o syslog_name=postfix/submission -o syslog_name=postfix/submission
-o smtpd_milters=inet:127.0.0.1:8892 -o smtpd_milters=inet:127.0.0.1:8892
-o milter_macro_daemon_name=VERIFYING -o milter_macro_daemon_name=ORIGINATING
-o cleanup_service_name=authclean" \ -o cleanup_service_name=authclean" \
"submission=inet n - - - - smtpd "submission=inet n - - - - smtpd
-o smtpd_sasl_auth_enable=yes -o smtpd_sasl_auth_enable=yes

View File

@ -16,6 +16,12 @@ apt_install php php-fpm \
php-dev php-gd php-xml php-mbstring php-zip php-apcu php-json \ php-dev php-gd php-xml php-mbstring php-zip php-apcu php-json \
php-intl php-imagick php-gmp php-bcmath php-intl php-imagick php-gmp php-bcmath
# Enable apc is required before installing nextcloud 21
tools/editconf.py /etc/php/$(php_version)/mods-available/apcu.ini -c ';' \
apc.enable_cli=1
restart_service php$(php_version)-fpm
InstallNextcloud() { InstallNextcloud() {
version=$1 version=$1
@ -341,7 +347,7 @@ sudo -u www-data \
| (grep -v "No such app enabled" || /bin/true) | (grep -v "No such app enabled" || /bin/true)
# Install interesting apps # Install interesting apps
installed=$(sudo -u www-data php /usr/local/lib/owncloud/occ app:list | grep 'notes') installed=$(sudo -u www-data php /usr/local/lib/owncloud/occ app:list | grep "notes")
if [ -z "$installed" ]; then if [ -z "$installed" ]; then
sudo -u www-data php /usr/local/lib/owncloud/occ app:install notes sudo -u www-data php /usr/local/lib/owncloud/occ app:install notes

View File

@ -63,10 +63,6 @@ tools/editconf.py /etc/php/$(php_version)/fpm/php.ini -c ';' \
tools/editconf.py /etc/php/$(php_version)/fpm/pool.d/www.conf -c ';' \ tools/editconf.py /etc/php/$(php_version)/fpm/pool.d/www.conf -c ';' \
env[PATH]=/usr/local/bin:/usr/bin:/bin \ env[PATH]=/usr/local/bin:/usr/bin:/bin \
# Enable apc is required before installing nextcloud 21
tools/editconf.py /etc/php/$(php_version)/mods-available/apcu.ini -c ';' \
apc.enabled=1
# Configure php-fpm based on the amount of memory the machine has # Configure php-fpm based on the amount of memory the machine has
# This is based on the nextcloud manual for performance tuning: https://docs.nextcloud.com/server/17/admin_manual/installation/server_tuning.html # This is based on the nextcloud manual for performance tuning: https://docs.nextcloud.com/server/17/admin_manual/installation/server_tuning.html
# Some synchronisation issues can occur when many people access the site at once. # Some synchronisation issues can occur when many people access the site at once.