E-Mail notification just functions with default "other activities"

[/details]

Nextcloud version: 20.0.11
Operating system and version: Ubuntu 16.04.7
Apache or nginx version: Apache 2.4.18
PHP version: 7.4.15

E-mail notification don’t function when i configure “File” Settings, just 3 by default enabled “other activities” functions.

I have cron job configured:
*/5 * * * * php -f /var/www/nc1/cron.php
0 * * * * php -f /var/www/ncl/occ activity:send-mails hourly
30 7 * * * php -f /var/www/ncl/occ activity:send-mails daily
30 7 * * MON php -f /var/www/ncl/occ activity:send-mails weekly
also tested with php-cli and systemd timer.

I wanted to add this option recently but no matter how i configure it, it doesn’t work.

There is no log and error.

The output of config.php file:

$CONFIG = array (
‘instanceid’ => ‘smth’,
‘passwordsalt’ => ‘smth’,
‘secret’ => ‘smth’,
‘trusted_domains’ =>
array (
0 => ‘my domain’,
),
‘datadirectory’ => ‘/mnt/ncdata’,
‘overwrite.cli.url’ => ‘http://my domain’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘20.0.11.1’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘smth’,
‘dbpassword’ => ‘smth’,
‘installed’ => true,
‘maintenance’ => false,
‘mail_smtpmode’ => ‘smtp’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_from_address’ => ‘my mail address’,
‘mail_domain’ => ‘my mail domain’,
‘mail_smtphost’ => ‘smtp.my mail domain’,
‘mail_smtpport’ => ‘465’,
‘mail_smtpauth’ => 1,
‘mail_smtpname’ => ‘my mail address@my mail domain’,
‘mail_smtppassword’ => ‘smth’,
‘theme’ => ‘’,
‘loglevel’ => 2,
‘trashbin_retention_obligation’ => ‘1,2’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_smtpsecure’ => ‘ssl’,
);

The output of Apache error log:
[Tue Jul 20 15:25:53.861556 2021] [access_compat:error] [pid 75744] [client 91.114.239.198:49349] AH01797: client denied by server configuration: /var/www/nc1/config