Describe the bug
The nixos build of imapfilter is broken according to the author:
https://github.com/lefcha/imapfilter/issues/201#issuecomment-574868032
# a list of nixpkgs attributes affected by the problem
attribute:
- imapfilter
Yeah, I just tried using imapfilter and ssl verify fails almost certainly because as the linked issue says it can't find ca-certs.
I wasn't able to get it working with this either though:
$ SSLCAFILE=/nix/store/ix06bh151ysvw2rrggk158bqji67zh6s-etc/etc/ssl/certs/ca-bundle.crt imapfilter -v -e 'a = IMAP { server = "imap.yourserver.com", username = "yourusername", password = "yourpassword", ssl = "auto" }'
imapfilter: initiating SSL connection to imap.yourserver.com; error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
imapfilter: login request to [email protected] failed
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.2, channels(cody): "home-manager, nixos-unstable-20.03pre210300.05626cc86b8", channels(root): "nixos-20.03pre210300.05626cc86b8, nixos-unstable-20.03pre210300.05626cc86b8", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@codygman I worked around this by using an old version of imapfilter. What did you do?
@codygman I think I found a way to fix it. Please have a look.
for anyone who is affected by the issue but has not yet updated, i currently run
imapfilter -t /etc/ssl/certs/ca-bundle.crt