Email autoconfig

where in virtualmin is defined variable $IMAP_HOST ??

in my virtualmin this variable is imap.{domain_name}.
but, wheen creating virtual server “imap” record IS NOT CREATED, therefore there can’t be a ssl certificate and the host therefore is checked insecure.

so how to change this imap.{domain_name} to mail.{domain_name}??

Thats what you can do manually example

Test your current auto generated, mine show mail.

add this to you domain in the browser

https://www.example.com/mail/config-v1.1.xml?emailaddress=user@example.com

If you want a imap record you can add to template and add the ssl you want.

autoconfig check does not work (see image), but it works for email client in some misterious way but shows imap instead of mail.
but creating now imap record for all existing domains is long, is any way to change that variable?
also i need to transfer a lot of domains from other server and that record does not exists
somewhere should be defined

Its should show, not sure why your system would use imap. compared to mine, maybe staff might know. Maybe the client software is doing a guess. What client software do you use?
You also haven’t published your system info as request for a new post so that doesn’t help workout why its different.

Aslo if you leave out the email parameter does it still fail with Not Found. I get.