From 51916a8c8a59300031dbb67b161b49d8d62c134a Mon Sep 17 00:00:00 2001 From: rubencm Date: Tue, 17 Jan 2023 19:09:41 +0000 Subject: [PATCH] Specify how to create the certificates if they don't exist in readme (#1533) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 55c371c2..a49ac5de 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,12 @@ smtpd_recipient_restrictions = permit ``` +Check that the ssl certificates `/etc/ssl/certs/ssl-cert-snakeoil.pem` and `/etc/ssl/private/ssl-cert-snakeoil.key` exist. Depending on the linux distribution you are using they may or may not be present. If they are not, you will need to generate them with this command: + +```bash +openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem +``` + Create the `/etc/postfix/pgsql-relay-domains.cf` file with the following content. Make sure that the database config is correctly set, replace `mydomain.com` with your domain, update 'myuser' and 'mypassword' with your postgres credentials.