attach detach domain
Problem reported by Sabatino - 12/5/2025 at 1:22 AM
Submitted
    
Something strange happened to me.
I opened a ticket, but I'll pass it on to you. I'm reorganizing the space.

I'm moving domains from one disk to another.

Some domains worked fine, but one was causing problems.

Domain.ext Features

Primary path: F:\SmarterMail\Domains\domain.ext

Secondary path:
J:\SmarterMail\Domains-SecondaryPath\domain.ext

Operations performed.

preparation

robocopy F:\SmarterMail\Domains\domain.ext g:\SmarterMail\Domains\domain.ext /mir

detach domain

robocopy F:\SmarterMail\Domains\domain.ext g:\SmarterMail\Domains\domain.ext /mir

attach domain g:\SmarterMail\Domains\domain.ext

delete
F:\SmarterMail\Domains\domain.ext


I found some users with errors,
and others

One in particular generated a mail processing error on
F:\SmarterMail\Domains\domain.ext\Users\paolo\MailProcessing

, but the domain was mounted on g:

Since I urgently needed to fix the problem, I detached domain.extt, copied everything back to f:, and attached it.

The users started working again, even those that were in error.

However, on giancarlo@domain.ext from webmail, some folders appeared empty.

I noticed that it recreated the folders in g:

So it was a big mess.

I restarted the SmarterMail service, and the folders in giancarlo@domain.ext are working again.

I don't know if it's related to the secondary path.

But attach and detach should be reliable.

I had already moved other domains with secondary paths without any problems.
Sabatino Traini
      Chief Information Officer
Genial s.r.l. 
Martinsicuro - Italy

Derek Curtis Replied
Employee Post
Hey, Sabatino

I see you have a ticket on this, and it appears things got worked out. As Logan mentioned, the secondary path shouldn't pose an issue (when both domains are pointed to the same path) unless both domains are enabled. As long as one is disabled, there shouldn't be a problem. 
Derek Curtis COO SmarterTools Inc. www.smartertools.com
Sabatino Replied
Let's say it's resolved, but doubts remain.

1) I still wonder what happened when the error occurred. I had essentially done the same thing.
I moved all the files while the domain was detached.

2) Even following this procedure, I noticed some anomalies. This time, I didn't delete the domain in its original location.
I detached it, copied everything to the new path, and attached it.
I tried renaming the domain in the old path and... "in use."

By whom? Why?
I had to restart the service to rename.
Sabatino Traini Chief Information Officer Genial s.r.l. Martinsicuro - Italy
Sabatino Replied
Unfortunately, the problem persists on my system
Every time I detach and attach a domain (I'm changing disk location)

I was able to verify through proc mon that 

detaching to
example of
f:\smartermail\domains\domain.tld,

and then attach
on 
g:\smartermail\domains\domain.tld

smartermail.exe continues to access the path f:\smartermail\domains\domain.tld

obviously if I delete f:\smartermail\domains\domain.tld

errors start.

The only way to stop it from accessing f:\smartermail\domains\domain.tld is to restart the Windows service.


the problem persists, but by restarting the windows service everything works


Sabatino Traini Chief Information Officer Genial s.r.l. Martinsicuro - Italy

Reply to Thread

Enter the verification text