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}
Hey Hemanth,
Can you share a detailed screenshot showing the issue, including the exact error that appears and the time it occurred?
Please check this: https://jumpshare.com/s/y9L38ufMM2JPLHGrzzzf
And this is with the IP: https://jumpshare.com/s/zoxNKSf8aTThou2zW6yR
Enable option debugging, it will display detailed error
[REDACTED_TIMESTAMP] [REDACTED_PID] WARNING [REDACTED_DB] odoo.http: Invalid server name !
Empty Label
[REDACTED_TIMESTAMP] [REDACTED_PID] INFO [REDACTED_DB] werkzeug: [REDACTED_IP] - - [24/Nov/2025 06:43:18] "POST /web/dataset/call_button HTTP/1.1" 200 - 3 0.001 0.077
[REDACTED_TIMESTAMP] [REDACTED_PID] INFO [REDACTED_DB] werkzeug: [REDACTED_IP] - - [24/Nov/2025 06:43:31] "POST /web/dataset/call_kw/ir.mail_server/write HTTP/1.1" 200 - 4 0.002 0.004
[REDACTED_TIMESTAMP] [REDACTED_PID] INFO [REDACTED_DB] werkzeug: [REDACTED_IP] - - [24/Nov/2025 06:43:31] "POST /web/dataset/call_kw/ir.mail_server/read HTTP/1.1" 200 - 3 0.001 0.003
[REDACTED_TIMESTAMP] [REDACTED_PID] WARNING [REDACTED_DB] odoo.http: Invalid server name !
Empty Label
[REDACTED_TIMESTAMP] [REDACTED_PID] INFO [REDACTED_DB] werkzeug: [REDACTED_IP] - - [24/Nov/2025 06:43:31] "POST /web/dataset/call_button HTTP/1.1" 200 - 3 0.001 0.077
I enabled the debug option but it still shows the same in logs and display.
[REDACTED_TIMESTAMP] [REDACTED_PID] WARNING [REDACTED_DB] odoo.http: Invalid server name !
Empty Label
I enabled the debug option but it still shows the same in logs and display.
The username you provided is the SMTP username not IAM User name, right?
Yes, it is SMTP username generated automatically by Oracle.
The error means Odoo has empty or corrupted data in the SMTP server field, not that the server name is wrong.
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
# From your Odoo directory
grep -r "Invalid server name" --include="*.py"
This will show where the validation is happening
Database check - the value might be corrupted: Check what's actually stored in the database. The field might be empty.
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.
You can connect with any expert for this issue. Because we have followed all the possible steps.
Thank you, and how can I connect to an expert?
You can contact through this list: https://www.odoo.com/partners/country/india-10