Mail seems broken

hello

I’m having problems with email, it’s a new setup and I want to use STARTTLS but I can’t find it under Encryption, my email server works with other apps just fine, and I tried duplicating my old config.php but no luck.

I always get this when trying to send test mail (that always fails) :frowning:
Undefined array key “mail_smtpauthtype” at /config/www/nextcloud/apps/settings/templates/settings/admin/additional-mail.php#132

‘mail_smtpmode’ => ‘smtp’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_from_address’ => ‘???’,
‘mail_domain’ => ‘???’,
‘mail_smtpport’ => ‘???’,
‘mail_smtphost’ => ‘???’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpauth’ => 1,
‘mail_smtpname’ => ‘???’,
‘mail_smtppassword’ => ‘???’,

any ideas?
thanks

Hey, can you please post your complete config by copying ?! You can use an occ command for that Using the occ command — Nextcloud latest Administration Manual latest documentation

sudo: unknown user www-data
sudo: error initializing audit plugin sudoers_audit

this it? seems i did something wrong
i used sudo -u www-data php occ config:list --private

EDIT: now im getting “Could not open input file: occ”

ok i got it finally! im using unraid and didnt need to type “-u www-data php” :sweat_smile:

{
“system”: {
“memcache.local”: “\OC\Memcache\APCu”,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
REMOVED SENSITIVE VALUE”,
REMOVED SENSITIVE VALUE
],
“trusted_proxies”: “REMOVED SENSITIVE VALUE”,
“default_phone_region”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “26.0.0.11”,
“overwrite.cli.url”: “REMOVED SENSITIVE VALUE”,
“overwriteprotocol”: “https”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “1025”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpauthtype”: “LOGIN”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE
},
“apps”: {
“activity”: {
“enabled”: “yes”,
“installed_version”: “2.18.0”,
“notify_email_calendar”: “0”,
“notify_email_calendar_event”: “0”,
“notify_email_calendar_todo”: “0”,
“notify_email_comments”: “1”,
“notify_email_contacts”: “0”,
“notify_email_file_changed”: “0”,
“notify_email_group_settings”: “1”,
“notify_email_public_links”: “0”,
“notify_email_remote_share”: “0”,
“notify_email_shared”: “0”,
“notify_email_systemtags”: “0”,
“notify_notification_calendar”: “0”,
“notify_notification_calendar_event”: “0”,
“notify_notification_calendar_todo”: “0”,
“notify_notification_comments”: “0”,
“notify_notification_contacts”: “0”,
“notify_notification_favorite”: “0”,
“notify_notification_file_changed”: “0”,
“notify_notification_file_favorite_changed”: “0”,
“notify_notification_group_settings”: “0”,
“notify_notification_personal_settings”: “0”,
“notify_notification_public_links”: “0”,
“notify_notification_remote_share”: “0”,
“notify_notification_security”: “1”,
“notify_notification_shared”: “0”,
“notify_notification_systemtags”: “0”,
“notify_setting_batchtime”: “3600”,
“notify_setting_self”: “0”,
“notify_setting_selfemail”: “0”,
“types”: “filesystem”
},
“backgroundjob”: {
“lastjob”: “64”
},
“bruteforcesettings”: {
“enabled”: “yes”,
“installed_version”: “2.6.0”,
“types”: “”
},
“circles”: {
“enabled”: “yes”,
“installed_version”: “26.0.0”,
“loopback_tmp_path”: “/”,
“loopback_tmp_scheme”: “https”,
“maintenance_run”: “0”,
“maintenance_update”: “{"3":1681493702,"2":1681496404,"1":1681496404}”,
“types”: “filesystem,dav”
},
“cloud_federation_api”: {
“enabled”: “yes”,
“installed_version”: “1.9.0”,
“types”: “filesystem”
},
“comments”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “logging”
},
“contactsinteraction”: {
“enabled”: “yes”,
“installed_version”: “1.7.0”,
“types”: “dav”
},
“core”: {
“backgroundjobs_mode”: “cron”,
“emailTestSuccessful”: “0”,
“installedat”: “1681408267.3957”,
“lastcron”: “1681496404”,
“lastupdateResult”: “”,
“lastupdatedat”: “1681495328”,
“oc.integritycheck.checker”: “”,
“public_files”: “files_sharing/public.php”,
“public_webdav”: “dav/appinfo/v1/publicwebdav.php”,
“vendor”: “nextcloud”
},
“dashboard”: {
“enabled”: “yes”,
“installed_version”: “7.6.0”,
“types”: “”
},
“dav”: {
“enabled”: “yes”,
“installed_version”: “1.25.0”,
“types”: “filesystem”
},
“federatedfilesharing”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “”
},
“federation”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “authentication”
},
“files”: {
“enabled”: “yes”,
“installed_version”: “1.21.1”,
“types”: “filesystem”
},
“files_pdfviewer”: {
“enabled”: “yes”,
“installed_version”: “2.7.0”,
“types”: “”
},
“files_rightclick”: {
“enabled”: “yes”,
“installed_version”: “1.5.0”,
“types”: “”
},
“files_sharing”: {
“enabled”: “yes”,
“installed_version”: “1.18.0”,
“types”: “filesystem”
},
“files_trashbin”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “filesystem,dav”
},
“files_versions”: {
“enabled”: “yes”,
“installed_version”: “1.19.1”,
“types”: “filesystem,dav”
},
“firstrunwizard”: {
“enabled”: “yes”,
“installed_version”: “2.15.0”,
“types”: “logging”
},
“logreader”: {
“enabled”: “yes”,
“installed_version”: “2.11.0”,
“types”: “”
},
“lookup_server_connector”: {
“enabled”: “yes”,
“installed_version”: “1.14.0”,
“types”: “authentication”
},
“mail”: {
“enabled”: “no”,
“installed_version”: “3.1.0”,
“types”: “”
},
“nextcloud_announcements”: {
“enabled”: “yes”,
“installed_version”: “1.15.0”,
“pub_date”: “Thu, 24 Oct 2019 00:00:00 +0200”,
“types”: “logging”
},
“notifications”: {
“enabled”: “yes”,
“installed_version”: “2.14.0”,
“types”: “logging”
},
“oauth2”: {
“enabled”: “yes”,
“installed_version”: “1.14.0”,
“types”: “authentication”
},
“password_policy”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “authentication”
},
“photos”: {
“enabled”: “yes”,
“installed_version”: “2.2.0”,
“lastPlaceMappedUser”: “admin”,
“lastPlaceMappingDone”: “true”,
“types”: “dav,authentication”
},
“privacy”: {
“enabled”: “yes”,
“installed_version”: “1.10.0”,
“types”: “”
},
“provisioning_api”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “prevent_group_restriction”
},
“recommendations”: {
“enabled”: “yes”,
“installed_version”: “1.5.0”,
“types”: “”
},
“related_resources”: {
“enabled”: “yes”,
“installed_version”: “1.1.0-alpha1”,
“types”: “”
},
“serverinfo”: {
“cached_count_filecache”: “196”,
“cached_count_storages”: “3”,
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “”
},
“settings”: {
“enabled”: “yes”,
“installed_version”: “1.8.0”,
“types”: “”
},
“sharebymail”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “filesystem”
},
“support”: {
“enabled”: “yes”,
“installed_version”: “1.9.0”,
“types”: “session”
},
“survey_client”: {
“enabled”: “yes”,
“installed_version”: “1.14.0”,
“types”: “”
},
“systemtags”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “logging”
},
“text”: {
“enabled”: “yes”,
“installed_version”: “3.7.2”,
“types”: “dav”
},
“theming”: {
“enabled”: “yes”,
“installed_version”: “2.1.1”,
“types”: “logging”
},
“twofactor_backupcodes”: {
“enabled”: “yes”,
“installed_version”: “1.15.0”,
“types”: “”
},
“twofactor_email”: {
“enabled”: “yes”,
“installed_version”: “2.7.2”,
“types”: “”
},
“updatenotification”: {
“enabled”: “yes”,
“installed_version”: “1.16.0”,
“types”: “”,
“update_check_errors”: “0”
},
“user_status”: {
“enabled”: “yes”,
“installed_version”: “1.6.0”,
“types”: “”
},
“viewer”: {
“enabled”: “yes”,
“installed_version”: “1.10.0”,
“types”: “”
},
“weather_status”: {
“enabled”: “yes”,
“installed_version”: “1.6.0”,
“types”: “”
},
“workflowengine”: {
“enabled”: “yes”,
“installed_version”: “2.8.0”,
“types”: “filesystem”
}
}
}

any ideas?
still having problems :frowning: i tried the docs but not luck

Having the same issue. Logs show:

Undefined array key “mail_smtpauthtype” at /apps/settings/templates/settings/admin/additional-mail.php#132

Should be fixed with 26.0.1

nope :frowning: still doesnt work

Try the patch https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/37340.diff.

It fixes the problem for me.

ok i found what was the problem, has nothing to do with nextcloud, It was my unraid network set up, i had my email server using a bridge network and nextcloud on br0, they couldn’t communicate with each other for some reason…