SMTP/PO3/IMAP servers stop running for no apparent reason Tryphon
    SMTP/PO3/IMAP servers stop running for no apparent reason Anonymous
        SMTP/PO3/IMAP servers stop running for no apparent reason Tryphon
            SMTP/PO3/IMAP servers stop running for no apparent reason Synametrics Support
                SMTP/PO3/IMAP servers stop running for no apparent reason Tryphon
                    SMTP/PO3/IMAP servers stop running for no apparent reason Synametrics Support
                        SMTP/PO3/IMAP servers stop running for no apparent reason Tryphon
                            SMTP/PO3/IMAP servers stop running for no apparent reason Synametrics Support

From: Tryphon
Date: 6/16/24 8:28 AM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

Hello,

I am using Xeams 8.9 build 6291 on QNAP NAS TS-559 since ... a long time. Working great for what I need. Of course, the required ports ar open on my firewall including 25 also permitted by my provider.

Without any recent upgrade, as stated in the title, the servers stop running. Here is the log after restarting the NAS and Xeams:

2024-06-02 11:49:44,489 INFO  xeams.ServerStarter - ---------------------------------------------------
2024-06-02 11:49:44,660 INFO  xeams.ServerStarter - Starting server. Current directory = /Path/to/Xeams. Time = 6/2/24 11:49 AM. Build number: 6291 on Linux. Hostname: MYSERVER
2024-06-02 11:49:48,324 INFO  xeams.F - SSLProtocols: NO_SETTING
2024-06-02 11:49:54,180 INFO  filter.SynaFilter - Initializing SynaFilter
2024-06-02 11:49:54,680 INFO  xeams.E - Web server started on port(s): 5272
2024-06-02 11:49:56,644 INFO  db.ja - Database server successfully started.
2024-06-02 11:49:59,108 INFO  xeams.rulesengine - Good folder is: /Path/to/Xeams/GoodEmails
2024-06-02 11:49:59,108 INFO  xeams.rulesengine - Spam folder is: /Path/to/Xeams/SpamEmails
2024-06-02 11:49:59,108 INFO  xeams.rulesengine - Possible spam folder is: /Path/to/Xeams/PossibleSpams
2024-06-02 11:50:43,275 INFO  custom.AntiPhishingUpdate - Fetching AntiPhishing files
2024-06-02 11:50:44,329 ERROR util.TGlob - Unable to fetch URL. Error: Unable to fetch url ://openphish.com/feed.txt - ERROR: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-02 11:50:44,904 INFO  xeams.ServerStarter - Profile 1 initialized.
2024-06-02 11:50:45,194 INFO  util.J - SMTP Queue thread successfully started
2024-06-02 11:50:46,626 INFO  xeams.ServerStarter - Last LCID set to 1
2024-06-02 11:50:46,685 INFO  users.c - Registering User Repository Ensurer
2024-06-02 11:50:47,158 INFO  connector.j - Smtp proxy server is NOT enabled.
2024-06-02 11:50:47,276 ERROR z.d - Failure starting staging server. Make sure no other program is listening on port 25. java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-02 11:50:47,331 ERROR server.N - Failure starting IMAP server. Make sure no other program is listening on port 143 - java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-02 11:50:47,397 ERROR server.h - Failure starting Pop3 server. Make sure no other program is listening on port.  java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-02 11:50:52,809 INFO  xeams.K - IP lookup database initialized in 6117 ms
2024-06-02 11:50:55,414 INFO  xeams.ServerStarter - Initialization completed successfully.
2024-06-02 11:54:26,081 ERROR util.TGlob - Unable to fetch URL. Error: Unable to fetch url : / /openphish.com/feed.txt - ERROR: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-02 12:00:42,522 ERROR util.TGlob - Unable to fetch URL. Error: Unable to fetch url : / /openphish.com/feed.txt - ERROR: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

The first error is "util.TGlob - Unable to fetch URL. Error: Unable to fetch url  : / /openphish.com/feed.txt". However, from the NAS terminal

curl http s ://openphish.com/feed.txt

displays a list of http adresses, no error.

I have no idea what could prevent Xeams to get its servers running as usual.

I thank you for your help.

Top

From: Anonymous
Date: 6/17/24 11:33 AM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

