#!/bin/sh
# https://docs.nextcloud.com/server/31/admin_manual/configuration_server/email_configuration.html
docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:delete mail_smtpstreamoptions
docker exec --user www-data -i nextcloud-aio-nextcloud php occ config:import <<'EOT'
{
    "system": {
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        }
    }
}
EOT
