I am trying to configure the Outgoing Mail Server in Odoo using Oracle Cloud Infrastructure (OCI) Email Delivery, but I am unable to connect.
Every time I click "Test Connection," I receive the following error:
Invalid server name empty label
My Configuration:
SMTP Server: "smtp.email.my-location-1.oci.oraclecloud.com"
SMTP Port: 587
Connection Security: TLS (STARTTLS)
Username: "ocid1.user.oc1..aaaaaaaaeaqpyrm2s4qkl4356d4jgycvgmy3fik2mbtgrggbapwwpriutxra@ocid1.tenancy.oc1..aaaaaaaalk77es64hwwqj56ppas3eekyf762cukb52j7tx2mc2yajxh5u4oq.wk.com" (Standard OCI format)
Password: ABCD1234
{I changed the username string so these are not the original credentials, but I have in the same format}
Hello,

Please check your details with below screenshot.
If not solved by this, comment here.
"smtp.email.my-location-1.oci.oraclecloud.com" is this quote only display purpose, right?
I am entering smtp.email.my-location-1.oci.oraclecloud.com as the SMTP server and ocid1.user.oc1..aaaaaaaae.. as the username. and after typing port number
When I select TLS (STARTTLS), I get the error: “Invalid server name! Empty Label.”
When I select SSL/TLS, I get:
“Connection Test Failed! Here is what we got instead:
1
[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1137)”
When I select None, I receive the same error: “Invalid server name! Empty Label.”
TLS (STARTTLS), encryption and validation
TLS (STARTTLS), encryption only
Which option you selected?
And add the port 587 as per oracle documentation.
I am using Odoo V16 I only have three options for Connection Encryption:
None
TLS (STARTTLS)
SSL/TLS
I unable to reproduce this issue in my environment.. Sorry for not helping you..
Hello Hemanth , you can Try this:
1. Go to Settings → Technical → Outgoing Mail Servers
2. Delete the existing mail server entry completely or paste fresh (no trailing spaces)
3. Create a NEW one with: smtp.email.ap-hyderabad-1.oci.oraclecloud.com
4. Restart Odoo: sudo systemctl restart odoo
Database check - the value might be corrupted: Check what's actually stored in the database.
Thank you, Kunjal Patel.
I changed the hostname to the IP address as you suggested, but I’m still seeing the same error: “invalid server name empty label.” I’m not sure what exactly is going wrong here.