Tryphon,

The inability to fetch the URL for openphish.com is not important. A more significant error I see in your logs is related to ports 25 and 143. The line is:

Failure starting staging server. Make sure no other program is listening on port 25

This means some other process is listening on these ports, so Xeams fails. Note that only one process is allowed to listen on a port. Try the following:

  • Restart your machine to see if that fixes it
  • If not, run open an SSH session to your QNAP box and run the following command:

    netstat -plnt | grep 25
  • This will list the process ID that is listening on port 25. Using this process ID, you should be able to identify the process listening on this port.
Top

From: Tryphon
Date: 6/20/24 7:51 AM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

Thank you, I made some tests as suggested :

netstat -p is not implemented in QTS 4.2,

netstat -lnt | grep 25

returns nothing and

netstat -lnt

gives a list of used ports but no port 25.

25 is fowarded in my firewall.

Port checker website on my IP reports that 25 is closed.

Secondary SMTP port is set in the SMTP configuration but netstat doas not report that this secondary port is used.

nmap -sS -O -p25 192.168.x.0/24 | grep 25

reports closed smtp on all active machines on the network.

Is there other reasons of the failure in the log ?

Thanks.

Top

From: Synametrics Support
Date: 6/20/24 1:44 PM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

Are you able to access the web interface? If yes, try switching the primary SMTP port from 25 to a non-standard number, like 2222. Does that work?

Also, what are the other ports for SMTP besides the primary (25)?

 

Top

From: Tryphon
Date: 6/20/24 7:17 PM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

Yes I can access the GUI as usual. The other smtp port is 1025.

I changed 25 for 2222 (not used elsewhere) in the smtp configuration. The smtp server restarted ans Xeams.log said :

2024-06-20 11:44:09,057 INFO  xeams.ServerStarter - Clean routines ran successfully...
2024-06-20 11:44:12,944 INFO  db.ja - Database 'xeamsDB' shutdown.
2024-06-20 11:44:12,947 INFO  helper.y - Shutdown processing complete: true
2024-06-20 11:44:14,542 INFO  xeams.L - Server terminating...
2024-06-20 11:46:46,091 INFO  xeams.ServerStarter - ---------------------------------------------------
2024-06-20 11:46:46,546 INFO  xeams.ServerStarter - Starting server. Current directory = /share/HDA_DATA/.qpkg/Xeams. Time = 6/20/24 11:46 AM. Build number: 6291 on Linux. Hostname: CAIUS
2024-06-20 11:46:53,450 INFO  xeams.F - SSLProtocols: NO_SETTING
2024-06-20 11:47:02,033 INFO  filter.SynaFilter - Initializing SynaFilter
2024-06-20 11:47:02,350 INFO  xeams.E - Web server started on port(s): 5272, 61284
2024-06-20 11:47:04,418 INFO  db.ja - Database server successfully started.
2024-06-20 11:47:08,293 INFO  xeams.rulesengine - Good folder is: /share/HDA_DATA/.qpkg/Xeams/GoodEmails
2024-06-20 11:47:08,293 INFO  xeams.rulesengine - Spam folder is: /share/HDA_DATA/.qpkg/Xeams/SpamEmails
2024-06-20 11:47:08,294 INFO  xeams.rulesengine - Possible spam folder is: /share/HDA_DATA/.qpkg/Xeams/PossibleSpams
2024-06-20 11:48:03,106 INFO  custom.AntiPhishingUpdate - Fetching AntiPhishing files
2024-06-20 11:48:04,058 ERROR util.TGlob - Unable to fetch URL. Error: Unable to fetch url https : //openphish.com/feed.txt - ERROR: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 11:48:04,520 INFO  xeams.ServerStarter - Profile 1 initialized.
2024-06-20 11:48:04,781 INFO  util.J - SMTP Queue thread successfully started
2024-06-20 11:48:06,334 INFO  xeams.ServerStarter - Last LCID set to 1
2024-06-20 11:48:06,473 INFO  users.c - Registering User Repository Ensurer
2024-06-20 11:48:06,481 INFO  xeams.K - Downloading new IP to country database...
2024-06-20 11:48:07,159 INFO  connector.j - Smtp proxy server is NOT enabled.
2024-06-20 11:48:07,256 ERROR z.d - Failure starting staging server. Make sure no other program is listening on port 25. java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 11:48:07,291 ERROR server.N - Failure starting IMAP server. Make sure no other program is listening on port 143 - java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 11:48:07,324 ERROR server.h - Failure starting Pop3 server. Make sure no other program is listening on port.  java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 11:48:14,233 INFO  xeams.K - IP lookup database initialized in 7751 ms

