I am installed a newer version of CKAN on my RHEL 8.9 server. After configured all the services I noticed that everything work well except the mail notification, that are the last rows of log :
[ckan.config.middleware.flask_app] Extensions are excluded from CSRF protection! We allow extensions to run without CSRF protection but it will be forced future releases. Read the documentation for more information on how to add CSRF protection to your extension.
[Thu Nov 28 11:38:19.146537 2024] [wsgi:error] [pid 3529976:tid 140069869577984] 2024-11-28 11:38:19,146 WARNI [ckan.config.middleware.flask_app] Extensions are excluded from CSRF protection! We allow extensions to run without CSRF protection but it will be forced future releases. Read the documentation for more information on how to add CSRF protection to your extension.
[Thu Nov 28 11:40:05.383151 2024] [wsgi:error] [pid 3531157:tid 140069733209856] 2024-11-28 11:40:05,383 WARNI [ckan.config.middleware.flask_app] Extensions are excluded from CSRF protection! We allow extensions to run without CSRF protection but it will be forced future releases. Read the documentation for more information on how to add CSRF protection to your extension.
[Thu Nov 28 11:40:06.881129 2024] [wsgi:error] [pid 3531156:tid 140069869577984] 2024-11-28 11:40:06,881 WARNI [ckan.config.middleware.flask_app] Extensions are excluded from CSRF protection! We allow extensions to run without CSRF protection but it will be forced future releases. Read the documentation for more information on how to add CSRF protection to your extension.
[Thu Nov 28 11:40:24.885903 2024] [wsgi:error] [pid 3531642:tid 140069775169280] [remote
10.134.247.235:37400] mod_wsgi (pid=3531642): Failed to exec Python script file '/var/ckan/rgis/apache.wsgi'.
[Thu Nov 28 11:40:24.885960 2024] [wsgi:error] [pid 3531642:tid 140069775169280] [remote
10.134.247.235:37400] mod_wsgi (pid=3531642): Exception occurred processing WSGI script 'var/ckan/rgis/apache.wsgi'.
I use that configuration ( local postfix server ) in ckan.ini file :
smtp.server = localhost
smtp.mail_from = "mail from"
error_email_from = "mail from"
#email_to = "mail to"
Postfix works correctly and also the .ini file seems properly configured. I noticed a details regarding the .ini file; if the email_to is not commented causes the 500 error when I restart apache. There are no rules on firewall, ckan works correctly same for the postifix, I have tried several options including the use of an external mail server but still the error . Do you have any idea on how to manage this error ?
Thanks in advance for your help.