Setting mail: AxiosError: Request failed with status code 400

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • rocky linux
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.3.27
  • Is this the first time you’ve seen this error? (Yes / No):
    • no
  • When did this problem seem to first start?
    • one month ago
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • replace me
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

When I try to set mail parameter in setting I recive this msg: AxiosError: Request failed with status code 400"

This is my config.php file

‘mail_smtpmode’ => ‘smtp’,
‘mail_sendmailmode’ => ‘smtp’,
‘app_install_overwrite’ =>
array (
),
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtptimeout’ => 30,
‘mail_smtpstreamoptions’ => ‘’,
‘loglevel’ => 2,
‘config_preset’ => 7,
‘cache_app_config’ => false,
‘mail_smtpauth’ => true,
‘mail_smtpname’ => ‘example@studios2m.it’,
‘mail_smtppassword’ => ‘******’,
‘mail_smtphost’ => ‘smtps.aruba.it’,
‘mail_smtpport’ => ‘465’,
‘mail_from_address’ => ‘example’,
‘mail_domain’ => ‘studios2m.it’,
‘mail_smtpsecure’ => ‘ssl’,

I read all the forum post but I have not resolve my probleme. E-mail in profile is correctly set.

What is wrong?

Hey @canduccimauro welcome to the Nextcloud Community :waving_hand:

see here AxiosError: Request failed with status code 400

add a valid mail address to the admin users profile

A valid mail address is set in user profile

This is a strange thing.
When i reload the page of setting change the address sender in “no-reply”.
Config.php files is not changed

the address sender is automatically changed in “no-reply”