From 0dbe2ed538f18f6da42ef54155abe7f8cda0807b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Josu=C3=A9=20Tille?= <josue@tille.ch>
Date: Wed, 24 Jan 2024 22:57:48 +0100
Subject: [PATCH] Fix email retriving

With the previous config we have this error:
Error while processing incoming emails: could not connect to server 'localhost:993': tls: failed to verify certificate: x509: certificate is valid for domain.tld, not localhost
---
 conf/app.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/app.ini b/conf/app.ini
index 0bb74d9..6eae587 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -46,7 +46,7 @@ FORCE_TRUST_SERVER_CERT = true
 [email.incoming]
 ENABLED = true
 REPLY_TO_ADDRESS = __APP__+%{token}@__DOMAIN__
-HOST = localhost
+HOST = __DOMAIN__
 PORT = 993
 USE_TLS = true
 USERNAME = __APP__