Page 1 of 2

SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Sun Jul 26, 2020 1:35 pm
by myVesta
For now, myVesta support exim/dovecot SSL only for server hostname.
Next big update will be support for subdomains and for other domains (HestiaCP already has support for it).

What you can do now is to (as admin)
  • go to WEB -> Edit (edit yourhostname)
  • add mail.somedomain.com as Alias
  • Save it
  • On the same page turn off LetsEncrypt, and Save it
  • On the same page turn on LetsEncrypt, and Save it
It will regenerate SSL for your hostname, and that SSL will also be valid for mail.somedomain.com, so you can use it as IMAP and SMTP hostname.

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 4:21 pm
by kostasaidonis
I did all the steps letsencrypt worked shows alieses mail.somedomain.com but when i try to conect imap it sais invalid certificate... it still uses the myvesta for panel certificate... doesnt pass it through to mail!!

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 4:24 pm
by myVesta
do you have valid certificate on hostname ?
did you added alias there?
restart dovecot and exim4 ?

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 4:43 pm
by kostasaidonis
Yes i have valid certificate with aliases "www." and "mail." lets encrypt accepted and mai.xxxx.com as you said but when i go to setup my mail in thunderbird the certificate is the initial created upon installation and not the domain i want!!

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 4:48 pm
by myVesta
i think you added aliases to wrong place.

I assumes you have:
  • serverhostname WEB
  • yourdomain.com WEB
you should add aliases to first point

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 4:51 pm
by kostasaidonis
ohhhhh now i understand .... can i have many aliases for many domains???? i have 3 mail domains???

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 4:54 pm
by myVesta
yes, you can.
just remove those aliases from domain if you created them there.

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 5:02 pm
by kostasaidonis
i remove them the same way i created them.. like the steps in the begining of this post???

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 5:24 pm
by kostasaidonis
Once again thank you for you immediate support your work is fantastic!!!!!!!

Re: SSL support for SMTP and IMAP for mail.somedomain.com

Posted: Tue Aug 23, 2022 6:36 pm
by myVesta
kostasaidonis wrote: Tue Aug 23, 2022 5:02 pm like the steps in the begining of this post???
all correct :D