25 remains in the log and 2222 is not there. Back to smtp configuration: 2222 is saved. I restarted Xeams then :

2024-06-20 22:58:36,261 INFO  xeams.L - Server terminating...
2024-06-20 23:00:24,285 INFO  xeams.ServerStarter - ---------------------------------------------------
2024-06-20 23:00:24,457 INFO  xeams.ServerStarter - Starting server. Current directory = /share/HDA_DATA/.qpkg/Xeams. Time = 6/20/24 11:00 PM. Build number: 6291 on Linux. Hostname: CAIUS
2024-06-20 23:00:28,591 INFO  xeams.F - SSLProtocols: NO_SETTING
2024-06-20 23:00:34,964 INFO  filter.SynaFilter - Initializing SynaFilter
2024-06-20 23:00:35,280 INFO  xeams.E - Web server started on port(s): 5272, 61284
2024-06-20 23:00:37,070 INFO  db.ja - Database server successfully started.
2024-06-20 23:00:39,431 INFO  xeams.rulesengine - Good folder is: /share/HDA_DATA/.qpkg/Xeams/GoodEmails
2024-06-20 23:00:39,431 INFO  xeams.rulesengine - Spam folder is: /share/HDA_DATA/.qpkg/Xeams/SpamEmails
2024-06-20 23:00:39,432 INFO  xeams.rulesengine - Possible spam folder is: /share/HDA_DATA/.qpkg/Xeams/PossibleSpams
2024-06-20 23:01:24,202 INFO  custom.AntiPhishingUpdate - Fetching AntiPhishing files
2024-06-20 23:01:25,101 ERROR util.TGlob - Unable to fetch URL. Error: Unable to fetch url https : //openphish.com/feed.txt - ERROR: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 23:01:25,495 INFO  xeams.ServerStarter - Profile 1 initialized.
2024-06-20 23:01:25,613 INFO  util.J - SMTP Queue thread successfully started
2024-06-20 23:01:27,669 INFO  xeams.ServerStarter - Last LCID set to 1
2024-06-20 23:01:27,728 INFO  users.c - Registering User Repository Ensurer
2024-06-20 23:01:28,179 INFO  connector.j - Smtp proxy server is NOT enabled.
2024-06-20 23:01:28,346 ERROR z.d - Failure starting staging server. Make sure no other program is listening on port 2222. java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 23:01:28,387 ERROR server.N - Failure starting IMAP server. Make sure no other program is listening on port 143 - java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 23:01:28,464 ERROR server.h - Failure starting Pop3 server. Make sure no other program is listening on port.  java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
2024-06-20 23:01:33,593 INFO  xeams.K - IP lookup database initialized in 5858 ms
2024-06-20 23:01:36,822 INFO  xeams.ServerStarter - Initialization completed successfully.

The failure is still there. Failure description not related to the real issue ?

 

 

Top

From: Synametrics Support
Date: 6/21/24 7:20 AM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

I think there is something wrong with SSL. Could you please try the following:

  • Go to Server Configuration/SMTP Configuration
  • Ensure the value for Secure SMTP Port (SSL) is 0
  • Put 25 for the Primary SMTP Port
  • Save
  • Restart Xeams

 

Top

From: Tryphon
Date: 6/24/24 12:21 AM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

With these values I got SMTP server running. Indeed, SSL has something wrong.

I use synametrics certificate for personal use only (no external user). Keystore type is set to JKS. That was working since many years.

I do no see much I can do to set SSL.

Thanks

Top

From: Synametrics Support
Date: 6/24/24 9:20 AM
Topic: SMTP/PO3/IMAP servers stop running for no apparent reason
Type: Installation
Post a follow up

Could you please try contacting our support department via email? We may need remote access to your NAS box to see what is causing this problem.

 

Top