* fix: handle decryption errors gracefully in GetDecryptedJson function - Replaced os.Exit(1) with an error return to improve error handling during feature flag decryption. * chore: add project name to goreleaser configuration for prime-monitor * chore: update Dockerfile base image and dependencies; enhance .gitignore for Go project - Changed base image in Dockerfile from goreleaser to golang:1.25.1-alpine3.22. - Added necessary packages and updated the installation command for goreleaser. - Updated Go version in go.work from 1.22.4 to 1.24.0. - Expanded .gitignore to include additional Go build artifacts and directories. - Removed unused import in decryption.go. * chore: update Go version and adjust module imports in go.work - Updated Go version from 1.22.4 to 1.24.0. - Added ./lib/api and ./lib/feat_flag to the use block. - Removed ./lib/api and ./lib/feat_flag from the previous imports. * chore: update Go version in Dockerfiles from 1.25.1 to 1.25.4 - Updated the Go base image in both email and monitor Dockerfiles to version 1.25.4-alpine3.22 for improved performance and security. * chore: update go.work.sum with new module versions and modify decryption error logging * Update apps/monitor/.gitignore Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
Required DNS Records for Receiving Mail Server
1. A Record
HOST-DOMAINpoints to the server running the email service (e.gplane.example.com).
This can also be replaced with CNAME record of cloud load balancer.
Type: A
Host: <host-domain>
Value: <public-ip-address>
TTL: Auto | 3600
2. MX Record
MAIL-DOMAINrefers to incoming email domain e.g.intake.example.com
Type: MX
Host: <mail-domain>
Value: <host-domain>
Priority: 10
TTL: Auto | 3600
3. SPF Record
Type: TXT
Host: <mail-domain>
Value: "v=spf1 ip4:<A-record-ip-host-domain> -all"
TTL: Auto | 3600
4. DMARC Record
Type: TXT
Host: _dmarc.<mail-domain>
Value: "v=DMARC1; p=reject; rua=mailto:<valid-email-addr>"
TTL: Auto | 3600
Verification Commands
# Verify A record
dig A <mail-domain>
# Verify MX record
dig MX <mail-domain>
# Verify SPF record
dig TXT <mail-domain>
# Verify DMARC record
dig TXT _dmarc.<mail-domain>
You can also visit https://mxtoolbox.com/ to know the issues with your DNS records configuration.
Common Issues and Solutions
-
MX Record Issues:
- Ensure proper dot at end of domain
- Check priority number (lower = higher priority)
- Allow 24-48 hours for propagation
-
A Record Issues:
- Verify IP address is correct
- Ensure mail subdomain matches MX record
Testing Mail Server Setup:
# Test SMTP connection
telnet <host-domain> 25
telnet <host-domain> 465
telnet <host-domain> 587