From d3fa0cbbf950d6db0ce09376633d9508ffbfd51b Mon Sep 17 00:00:00 2001 From: Lang <7system7@gmail.com> Date: Tue, 14 Apr 2026 16:38:55 +0200 Subject: [PATCH] fix: dev: quickfix for email sending #4 --- compose.yaml | 5 +++++ src/Controller/SecurityController.php | 4 ++-- templates/Official/terms.html.twig | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/compose.yaml b/compose.yaml index 9c5803d..036d86c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -76,8 +76,13 @@ services: image: boky/postfix:latest restart: unless-stopped container_name: '${APP_NAME}-mail' + hostname: postfix.mail.${MAIL_DOMAIN:-localhost} environment: ALLOWED_SENDER_DOMAINS: ${MAIL_DOMAIN:-localhost} + HOSTNAME: postfix.mail.${MAIL_DOMAIN:-localhost} + POSTFIX_myhostname: postfix.mail.${MAIL_DOMAIN:-localhost} + POSTFIX_mynetworks: "127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16" + POSTFIX_smtpd_tls_security_level: none RELAYHOST: ${MAIL_RELAYHOST:-} RELAYHOST_AUTH: ${MAIL_RELAYHOST_AUTH:-} RELAYHOST_PASSWORD: ${MAIL_RELAYHOST_PASSWORD:-} diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 71eec0f..79bac1a 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -94,7 +94,7 @@ class SecurityController extends AbstractController $mailer->send( new TemplatedEmail() - ->from('noreply@mineseeker.ninja') + ->from('noreply@mineseeker.hu') ->to($user->getEmail()) ->subject('Activate your MineSeeker account') ->htmlTemplate('emails/activation.html.twig') @@ -145,7 +145,7 @@ class SecurityController extends AbstractController $mailer->send( new TemplatedEmail() - ->from('noreply@mineseeker.ninja') + ->from('noreply@mineseeker.hu') ->to($email) ->subject('Reset your MineSeeker password') ->htmlTemplate('emails/reset_password.html.twig') diff --git a/templates/Official/terms.html.twig b/templates/Official/terms.html.twig index 12cb981..3eb64a6 100644 --- a/templates/Official/terms.html.twig +++ b/templates/Official/terms.html.twig @@ -8,7 +8,7 @@

1. Terms

-

By accessing the website at https://www.mineseeker.ninja, you are +

By accessing the website at https://www.mineseeker.hu, you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are