Skip to content

Commit 6ed4d02

Browse files
committed
chore: wip
1 parent 2114881 commit 6ed4d02

File tree

20 files changed

+4149
-112
lines changed

20 files changed

+4149
-112
lines changed

config/email.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,42 @@ export default {
1616
address: envVars.MAIL_FROM_ADDRESS || 'no-reply@stacksjs.com',
1717
},
1818

19+
domain: envVars.MAIL_DOMAIN || 'stacksjs.com',
20+
1921
mailboxes: ['chris@stacksjs.com', 'blake@stacksjs.com', 'glenn@stacksjs.com'],
2022

2123
url: envVars.APP_URL || 'https://stacksjs.com',
2224
charset: 'UTF-8',
2325

2426
server: {
27+
enabled: true,
2528
scan: true, // scans for spam and viruses
29+
subdomain: 'mail', // mail.stacksjs.com
30+
31+
storage: {
32+
retentionDays: 90,
33+
archiveAfterDays: 30,
34+
},
35+
36+
// EC2 instance configuration for IMAP/SMTP server
37+
instance: {
38+
type: 't4g.nano', // ~$3/month - sufficient for light use
39+
spot: false, // set to true for ~$1.50/month (can be interrupted)
40+
diskSize: 8, // GB
41+
// keyPair: 'my-key-pair', // optional SSH access
42+
},
43+
44+
ports: {
45+
imap: 993, // IMAP over TLS
46+
smtp: 465, // SMTP over TLS
47+
smtpStartTls: 587, // SMTP with STARTTLS
48+
},
49+
},
50+
51+
notifications: {
52+
newEmail: true,
53+
bounces: true,
54+
complaints: true,
2655
},
2756

2857
default: envVars.MAIL_DRIVER || 'ses',

0 commit comments

Comments
 (0)