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

User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

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.

Tags:
kostasaidonis
Posts: 7
Joined: Tue Aug 23, 2022 10:56 am

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!!
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

do you have valid certificate on hostname ?
did you added alias there?
restart dovecot and exim4 ?
kostasaidonis
Posts: 7
Joined: Tue Aug 23, 2022 10:56 am

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!!
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

i think you added aliases to wrong place.

I assumes you have:
  • serverhostname WEB
  • yourdomain.com WEB
you should add aliases to first point
kostasaidonis
Posts: 7
Joined: Tue Aug 23, 2022 10:56 am

ohhhhh now i understand .... can i have many aliases for many domains???? i have 3 mail domains???
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

yes, you can.
just remove those aliases from domain if you created them there.
kostasaidonis
Posts: 7
Joined: Tue Aug 23, 2022 10:56 am

i remove them the same way i created them.. like the steps in the begining of this post???
kostasaidonis
Posts: 7
Joined: Tue Aug 23, 2022 10:56 am

Once again thank you for you immediate support your work is fantastic!!!!!!!
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

kostasaidonis wrote: Tue Aug 23, 2022 5:02 pm like the steps in the begining of this post???
all correct :D
Post Reply