We’ve encountered a strange issue in our Zammad installation:
Whenever we send an email with a .kml attachment, the Zammad mail service crashes. After that, Zammad loses its connection to the mail server and fails to log in again.
Important:
Restarting the Zammad services (zammad-web, zammad-worker, zammad-scheduler) does not resolve the issue.
The only solution is to reconfigure the email account in the admin interface – after that, sending works again.
we were able to identify the cause of the issue.
The problem was not within Zammad itself but with the external SMTP server configuration.
In our case, the SMTP relay (Proxmox Mail Gateway) had a maximum message size limit that was smaller than the email size including the .kml attachment. When Zammad attempted to send the message, the SMTP server rejected it due to the size restriction. This caused Zammad’s mail connection to fail, and because of that rejection, it could no longer authenticate properly afterward.
After increasing the maximum allowed message size on the SMTP server, the issue no longer occurs — .kml attachments can now be sent without any problems, and the connection remains stable.
So if you encounter similar behavior, check the size limits on your mail relay or SMTP gateway first.