letsencrypt-plesk icon indicating copy to clipboard operation
letsencrypt-plesk copied to clipboard

On Dovecot I have it working but Postfix gives tan error

Open gleert opened this issue 10 years ago • 2 comments

Out: 220 domianwithssl ESMTP Postfix In: EHLO Geerts-MacBook-Pro.local Out: 250-domianwithssl Out: 250-PIPELINING Out: 250-SIZE 26214400 Out: 250-ETRN Out: 250-STARTTLS Out: 250-ENHANCEDSTATUSCODES Out: 250-8BITMIME Out: 250 DSN In: STARTTLS Out: 454 4.7.0 TLS not available due to local problem In: QUIT Out: 221 2.0.0 Bye

Any idea on how to solve this?

gleert avatar Apr 23 '16 18:04 gleert

I get the following error in the maillog: warning: cannot get RSA certificate from file /usr/local/psa/var/modules/letsencrypt/etc/live/domianwithssl/fullchain.pem: disabling TLS support warning: TLS library problem: 14974:error:0200100D:system library:fopen:Permission denied:bss_file.c:398:fopen('/usr/local/psa/var/modules/letsencrypt/etc/live/domianwithssl/fullchain.pem','r'): warning: TLS library problem: 14974:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: warning: TLS library problem: 14974:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:

gleert avatar Apr 23 '16 23:04 gleert

Well the problem is stated in the logs you provided.

Postfix does not have access to the path you specified, probably a permission problem.

You could try to see what group owns the file and add the postfix user to that group.

If you don't want to do that you could also copy the file to a location postfix can access and add the copy command to a cronjob.

You also need to keep in mind that postfix needs a restart each time the cert is renewed since it expires after 90 days, so you might want to add a cronjob to do this.

stayallive avatar Jun 06 '16 10:06 stayallive