# Mail Logging Stopped

**URL:** <https://forums.interworx.com/t/mail-logging-stopped/22204>\
**Category:** General Discussion\
**Created:** [August 10, 2021, 8:10am UTC](https://forums.interworx.com/t/mail-logging-stopped/22204 "2021-08-10T08:10:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico](https://forums.interworx.com/letter_avatar_proxy/v4/letter/n/b5a626/32.png) [@Nico](https://forums.interworx.com/u/Nico)\
**Post date:** [August 10, 2021, 8:10am UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/1 "2021-08-10T08:10:57Z")

</div>

Just wondering why [Siteworx version 6.10.1] I have this error in the System Health:

> Mail Logging Stopped   
> NOT OK  
> The logging service was not running for the following service(s): Alt. Inbound SMTP Server  
> InterWorx will attempt to restart the loggers.
> 
> ![Mail-logging-stopped](https://forums.interworx.com/uploads/default/original/2X/3/38fbaf7029e0480c019e7fc1d7b46980b7e66846.png)

---

<div class="post-metadata">

**Author:** ![IWorx-Jenna](https://forums.interworx.com/user_avatar/forums.interworx.com/iworx-jenna/32/41_2.png) [@IWorx-Jenna](https://forums.interworx.com/u/IWorx-Jenna)\
**Post date:** [August 10, 2021, 12:49pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/2 "2021-08-10T12:49:54Z")

</div>

Hello–

I would recommend the following troubleshooting steps:

- At the top of the System Health page the screenshot is from, there should be a button that says “Refresh” next to “Cache last updated x hours ago”. Click that–since the message says that logging is going to try to restart, it may already have, but that page is cached so it is not showing.

- If that doesn’t work, check for full partitions with df -h. Logging may have stopped because there was no more room.

- Restart mail services

If none of the above works out, submit a ticket to [support.interworx.com](http://support.interworx.com) and I’ll take a look. You’ll need to also provide the IP, port if anything other than 22, and remote assistance will need to be enabled.

Thanks,  
-Jenna  
Friendly Neighborhood InterWorx Support Manager

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [August 10, 2021, 2:16pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/3 "2021-08-10T14:16:11Z")

</div>

Hi

@nico and @IWorx-Jenna

good spot, I had to wait until I had time to have a look at one of our servers

I think it is same shown on ours, but our error is alt inbound smtp - see picture

I think this maybe the removal of the alternate smtp from earlier IW versions

Many thanks

John

 ![alt smtp logging](https://forums.interworx.com/uploads/default/original/2X/1/1d2e625e10fab58209b23cad3deec2622faab61a.png)

---

<div class="post-metadata">

**Author:** ![Nico](https://forums.interworx.com/letter_avatar_proxy/v4/letter/n/b5a626/32.png) [@Nico](https://forums.interworx.com/u/Nico)\
**Post date:** [August 10, 2021, 2:17pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/4 "2021-08-10T14:17:30Z")

</div>

Hi Jenna,  
Done all, enough free space, i had even one of the servers rebooted, message still there.  
I have created a support ticket to login for you.  
Nico

---

<div class="post-metadata">

**Author:** ![IWorx-Jenna](https://forums.interworx.com/user_avatar/forums.interworx.com/iworx-jenna/32/41_2.png) [@IWorx-Jenna](https://forums.interworx.com/u/IWorx-Jenna)\
**Post date:** [August 10, 2021, 3:44pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/5 "2021-08-10T15:44:52Z")

</div>

Hey John–

Thanks for letting me know that error is on your server, as well. That was really helpful, as my ability to reproduce on my test servers was hit or miss.

I updated Nico’s ticket with my findings, but figured it would be prudent to do so, here, as well. 🙂

I’ve not had any other reports of this issue, but it seems to potentially be related to a few things:

- The server having been converted to Dovecot or the Dovecot MSA (vs being newly installed after those were standard)
- /service/smtp2 having been removed (vs that folder never being on the server to begin with, as would be the case with a new install).
- An issue in the past where Dovecot went down, and then would not restart because SMTP2 started itself and was holding the port (which is something permanently solved by removing that folder)

So InterWorx, for some reason, on some servers is looking for logging for SMTP2, and of course that does not exist for servers running the Dovecot MSA to handle 587.

Good news is that this error does not look to be related to any expected logging. Dovecot log, Send log, SMTP, Maillog, etc, all logging correctly and up to date.

I did find a cache file on Nico’s server:

/usr/local/interworx/var/cache/IWorx\_Cache/ports.smtp2.cache

I removed that file, and the error resolved itself on the system health page. I ran various crons that look for problem detecting and logging, and it did not come back, either.

That cache file can be safely removed. It will regenerate if anything attempts to check the cached value of the SMTP2 port, but the only thing I could think of that might do so, since that service no longer exists, is the various crons, so it seems a safe bet it will stay gone.

I’m submitting a bug report to make it so that the problem detector doesn’t look for SMTP2 logging on servers using the Dovecot MSA, and to maybe remove that cache file, as well, if the Dovecot MSA is enabled. I don’t have an ETA. However, the error does not seem to mean anything that is supposed to be working is broken, and it can be easily reset by removing the above cache file. 🙂

-Jenna

---

<div class="post-metadata">

**Author:** ![IWorx-Jenna](https://forums.interworx.com/user_avatar/forums.interworx.com/iworx-jenna/32/41_2.png) [@IWorx-Jenna](https://forums.interworx.com/u/IWorx-Jenna)\
**Post date:** [August 10, 2021, 4:14pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/6 "2021-08-10T16:14:10Z")

</div>

Quick correction–the cache file did return after running the crons, but the error did not. So it seems removing the file does resolve the error on the system health page, but it did not specifically _cause_ the error on the system health page.

---

<div class="post-metadata">

**Author:** ![bear](https://forums.interworx.com/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bear](https://forums.interworx.com/u/bear)\
**Post date:** [August 11, 2021, 2:18pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/7 "2021-08-11T14:18:56Z")

</div>

i also have this in my system health, this appeared after converting to Dovecot. Both your statements where correct with the issues.  
I submitted a ticket when dovecot would not restart and support sorted the issue for me.

- The server having been converted to Dovecot or the Dovecot MSA (vs being newly installed after those were standard)

- An issue in the past where Dovecot went down, and then would not restart because SMTP2 started itself and was holding the port (which is something permanently solved by removing that folder)

 ![log](https://forums.interworx.com/uploads/default/original/2X/c/c7dc719374bb898f01c15f1997e6f84920278270.jpeg)

---

<div class="post-metadata">

**Author:** ![bear](https://forums.interworx.com/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bear](https://forums.interworx.com/u/bear)\
**Post date:** [August 11, 2021, 2:31pm UTC](https://forums.interworx.com/t/mail-logging-stopped/22204/8 "2021-08-11T14:31:51Z")

</div>

Just to let you know, i just removed that cache file and refreshed system health and error has gone. 😀
