/etc/apache2/sites-enabled/000-default.conf: # The ServerName directive sets the request sch eme, hostname and port that
/etc/apache2/sites-enabled/000-default.conf: # redirection URLs. In the context of virtual h osts, the ServerName
/etc/apache2/sites-enabled/000-default.conf: #ServerNamewww.example.com
With certbot, generally the way to get a certificate that’s valid for multiple domain names (no matter which plugin you use - webroot, apache, manual, etc) is to specify all the domains using the -d option. For example:
If that works you’ll get a single certificate that’s valid for all 3 subdomains. You probably want to cover any valid subdomain that might be used in the Outlook configuration etc, so you could also add webmail.estudioines.com if you feel that’s appropriate.
If --apache won’t work for you, you could also try --webroot (as @rg305 has been suggesting) or --manual. I personally find --apache to be the easiest in most cases, but YMMV. --manual is by far the hardest to automate so consider it a last resort. If you want to use --webroot, your web root is probably /var/www/html.
Then you need to edit the postfix and dovecot configuration files and make sure they are pointing to that certificate, and reload them.
ok, we go in parts, I have a debian server, which has a public ip address which is with the domain webmail.estudioines.com (I just discovered it)
then following his subject:
We were unable to find a vhost with a ServerName or Address of smtp.estudioines.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
We were unable to find a vhost with a ServerName or Address of smtp.estudioines.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
Select the appropriate number [1-6] then [enter] (press ‘c’ to cancel): 1
We were unable to find a vhost with a ServerName or Address of imap.estudioines.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
Select the appropriate number [1-6] then [enter] (press ‘c’ to cancel): 1
We were unable to find a vhost with a ServerName or Address of mail.estudioines.com.
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)
Select the appropriate number [1-6] then [enter] (press ‘c’ to cancel): 1
Waiting for verification…
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0028_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0028_csr-certbot.pem
IMPORTANT NOTES:
Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/mail.estudioines.com/fullchain.pem. Your cert
will expire on 2018-03-03. To obtain a new or tweaked version of
this certificate in the future, simply run certbot again. To
non-interactively renew all of your certificates, run “certbot
renew”
If you like Certbot, please consider supporting our work by:
Right, so far so good. Now you have a certificate for all those domain names, you need to make sure postfix and dovecot are using it.
Try this:
grep -r letsencrypt /etc/{postfix,dovecot}
Hopefully that should give you an idea of which files need to be updated. You want them all to point to the files in /etc/letsencrypt/live/mail.estudioines.com as that’s where the newly expanded certificate is.
Yes, I was do it, but the problem continue…
I not understand, in the outlook configuration, smtp server is: stmp.estudio… and the imap/pop3 server is: mail.estudio…
but the error says imap.estudio…
Sorry for the delay, I was very busy.
After you asked me to do the grep command, I saw that I had made a mistake, had a backup of the 10-ssl.conf file, called 10-ssl2.con, deleted that file and reconfigured 10-ssl.conf, restart the server and everything started to work. Thanks for the time and help of everyone who participated.