How to configure Thunderbird for imap and smtp?

Hello,
i cannot configure thunderbird to access my email account set up on virtualmin.
This is the configuration.

www.mydomain.com is registered at OVH (french registrar), and the DNS it uses are OVH ones dns102.ovh.net and ns102.ovh.net

The zone file is configured as such at OVH

$TTL 86400
@ IN SOA dns102.ovh.net. tech.ovh.net. (2012102000 86400 3600 3600000 300)
IN NS dns102.ovh.net.
IN NS ns102.ovh.net.
IN MX 10 mail.mydomain.com.
IN A 88.191.134.219
;mail IN CNAME ns0.ovh.net.
_jabber._tcp IN CNAME _jabber._tcp.redirect.ovh.net.
_sip._udp IN CNAME _sip._udp.redirect.ovh.net.
_xmpp-client._tcp IN CNAME _xmpp-client._tcp.redirect.ovh.net.
_xmpp-server._tcp IN CNAME _xmpp-server._tcp.redirect.ovh.net.
audio IN CNAME audio.ovh.net.
ftp IN CNAME mydomain.com.
ftp2 IN CNAME anonymous.ftp.ovh.net.
imp IN CNAME imp.ovh.net.
jabber IN CNAME jab1.redirect.ovh.net.
mail.mydomain.com. IN A 88.191.134.219
ox IN CNAME ox.ovh.net.
mydomain.com. IN TXT “v=spf1 a ip4:88.191.134.219”
pop3 IN CNAME ns0.ovh.net.
preprod IN CNAME mydomain.com.
sip IN CNAME sip1.redirect.ovh.net.
smtp IN CNAME ns0.ovh.net.
squirrel IN CNAME squirrel.ovh.net.
vpn IN CNAME vpn.redirect.ovh.net.
www IN CNAME mydomain.com.

do i need to add a imap.mydomain.com entry and how to?

What problem exactly are you seeing in Thunderbird?

The zone file looks - even though it’s very badly readable without linebreaks and monospace font, and OVH puts a whole bunch of crap in there - okay in terms of MX record.