From d69d6ee5752022b5aa12d745d687bc3b5bac3250 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 17 Sep 2024 18:08:18 +0300 Subject: [PATCH] Update SetupDockerEmailServer.php --- web/Modules/Email/App/Console/SetupDockerEmailServer.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/Modules/Email/App/Console/SetupDockerEmailServer.php b/web/Modules/Email/App/Console/SetupDockerEmailServer.php index 44ac88c..515bc3f 100644 --- a/web/Modules/Email/App/Console/SetupDockerEmailServer.php +++ b/web/Modules/Email/App/Console/SetupDockerEmailServer.php @@ -34,7 +34,6 @@ class SetupDockerEmailServer extends Command */ public function handle() { - $this->info('Setting up email server...'); $workPath = '/usr/local/phyre/email/docker'; @@ -51,7 +50,7 @@ class SetupDockerEmailServer extends Command shell_exec('mkdir -p ' . $workPath); file_put_contents($workPath . '/docker-compose.yaml', $dockerComposeYaml); - $ssl = DomainSslCertificate::where('domain', $domain)->first(); + $ssl = DomainSslCertificate::where('domain', 'mail.'.$domain)->first(); if ($ssl) { shell_exec('mkdir -p ' . $workPath . '/docker-data/acme-companion/certs/' . $domain); file_put_contents($workPath . '/docker-data/acme-companion/certs/' . $domain . '/fullchain.pem', $ssl->certificate_chain); @@ -64,9 +63,11 @@ class SetupDockerEmailServer extends Command // after compose you must create the email account - //docker exec -ti cc85629c8ad5 setup email add peter@allsidepixels.com passwd123 + //docker exec -ti c2d4fec32239 setup email add peter@allsidepixels.com passwd123 -// docker exec -it cc85629c8ad5 setup config dkim + //docker exec -ti c2d4fec32239 setup email add boris@allsidepixels.com passwd123 + +// docker exec -it c2d4fec32239 setup config dkim //ufw allow 25