Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Using certificateScheme = 3 fails #111

Open
gbuisson opened this issue Apr 3, 2018 · 6 comments
Open

Using certificateScheme = 3 fails #111

gbuisson opened this issue Apr 3, 2018 · 6 comments

Comments

@gbuisson
Copy link

gbuisson commented Apr 3, 2018

SNM Version: 2.1.3

Nixos Version: unstable

Relevant part of the config to reproduce:

certificateScheme = 3;

What I expected to happen:

The imap server should work, no error renewing the certificate

What happened:

the certificate renew service fails with:

Not enough PEM encoded messages were found in fullchain.pem; at least 2 were expected, found 1.

Relevant journald log:

2018-04-03 20:09:44,198:DEBUG:simp_le:1546: ('-v', '-d', ';.., '--default_root', '/var/lib/acme/acme-challenge', '--valid_min', '2592000', '-f', 'fullchain.pem', '-f', 'full.pem', '-f', 'key.pem', '-f', 'account_key.json') parsed as Namespace(account_key_public_exponent=65537, account_key_size=4096, cert_key_size=4096, default_root='/var/lib/acme/acme-challenge', email=None, help=False, integration_test=False, ioplugins=['fullchain.pem', 'full.pem', 'key.pem', 'account_key.json'], reuse_key=False, revoke=False, server='https://acme-v01.api.letsencrypt.org/directory', test=False, user_agent='simp_le/0.8.0', valid_min=2592000, verbose=True, version=False, vhosts=[Vhost(name='...', root=None)])...
@dotlambda
Copy link
Contributor

That's a known issue with nixos-unstable: NixOS/nixpkgs#38372

@gbuisson
Copy link
Author

gbuisson commented Apr 3, 2018

OK, downgrading to 18.03 I get another issue that I also got using certiicateScheme = 2:

imap-login: Error: Failed to initialize SSL server context: Couldn't parse DH parameters: error:0906D06C:PEM routines:PEM_read_bio:no start line: Expecting: DH PARAMETERS: user=<>, rip=<...>, lip=<...>, session=<iIJsQfhoXNElrX8U>

any idea?

@gbuisson
Copy link
Author

gbuisson commented Apr 3, 2018

w00t, got imap auth working after the system received the first mail

@gbuisson
Copy link
Author

gbuisson commented Apr 3, 2018

So after toying with it and following the instructions step by step, retrying the whole evening I can:

  • login and fetch mail

I can't:

  • receive email from other boxes
  • send email, getting :
Apr 03 23:25:59 mail.y42.sh postfix/smtpd[13143]: NOQUEUE: milter-reject: CONNECT from unknown[...]: 451 4.7.1 Service unavailable - try again later; proto=SMTP```

@r-raymond
Copy link
Owner

Hi @gbuisson, thanks for trying out SNM. Right now the stable version uses Nixos 17.09. Nixos 18.03 has a new rspamd version (thanks to the contributors of this project) which does not need rmilter anymore. We will need to update the system for that. There has been work (see #61) but it is not finished yet. Any help is welcome!

@gbuisson
Copy link
Author

gbuisson commented Apr 4, 2018

okay, thanks for your explanations, I finally got it all working, my dkim dns record was wrong and somehow I needed to update again my system to use all packages from 18.03 , It seems to be working with this release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants