# DeltaChat on Android and Desktop, using a Virtualmin mail server with a wildcard certificate, is unable to automatically detect the SMTP server

**URL:** <https://forum.delta.chat/t/deltachat-on-android-and-desktop-using-a-virtualmin-mail-server-with-a-wildcard-certificate-is-unable-to-automatically-detect-the-smtp-server/4662>\
**Category:** Mini Apps\
**Tags:** server-config, desktop, android\
**Created:** [January 29, 2026, 7:56pm UTC](https://forum.delta.chat/t/deltachat-on-android-and-desktop-using-a-virtualmin-mail-server-with-a-wildcard-certificate-is-unable-to-automatically-detect-the-smtp-server/4662 "2026-01-29T19:56:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehdiM](https://forum.delta.chat/user_avatar/forum.delta.chat/mehdim/32/3121_2.png) [@mehdiM](https://forum.delta.chat/u/mehdiM)\
**Post date:** [January 29, 2026, 7:56pm UTC](https://forum.delta.chat/t/deltachat-on-android-and-desktop-using-a-virtualmin-mail-server-with-a-wildcard-certificate-is-unable-to-automatically-detect-the-smtp-server/4662/1 "2026-01-29T19:56:32Z")

</div>

I’m having an issue with DeltaChat automatically discovering my mail server’s SMTP settings.  
I’ve already added the required discovery A and SRV records, and my MX record is detected correctly.

When I try to log in, I get a `NotValidForName` error. However, if I manually enter my SMTP address in the **SMTP server** field, everything works.

My **Virtualmin** server is using a **wildcard certificate** , and ChatGPT previously suggested switching to a domain‑specific certificate for my [mail.mydomain.com](http://mail.mydomain.com) address.

Does anyone know how I can fix this?

 ![image_2026-01-29_19-39-55](https://support.delta.chat/uploads/default/original/2X/5/541f422545e1ebbd78742584d102587a97ca5ef8.png)
