-
Notifications
You must be signed in to change notification settings - Fork 616
new mailer saltwart #1273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+58
−0
Merged
new mailer saltwart #1273
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2b75340
new mailer
EsdrasCaleb c9a0505
working
EsdrasCaleb 86bb4d9
working and oficial image
EsdrasCaleb c9e59f0
correct volume
EsdrasCaleb efe2cab
pretier run
EsdrasCaleb d4af8aa
Remove Moodle configuration section
EsdrasCaleb 4e28911
Merge branch 'caprover:master' into master
EsdrasCaleb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| captainVersion: 4 | ||
| services: | ||
| $$cap_appname: | ||
| image: stalwartlabs/stalwart:$$cap_stalwart_version | ||
| restart: always | ||
| volumes: | ||
| - $$cap_appname-data:/opt/stalwart | ||
| ports: | ||
| - '25:25' # SMTP | ||
| - '587:587' # Submission | ||
| - '465:465' # SMTPS | ||
| - '993:993' # IMAPS | ||
| caproverExtra: | ||
| containerHttpPort: '8080' | ||
|
|
||
| caproverOneClickApp: | ||
| displayName: Stalwart Mail Server | ||
| isOfficial: true | ||
| description: Modern, All-in-One Mail Server written in Rust (JMAP, IMAP, SMTP). Faster and lighter than Postal/Poste.io. | ||
| documentation: https://stalw.art/docs/ | ||
|
|
||
| variables: | ||
| - id: '$$cap_stalwart_version' | ||
| label: Stalwart Version | ||
| defaultValue: 'v0.15.4' | ||
| description: 'Check Docker Hub for tags https://hub.docker.com/r/stalwartlabs/stalwart/tags. Default is v0.15.4 .' | ||
| validRegex: '/.{1,}/' | ||
|
|
||
| instructions: | ||
| start: |- | ||
| Stalwart Mail Server is a high-performance, open-source mail server solution. | ||
|
|
||
| ⚠️ **CRITICAL PREREQUISITES:** | ||
| 1. Ensure ports **25, 587, 465, and 993** are NOT used by other apps on this server. | ||
| 2. If you have Postal or Poste.io running, stop them before deploying. | ||
| 3. Verify if your VPS provider blocks outgoing connections on Port 25. | ||
|
|
||
| end: |- | ||
| ✅ **Deployment Successful!** | ||
|
|
||
| Before you start using it, please follow these steps to ensure stability and correct IP detection. | ||
|
|
||
| **Step 1: Enable Host Networking (Recommended for Real IP detection)** | ||
| 1. Go to **App Configs** for `$$cap_appname`. | ||
| 2. Paste the following into the **Pre-Deploy Script** box: | ||
| `var preDeployFunction = function (captainAppObj, dockerUpdateObject) {var ports = dockerUpdateObject.EndpointSpec.Ports || [];ports.forEach(function (port) {port.PublishMode = "host";});return Promise.resolve(dockerUpdateObject);};` | ||
| 3. Click **Save & Update**. | ||
|
|
||
| **Step 2: Enable HTTPS** | ||
| 1. Go to **HTTP Settings**. | ||
| 2. Enable **HTTPS** and **Force HTTPS**. | ||
| 3. Ensure "Container Port" is set to `8080`. | ||
|
|
||
| **Step 3: Initial Setup & Password** | ||
| 1. Go to **App Configs** -> **View Logs** (document icon). | ||
| 2. Look for a line saying: `Admin password: XXXXXXXX`. Copy it. | ||
| 3. Access your dashboard at: `https://$$cap_appname.$$cap_root_domain` | ||
| 4. Log in with user `admin` and the password from the logs. | ||
|
|
||
| **Step 4: Moodle Configuration** | ||
| - **SMTP Host:** `$$cap_appname.$$cap_root_domain` (or your dedicated mail domain) | ||
| - **Port:** `587` | ||
| - **Security:** `STARTTLS` | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is moodle relevant here?