Skip to content

v1.6.0

Choose a tag to compare

@hesami hesami released this 06 Nov 23:29
· 3 commits to main since this release

Release Notes — v1.6.0

Shared Mail Server with Per-Project Integration

hideploy.sh is bumped to 1.6.0 and README.md is updated. A new 9) Email menu adds a shared mail server for all domains, much like the existing nginx and MariaDB services.


What's New

Email menu

Shared mail server
A single docker-mailserver (Postfix, Dovecot, and Rspamd) serving all domains. Installation checks that outbound port 25 is open, obtains an SSL certificate, opens the required ports in UFW, and displays the server's own DNS records.

Domains
Any domain can be added — it does not need to be a project. A DKIM key is generated and ready-to-copy MX, SPF, DKIM, and DMARC records are shown. A Check DNS option compares the real internet response against the expected value.

Mailboxes and aliases
Create info@, noreply@, and so on. Passwords are stored only as hashes and never appear on the command line.

Webmail (Roundcube)
Served on a separate address over HTTPS, with Basic Auth and an optional IP allowlist. Disabled by default like phpMyAdmin: Start enables it and Stop shuts the whole domain down. You can view incoming mail and send manually.

Deliverability check
Checks ports, PTR, blacklists, and DNS for all domains. A Send test email option sends from your own server and shows the delivery log.

Per-project integration (Laravel and Next.js)

Inside each project's menu, Email for this project lets you enable the domain, create a mailbox, and connect the project to a mailbox in one step. The script writes MAIL_* (Laravel) or SMTP_* and SMTP_URL (Next.js) into .env. The project reaches the mail server over the Docker network, so no external service is needed for sending.

Integration with the rest of the script

  • A new status row in the main menu.
  • Encrypted nightly backups include accounts and DKIM keys (message contents are optional and can be disabled).
  • Automatic SSL renewal also reloads the mail server.
  • Firewall rules are added for mail ports.
  • Security check recognizes mail ports as "expected".

The code and README contain only generic examples such as example.com and mail.example.com — no personal domains.


What the Script Cannot Do

  • PTR (Reverse DNS): Only your hosting provider can point the IP back to mail.example.com. Without it, Gmail and Outlook usually send mail to spam.
  • IP reputation: Reaching the inbox on a fresh IP is not guaranteed. Low-volume receiving and sending (verification emails, password resets) usually works well, but bulk sending does not.
  • AAAA record: Create only an A record for the mail host. Docker does not pass the real IPv6 address of senders to the mail server.
  • RAM: Roughly 600–900 MB. The script warns if the server has less than about 1.8 GB of RAM.

Upgrade

Replace hideploy.sh and README.md on GitHub and tag v1.6.0. On the server:

sudo hideploy update

Then hideploy --version should show 1.6.0.


Notes

  • Make sure outbound port 25 is open with your provider before installing; many hosts block it by default.
  • Set up the DNS records shown by the script (MX, SPF, DKIM, DMARC) before expecting reliable delivery.
  • Request the PTR record from your hosting provider — it is the single biggest factor in avoiding spam folders.