forked from tarickb/sasl-xoauth2
-
Notifications
You must be signed in to change notification settings - Fork 0
Fixing certificate errors with cron
Jamen edited this page Nov 3, 2020
·
14 revisions
If you're seeing the error
TokenStore::Refresh: http error: error setting certificate verify locations: ...
Make a small bash script, I named mine fix_certs.sh
#!/bin/bash
mkdir -p /var/spool/postfix/etc/ssl/certs
cp /etc/ssl/certs/ca-certificates.crt /var/spool/postfix/etc/ssl/certs/ca-certificates.crt
# and if you're using postmulti add multiple instances.
mkdir -p /var/spool/postfix-2/etc/ssl/certs
cp /etc/ssl/certs/ca-certificates.crt /var/spool/postfix-2/etc/ssl/certs/ca-certificates.crt
Make the script executable with chmod +x
$ sudo chmod +x fix_certs.sh
Run it as often as you'd like with cron.