Page 1 of 1

send email with ssl letsencrypt in admin panel

Posted: Thu Feb 09, 2017 7:09 pm
by flacosa
I have a problem. If I use a ssl letsencrypt certificate on my vesta admin panel (xxxxxx.com:8083) I can not send emails or receive from Gmail.

any ideas?

Re: send email with ssl letsencrypt in admin panel

Posted: Thu Feb 09, 2017 7:16 pm
by ScIT
Please check and provide your logs. Also inform about used os and vestacp version.

We can not know all ;-)...

Re: send email with ssl letsencrypt in admin panel

Posted: Thu Feb 09, 2017 8:58 pm
by flacosa
is vesta 9.8.17
He discovered this

log mainlog in exim4

cert=/usr/local/vesta/ssl/certificate.crt key=/usr/local/vesta/ssl/certificate.key): Error while reading file.

I use
ln -s /etc/letsencrypt/live/XXXXXXXXXX.com/privkey.pem /usr/local/vesta/ssl/certificate.key



I have put the .crt and .key files in the vesta ssl directory and it works




Is it possible to link .crt and .key files and does it work?

For : sudo /usr/local/vesta/bin/v-update-letsencrypt-sslin cron to work this mode

No??

thnsk

Re: send email with ssl letsencrypt in admin panel

Posted: Fri Feb 10, 2017 7:12 am
by ScIT
Yep, that's why I wrote this one here: viewtopic.php?f=19&t=13057

Just create this script (if you want you can run it more often then once a day) and it will copy the certs, set right permission and restart the services.

Re: send email with ssl letsencrypt in admin panel

Posted: Fri Feb 10, 2017 11:41 pm
by flacosa
perfect!!! Running !!! Thank you

Re: send email with ssl letsencrypt in admin panel

Posted: Sat Feb 11, 2017 11:42 pm
by flacosa
ScIT wrote:Yep, that's why I wrote this one here: viewtopic.php?f=19&t=13057

Just create this script (if you want you can run it more often then once a day) and it will copy the certs, set right permission and restart the services.


Hello, now cron when executing: sudo /etc/cron.daily/vesta_ssl gives this error:
sudo: no tty present and no askpass program specified

any idea??

Re: send email with ssl letsencrypt in admin panel

Posted: Sun Feb 12, 2017 8:54 am
by ScIT
flacosa wrote:
ScIT wrote:Yep, that's why I wrote this one here: viewtopic.php?f=19&t=13057

Just create this script (if you want you can run it more often then once a day) and it will copy the certs, set right permission and restart the services.


Hello, now cron when executing: sudo /etc/cron.daily/vesta_ssl gives this error:
sudo: no tty present and no askpass program specified

any idea??
Normaly, you don't have to execute the script. The system will do this on his own every day. Do you have setup a cronjob inside of vestacp?

Re: send email with ssl letsencrypt in admin panel

Posted: Sun Feb 12, 2017 10:11 am
by flacosa
aaaahh!!! oook

I understand

The system executes the scripts of this folder /etc/cron.daily every day

It is true?

OK OK OK

Thanks

Re: send email with ssl letsencrypt in admin panel

Posted: Sun Feb 12, 2017 10:17 am
by ScIT
flacosa wrote:The system executes the scripts of this folder /etc/cron.daily every day

It is true?
yep, you're right.