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/SigningTable
if grep -q "ExternalIgnoreList" /etc/dkimpy-milter/dkimpy-milter.conf; then
true # already done #NODOC
else
# Add various configuration options to the end of `dkimpy-milter.conf`.
cat >> /etc/dkimpy-milter/dkimpy-milter.conf << EOF;
Canonicalization relaxed/simple
MinimumKeyBits 1024
ExternalIgnoreList refile:/etc/dkim/TrustedHosts
InternalHosts refile:/etc/dkim/TrustedHosts
KeyTable refile:/etc/dkim/KeyTable
KeyTableEd25519 refile:/etc/dkim/KeyTableEd25519
SigningTable refile:/etc/dkim/SigningTable
Socket inet:8892@127.0.0.1
RequireSafeKeys false
EOF
fi
tools/editconf.py /etc/dkimpy-milter/dkimpy-milter.conf -s \
"MacroList=daemon_name|ORIGINATING"
"MacroListVerify=daemon_name|VERIFYING"
"Canonicalization=relaxed/simple"
"MinimumKeyBits=1024"
"ExternalIgnoreList=refile:/etc/dkim/TrustedHosts"
"InternalHosts=refile:/etc/dkim/TrustedHosts"
"KeyTable=refile:/etc/dkim/KeyTable"
"KeyTableEd25519=refile:/etc/dkim/KeyTableEd25519"
"SigningTable=refile:/etc/dkim/SigningTable"
"Socket=inet:8892@127.0.0.1"
"RequireSafeKeys=false"
# Create a new DKIM key. This creates mail.private and mail.txt
# 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 syslog_name=postfix/submission
-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" \
"submission=inet n - - - - smtpd
-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-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() {
version=$1
@ -341,7 +347,7 @@ sudo -u www-data \
| (grep -v "No such app enabled" || /bin/true)
# 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
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 ';' \
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
# 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.