I use Declude with SmarterMail.
Since I switched to a new computer and installed the latest version of SmarterMail, almost every day I find an email (one or two), with only the eml extension, in the spool/proc folder. Reviewing the delivery log, I find this with each email:
[2023.09.13] 06:20:21.356 [27799667] Error adding message to spool stat tracker: Could not find file 'D:\SmarterMail\Spool\x27799667.eml'.
[2023.09.13] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at SmarterMail.Standard.Network. MIME.MimeHelper.OldMime.MimeReader.LoadHeader() at MailService.RelayServer.DeliveryManager.AddToSpoolStatTracker(SpoolMessage spoolMessage)06:20:21.356 [27799667] Exception: System.IO.FileNotFoundException: Could not find file 'D:\SmarterMail\Spool \x27799667.eml'.
[2023.09.13] File name: 'D:\SmarterMail\Spool\x27799667.eml' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.get_Length() at MailService.RelayServer. SpoolMessage.get_Message() at MailService.RelayServer.DeliveryManager.ViolatesSizeLimit(SpoolMessage spoolMessage) at MailService.RelayServer.DeliveryManager.ProcessMessage(SpoolMessage spoolMessage, Dictionary`2& timings) at MailService.RelayServer.DeliveryManager.DeliverMessages()
Smartermail has found an hdr without eml.
Checking file access with Process Monitor, I see that Declude stores the hdr first and then the eml in the “spool” folder. I thought this might be the problem, but really what happened is that I have the eml file in the spool/proc folder and the hdr has disappeared, so I must think that declude failed when moving the file from spool/proc to spool. There is no declude exception (File C:\DECLUDE.GP1) nor is there anything in the declude logs that indicates a problem with that email.
Declude does not have its antivirus activated, and Windows Defender is configured with the exclusions from the document that I indicate below, changing the folder to D:\SmarterMail\Domains and adding the eml extension. I haven't seen Windows Defender access hdr or eml files with Process Monitor.
Should I remove the eml extension from Windows Defender exclusions?
SmarterMail must have deleted the hdr as the eml does not exist. I'm currently manually creating the hdr file for the email to process, but it's a pain.
Is it safe to send the eml file by moving it to the Spool\Drop folder?
Should I forget about using Declude with the latest versions of SmarterMail?
Thank you.
Miguel Enrique.
Mon Mariola, S.L.