Unable making new email domain

when i try to add new email domain i got this error

Error connecting via SMTP: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1007)

and the error showing in the console is

Traceback (most recent call last):
File “apps/frappe/frappe/email/doctype/email_domain/email_domain.py”, line 42, in wrapper
fn(*args, **kwargs)
File “apps/frappe/frappe/email/doctype/email_domain/email_domain.py”, line 101, in validate_outgoing_server_conn
conn_method((self.smtp_server or “”), cint(self.smtp_port), timeout=30).quit()
File “/usr/lib/python3.10/smtplib.py”, line 1050, in init
SMTP.init(self, host, port, local_hostname, timeout,
File “/usr/lib/python3.10/smtplib.py”, line 255, in init
(code, msg) = self.connect(host, port)
File “/usr/lib/python3.10/smtplib.py”, line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib/python3.10/smtplib.py”, line 1057, in _get_socket
new_socket = self.context.wrap_socket(new_socket,
File “/usr/lib/python3.10/ssl.py”, line 513, in wrap_socket
return self.sslsocket_class._create(
File “/usr/lib/python3.10/ssl.py”, line 1100, in _create
File “/usr/lib/python3.10/ssl.py”, line 1371, in do_handshake
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1007)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 95, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 48, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 86, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1611, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/desk/form/save.py”, line 31, in savedocs
File “apps/frappe/frappe/model/document.py”, line 307, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 342, in _save
File “apps/frappe/frappe/model/document.py”, line 1058, in run_before_save_methods
File “apps/frappe/frappe/model/document.py”, line 928, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1280, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1262, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 925, in fn
return method_object(*args, **kwargs)
File “apps/frappe/frappe/email/doctype/email_domain/email_domain.py”, line 62, in validate
File “apps/frappe/frappe/email/doctype/email_domain/email_domain.py”, line 44, in wrapper
File “apps/frappe/frappe/init.py”, line 541, in throw
File “apps/frappe/frappe/init.py”, line 509, in msgprint
File “apps/frappe/frappe/init.py”, line 455, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Error connecting via SMTP: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1007)
cleanup request.js:457
cleanup request.js:455
call request.js:314
jQuery 6
call request.js:268
call request.js:105
_call save.js:245
save save.js:23
save save.js:272
validate_and_save form.js:808
(Async: promise callback)
run_serially dom.js:262
run_serially dom.js:260
validate_and_save form.js:799
save form.js:738
save form.js:735
Save toolbar.js:670
set_action page.js:268
jQuery 2