Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 12:00:04

Author Topic: Unable to send mail with letsencrypt cert  (Read 6330 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Unable to send mail with letsencrypt cert
« on: 2019-01-30, 23:10:59 »
It shows something like this:

spamdyke[5784]: ERROR(tls_init_inner()@tls.c:236): unable to load SSL/TLS certificate from file: /var/qmail/control/servercert.pem : The operation failed due to an I/O error, Unexpected EOF found, error:0200100D:lib(2):func(1):reason(13), error:20074002:lib(32):func(116):reason(2), error:140DC002:lib(20):func(220):reason(2)

Receving mail works fine. Same cert works great for Kloxo and web server.

Offline azzureal

  • Master
  • **
  • Posts: 420
  • Karma: +1/-0
    • View Profile
Re: Unable to send mail with letsencrypt cert
« Reply #1 on: 2019-02-02, 08:50:55 »
How about to desable spmakey?

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to send mail with letsencrypt cert
« Reply #2 on: 2019-02-02, 18:54:23 »
Doesn't help :(

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to send mail with letsencrypt cert
« Reply #3 on: 2019-02-05, 21:34:30 »
The issue here is that /var/qmail/control/servercert.pem uses symlink as root while it should be root:qmail owner then it works well, but you need to copy the cert file to /var/qmail/control directory.

Offline amitkumar

  • Valuable Member
  • *
  • Posts: 121
  • Karma: +1/-1
  • Gender: Male
    • View Profile
    • webquicksolution
Re: Unable to send mail with letsencrypt cert
« Reply #4 on: 2019-02-07, 11:16:41 »
Great to hear that you solved the issue and provide us solution :)

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to send mail with letsencrypt cert
« Reply #5 on: 2019-02-19, 19:01:16 »
However the cert will expire one day. So you either need to add cron job to copy file every 3 months or do it manually.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to send mail with letsencrypt cert
« Reply #6 on: 2019-05-04, 12:27:58 »
Example cron:

0 0 1 * * cp -rf /home/kloxo/ssl/domain.com.pem /var/qmail/control/servercert.pem

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Unable to send mail with letsencrypt cert
« Reply #7 on: 2019-05-04, 23:30:52 »
Why not using symlink instead copy?
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to send mail with letsencrypt cert
« Reply #8 on: 2019-05-05, 16:22:33 »
Symlink doesn't work well for qmail. It ignores it. Must be physical file sitting out there.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.056 seconds with 21 queries.

web stats analysis