stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
3.53k stars 135 forks source link

Arc sealer not found error, process hung. #499

Closed kemeris2000 closed 1 month ago

kemeris2000 commented 1 month ago

What happened?

I am getting this error on email receive:

Arc sealer not found

after than process hungs. I had domain "test1.lt" before, but it was deleted some time ago.

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

Version

v0.8.1

What database are you using?

FoundationDB

What blob storage are you using?

FoundationDB

Where is your directory located?

Internal

What operating system are you using?

Linux

Relevant log output

WARN common: Arc sealer not found. context="get_arc_sealer" event="error" name="rsa-test1.lt"

Code of Conduct

mdecimus commented 1 month ago

What do you mean that the process hangs?

Regarding the warning you're seeing, the ARC sealer uses the signature for your default domain, probably you removed rsa-test1.lt and did not update your new default domain. This can be done from the webadmin under https://your.server/settings/report/edit. Or if you prefer to use a different signature for ARC sealing you can change it from https://your.server/settings/arc/edit.

kemeris2000 commented 1 month ago

Regarding default domain your were right, there was old domain name in https://your.server/settings/report/edit.

But mail server still hung every time on incoming SMTP session. Alter that Web-based admin is not responsive, email does not get stored to database. This is the only related record: 2024-05-30T14:39:47.821221Z INFO session{instance="smtp" protocol=Smtp remote.ip="209.85.161.54" remote.port=56643}: common::listener::listen: context="tls" event="handshake" version=TLSv1_3 cipher=TLS13_AES_256_GCM_SHA384

When trying to restart systemd service, it does not stop clearly:

May 30 17:47:52 smtp1 systemd[1]: Stopping stalwart-mail.service - Stalwart Mail Server Server...
May 30 17:49:22 smtp1 systemd[1]: stalwart-mail.service: State 'stop-sigterm' timed out. Killing.
May 30 17:49:22 smtp1 systemd[1]: stalwart-mail.service: Killing process 695312 (stalwart-mail) with signal SIGKILL.
May 30 17:49:22 smtp1 systemd[1]: stalwart-mail.service: Main process exited, code=killed, status=9/KILL
May 30 17:49:22 smtp1 systemd[1]: stalwart-mail.service: Failed with result 'timeout'.

Email sending does work as expected.

mdecimus commented 1 month ago

Have you perhaps installed version of 0.8.1 before it was officially announced? During the build process a very similar bug was found that was corrected and then a new binary was compiled followed by the official announcement. Just to be sure update the binary to the latest version.

kemeris2000 commented 1 month ago

cksum is different, so it must be a case. Just updated and everything is working fine. I really appreciate for you help @mdecimus