1
Services not binding after reboot SM Pro 15.7 System.Net.Sockets.SocketException
Problem reported by Ian Ralph - Yesterday at 5:08 AM
Submitted
Running Smartermail Pro 15.7 and everything works fine normally, SMTP, IMAP, POP etc however if we reboot the machine, then none of the services start properly, looks like they are not binding correctly. Manually stopping and restarting each service in the web interface under Manage / Services fixes the issue. 

SMTP log shows this after the reboot.

01:55:08 smtp stopped at 16/03/2025 01:55:08
01:57:06 smtp started at 16/03/2025 01:57:06
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)

Same for POP and IMAP

POP

01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)

IMAP

01:55:08 imap stopped at 16/03/2025 01:55:08
01:57:06 imap started at 16/03/2025 01:57:06
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)
01:57:06 System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at MailService.TcpServerLib.Common.PooledTcpServer.#I5(IPEndPoint #L8i)

1 Reply

Reply to Thread
0
Ian Ralph Replied
Just to add, we have SMTP bound to two IP addresses 127.0.0.1 and one other IP xx.xx.xx.xx. The SMTP service DOES start and run on the local IP address but as mentioned above, not on the other IP addresses ( along with IMAP and POP )

Reply to Thread