⚠️ This issue respects the following points: ⚠️
Bug description
Calendar invites were working earlier with smtp.puri.sm as the mail server. Recently we changed the DNS entry of smtp.puri.sm to point to ms.puri.sm (our new smtp server), but continue connecting to the old smtp server and fails. Sending a test email works showing NextCloud is actually able to send mails with the new smtp server.
So we changed the smtp server to another one - lists.puri.sm and again test mail was successful and config.php reflected the changes. But Calendar still connects to the old server and fail.
{"reqId":"ugty2gsO7H5JyOPuuxcg","level":3,"time":"2026-04-09T13:30:21+00:00","remoteAddr":"106.222.205.0","user":"3d66ea00-f7af-103d-8bf4-3b927db10e42","app":"mail","method":"PUT","url":"/remote.php/dav/calendars/3d66ea00-f7af-103d-8bf4-3b927db10e42/personal/AAF2FBCC-2147-4943-B584-D392DFA6DAD5.ics","scriptName":"/remote.php","message":"Server is not accepting SMTP connections.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; Mobile; rv:140.0) Gecko/20100101 Firefox/140.0","version":"32.0.6.1","exception":{"Exception":"Horde_Mime_Exception","Message":"Server is not accepting SMTP connections.","Code":4,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":157,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SendHandler.php","line":32,"function":"sendMessage","class":"OCA\\Mail\\Service\\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\SendHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AntiAbuseHandler.php","line":55,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\AntiAbuseHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SentMailboxHandler.php","line":25,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/Chain.php","line":54,"function":"process","class":"OCA\\Mail\\Send\\SentMailboxHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":123,"function":"process","class":"OCA\\Mail\\Send\\Chain","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/Command/MessageSend.php","line":116,"function":"sendMessage","class":"OCA\\Mail\\Service\\OutboxService","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/MailService.php","line":190,"function":"perform","class":"OCA\\Mail\\Provider\\Command\\MessageSend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php","line":303,"function":"sendMessage","class":"OCA\\Mail\\Provider\\MailService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"schedule","class":"OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":351,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":627,"function":"deliver","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/Plugin.php","line":199,"function":"processICalendarChange","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"calendarObjectChange","class":"OCA\\DAV\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":889,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":760,"function":"validateICalendar","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","Line":1642,"Previous":{"Exception":"Horde_Mail_Exception","Message":"Server is not accepting SMTP connections.","Code":4,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":157,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SendHandler.php","line":32,"function":"sendMessage","class":"OCA\\Mail\\Service\\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\SendHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AntiAbuseHandler.php","line":55,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\AntiAbuseHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SentMailboxHandler.php","line":25,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/Chain.php","line":54,"function":"process","class":"OCA\\Mail\\Send\\SentMailboxHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":123,"function":"process","class":"OCA\\Mail\\Send\\Chain","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/Command/MessageSend.php","line":116,"function":"sendMessage","class":"OCA\\Mail\\Service\\OutboxService","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/MailService.php","line":190,"function":"perform","class":"OCA\\Mail\\Provider\\Command\\MessageSend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php","line":303,"function":"sendMessage","class":"OCA\\Mail\\Provider\\MailService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"schedule","class":"OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":351,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":627,"function":"deliver","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/Plugin.php","line":199,"function":"processICalendarChange","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"calendarObjectChange","class":"OCA\\DAV\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":889,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":760,"function":"validateICalendar","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mail/lib/Horde/Mail/Transport/Smtphorde.php","Line":145,"Previous":{"Exception":"Horde_Smtp_Exception","Message":"Server is not accepting SMTP connections.","Code":4,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":416,"function":"_getResponse","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":521,"function":"login","class":"Horde_Smtp","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mail/lib/Horde/Mail/Transport/Smtphorde.php","line":143,"function":"send","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":157,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SendHandler.php","line":32,"function":"sendMessage","class":"OCA\\Mail\\Service\\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\SendHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AntiAbuseHandler.php","line":55,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\AntiAbuseHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SentMailboxHandler.php","line":25,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/Chain.php","line":54,"function":"process","class":"OCA\\Mail\\Send\\SentMailboxHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":123,"function":"process","class":"OCA\\Mail\\Send\\Chain","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/Command/MessageSend.php","line":116,"function":"sendMessage","class":"OCA\\Mail\\Service\\OutboxService","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/MailService.php","line":190,"function":"perform","class":"OCA\\Mail\\Provider\\Command\\MessageSend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php","line":303,"function":"sendMessage","class":"OCA\\Mail\\Provider\\MailService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"schedule","class":"OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":351,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":627,"function":"deliver","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/Plugin.php","line":199,"function":"processICalendarChange","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"calendarObjectChange","class":"OCA\\DAV\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":889,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":760,"function":"validateICalendar","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","Line":1076}},"message":"Server is not accepting SMTP connections.","exception":{"details":"5.7.1 <cloud.puri.sm[157.245.165.126]>: Client host rejected: Access denied","logged":false},"CustomMessage":"Server is not accepting SMTP connections."},"id":"69d7aebe12df4"}
2026-04-09T06:30:19.724110-07:00 comms postfix/smtps/smtpd[850605]: connect from cloud.puri.sm[157.245.165.126]
2026-04-09T06:30:19.731165-07:00 comms postfix/smtps/smtpd[850605]: NOQUEUE: reject: CONNECT from cloud.puri.sm[157.245.165.126]: 554 5.7.1 <cloud.puri.sm[157.245.165.126]>: Client host rejected: Access denied; proto=SMTP
2026-04-09T06:30:19.780375-07:00 comms postfix/smtps/smtpd[850605]: NOQUEUE: lost connection after CONNECT from cloud.puri.sm[157.245.165.126]
2026-04-09T06:30:19.780584-07:00 comms postfix/smtps/smtpd[850605]: disconnect from cloud.puri.sm[157.245.165.126] commands=0/0
Neither ms.puri.sm nor lists.puri.sm has any trace of the connection from cloud.puri.sm when calendar tries to send mails.
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'cloud',
'mail_domain' => 'puri.sm',
'mail_smtphost' => 'lists.puri.sm',
'mail_smtpport' => '25',
Send test mails shows it has the required access to send mails and headers confirm it was indeed sent via lists.puri.sm
Return-Path: <cloud@puri.sm>
X-Original-To: p...@puri.sm
Delivered-To: p...@puri.sm
Received: from localhost (localhost [127.0.0.1])
by comms.puri.sm (Postfix) with ESMTP id A4365DF4D0
for <p...@puri.sm>; Thu, 09 Apr 2026 00:59:03 -0700 (PDT)
Received: from comms.puri.sm ([127.0.0.1])
by localhost (comms.puri.sm [127.0.0.1]) (amavis, port 10024) with ESMTP
id N2m_FhNUYegG for <p...@puri.sm>;
Thu, 9 Apr 2026 00:59:02 -0700 (PDT)
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=37.27.84.17; helo=lists.puri.sm; envelope-from=cloud@puri.sm; receiver=puri.sm
Received: from lists.puri.sm (lists.puri.sm [37.27.84.17])
by comms.puri.sm (Postfix) with ESMTP id 98348DF49A
for <p...@puri.sm>; Thu, 09 Apr 2026 00:59:01 -0700 (PDT)
Received: from cloud.puri.sm (cloud.puri.sm [157.245.165.126])
by lists.puri.sm (Postfix) with ESMTPS id 1F2153FD1D
for <p...@puri.sm>; Thu, 09 Apr 2026 00:58:58 -0700 (PDT)
Subject: Email setting test
To: Praveen Arimbrathodiyil <praveen.arimbrathodiyil@puri.sm>
From: Purism Sharing Portal <cloud@puri.sm>
NextCloud version is 32.0.6
Steps to reproduce
- Update smtp server settings to a new server
- send test mail to confirm new server can send mails
- create and event and send the invitation - this goes to the old smtp server - confirm in email headers
Expected behavior
Changing the smtp server should be reflected in smtp server used by calendar invites comonent.
Nextcloud Server version
32
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
# sudo -u www-data php /var/www/n
extcloud/occ config:list system
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.puri.sm"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/cloud.puri.sm",
"dbtype": "mysql",
"version": "32.0.6.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
"maintenance": false,
"theme": "",
"loglevel": 3,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"memcache.locking": "\\OC\\Memcache\\Redis",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"updater.release.channel": "stable",
"app_install_overwrite": [
"spgverein",
"spreed",
"richdocuments"
],
"default_phone_region": "US",
"maintenance_window_start": 3,
"mail_sendmailmode": "smtp"
}
}
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Bug description
Calendar invites were working earlier with smtp.puri.sm as the mail server. Recently we changed the DNS entry of smtp.puri.sm to point to ms.puri.sm (our new smtp server), but continue connecting to the old smtp server and fails. Sending a test email works showing NextCloud is actually able to send mails with the new smtp server.
So we changed the smtp server to another one - lists.puri.sm and again test mail was successful and config.php reflected the changes. But Calendar still connects to the old server and fail.
{"reqId":"ugty2gsO7H5JyOPuuxcg","level":3,"time":"2026-04-09T13:30:21+00:00","remoteAddr":"106.222.205.0","user":"3d66ea00-f7af-103d-8bf4-3b927db10e42","app":"mail","method":"PUT","url":"/remote.php/dav/calendars/3d66ea00-f7af-103d-8bf4-3b927db10e42/personal/AAF2FBCC-2147-4943-B584-D392DFA6DAD5.ics","scriptName":"/remote.php","message":"Server is not accepting SMTP connections.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; Mobile; rv:140.0) Gecko/20100101 Firefox/140.0","version":"32.0.6.1","exception":{"Exception":"Horde_Mime_Exception","Message":"Server is not accepting SMTP connections.","Code":4,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":157,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SendHandler.php","line":32,"function":"sendMessage","class":"OCA\\Mail\\Service\\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\SendHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AntiAbuseHandler.php","line":55,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\AntiAbuseHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SentMailboxHandler.php","line":25,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/Chain.php","line":54,"function":"process","class":"OCA\\Mail\\Send\\SentMailboxHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":123,"function":"process","class":"OCA\\Mail\\Send\\Chain","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/Command/MessageSend.php","line":116,"function":"sendMessage","class":"OCA\\Mail\\Service\\OutboxService","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/MailService.php","line":190,"function":"perform","class":"OCA\\Mail\\Provider\\Command\\MessageSend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php","line":303,"function":"sendMessage","class":"OCA\\Mail\\Provider\\MailService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"schedule","class":"OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":351,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":627,"function":"deliver","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/Plugin.php","line":199,"function":"processICalendarChange","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"calendarObjectChange","class":"OCA\\DAV\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":889,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":760,"function":"validateICalendar","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","Line":1642,"Previous":{"Exception":"Horde_Mail_Exception","Message":"Server is not accepting SMTP connections.","Code":4,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":157,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SendHandler.php","line":32,"function":"sendMessage","class":"OCA\\Mail\\Service\\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\SendHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AntiAbuseHandler.php","line":55,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\AntiAbuseHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SentMailboxHandler.php","line":25,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/Chain.php","line":54,"function":"process","class":"OCA\\Mail\\Send\\SentMailboxHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":123,"function":"process","class":"OCA\\Mail\\Send\\Chain","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/Command/MessageSend.php","line":116,"function":"sendMessage","class":"OCA\\Mail\\Service\\OutboxService","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/MailService.php","line":190,"function":"perform","class":"OCA\\Mail\\Provider\\Command\\MessageSend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php","line":303,"function":"sendMessage","class":"OCA\\Mail\\Provider\\MailService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"schedule","class":"OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":351,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":627,"function":"deliver","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/Plugin.php","line":199,"function":"processICalendarChange","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"calendarObjectChange","class":"OCA\\DAV\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":889,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":760,"function":"validateICalendar","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mail/lib/Horde/Mail/Transport/Smtphorde.php","Line":145,"Previous":{"Exception":"Horde_Smtp_Exception","Message":"Server is not accepting SMTP connections.","Code":4,"Trace":[{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":416,"function":"_getResponse","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","line":521,"function":"login","class":"Horde_Smtp","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mail/lib/Horde/Mail/Transport/Smtphorde.php","line":143,"function":"send","class":"Horde_Smtp","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Part.php","line":1620,"function":"send","class":"Horde_Mail_Transport_Smtphorde","type":"->"},{"file":"/var/www/nextcloud/apps/mail/vendor/bytestream/horde-mime/lib/Horde/Mime/Mail.php","line":479,"function":"send","class":"Horde_Mime_Part","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/MailTransmission.php","line":157,"function":"send","class":"Horde_Mime_Mail","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SendHandler.php","line":32,"function":"sendMessage","class":"OCA\\Mail\\Service\\MailTransmission","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\SendHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AntiAbuseHandler.php","line":55,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/AHandler.php","line":34,"function":"process","class":"OCA\\Mail\\Send\\AntiAbuseHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/SentMailboxHandler.php","line":25,"function":"processNext","class":"OCA\\Mail\\Send\\AHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Send/Chain.php","line":54,"function":"process","class":"OCA\\Mail\\Send\\SentMailboxHandler","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Service/OutboxService.php","line":123,"function":"process","class":"OCA\\Mail\\Send\\Chain","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/Command/MessageSend.php","line":116,"function":"sendMessage","class":"OCA\\Mail\\Service\\OutboxService","type":"->"},{"file":"/var/www/nextcloud/apps/mail/lib/Provider/MailService.php","line":190,"function":"perform","class":"OCA\\Mail\\Provider\\Command\\MessageSend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php","line":303,"function":"sendMessage","class":"OCA\\Mail\\Provider\\MailService","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"schedule","class":"OCA\\DAV\\CalDAV\\Schedule\\IMipPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":351,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Schedule/Plugin.php","line":627,"function":"deliver","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CalDAV/Schedule/Plugin.php","line":199,"function":"processICalendarChange","class":"Sabre\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"calendarObjectChange","class":"OCA\\DAV\\CalDAV\\Schedule\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":889,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php","line":760,"function":"validateICalendar","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeCreateFile","class":"Sabre\\CalDAV\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1094,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":426,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":151,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/mail/vendor/nextcloud/horde-smtp/lib/Horde/Smtp.php","Line":1076}},"message":"Server is not accepting SMTP connections.","exception":{"details":"5.7.1 <cloud.puri.sm[157.245.165.126]>: Client host rejected: Access denied","logged":false},"CustomMessage":"Server is not accepting SMTP connections."},"id":"69d7aebe12df4"}Neither ms.puri.sm nor lists.puri.sm has any trace of the connection from cloud.puri.sm when calendar tries to send mails.
Send test mails shows it has the required access to send mails and headers confirm it was indeed sent via lists.puri.sm
NextCloud version is 32.0.6
Steps to reproduce
Expected behavior
Changing the smtp server should be reflected in smtp server used by calendar invites comonent.
Nextcloud Server version
32
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.4
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response