Skip to content

Commit d69d6ee

Browse files
Update SetupDockerEmailServer.php
1 parent 1eb461f commit d69d6ee

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

web/Modules/Email/App/Console/SetupDockerEmailServer.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct()
3434
*/
3535
public function handle()
3636
{
37-
3837
$this->info('Setting up email server...');
3938

4039
$workPath = '/usr/local/phyre/email/docker';
@@ -51,7 +50,7 @@ public function handle()
5150
shell_exec('mkdir -p ' . $workPath);
5251
file_put_contents($workPath . '/docker-compose.yaml', $dockerComposeYaml);
5352

54-
$ssl = DomainSslCertificate::where('domain', $domain)->first();
53+
$ssl = DomainSslCertificate::where('domain', 'mail.'.$domain)->first();
5554
if ($ssl) {
5655
shell_exec('mkdir -p ' . $workPath . '/docker-data/acme-companion/certs/' . $domain);
5756
file_put_contents($workPath . '/docker-data/acme-companion/certs/' . $domain . '/fullchain.pem', $ssl->certificate_chain);
@@ -64,9 +63,11 @@ public function handle()
6463

6564
// after compose you must create the email account
6665

67-
//docker exec -ti cc85629c8ad5 setup email add [email protected] passwd123
66+
//docker exec -ti c2d4fec32239 setup email add [email protected] passwd123
67+
68+
//docker exec -ti c2d4fec32239 setup email add [email protected] passwd123
6869

69-
// docker exec -it cc85629c8ad5 setup config dkim
70+
// docker exec -it c2d4fec32239 setup config dkim
7071

7172

7273
//ufw allow 25

0 commit comments

Comments
 (0)