-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
79 lines (67 loc) · 2.52 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { app, port } from './api/index.js';
import {
unsecureSmtpServer,
unsecureSmtpPort,
smtpServer,
smtpPort,
startTLSServer,
startTLSPort,
} from './smtp/index.js';
console.log(`
.:--=--. .:--=--. .:-=+++=: :--==-:.
-+++++++++- :=++++++++- .=+++++++++- .=+++++++++:
.++++++++++++: :++++++++++++..=++++++++++++..=++++++++++++
=-:-+++++++++==+++++++++++++=++=-++++++++++-++++++++++++++.
=+++++++++=. .++++++++++: .++++++++++-. :+++++++++
+++++++++- ++++++++= .+++++++++. :++++++++=
:++++++++- .++++++++: -++++++++. -++++++++:
=+++++++= -++++++++ ++++++++= +++++++++
:++++++++- +++++++++ :++++++++= -++++++++-
=++++++++= :+++++++++ =++++++++= +++++++++.
.++++++++++. =+++++++++: .++++++++++. .+++++++++.
:++++++++++: ++++++++++- :++++++++++. :+++++++++-..-
.++++++++++ ++++++++++: .++++++++++ .++++++++++++:
+++++++. +++++++ +++++++= -+++++++++
`);
console.log(`
==================================================
✨ Welcome to ManyMail Sandbox SMTP Server! ✨
Here's how to get started:
1️⃣ Connect to our SMTP servers:
- Standard Port: 25
- Secure Ports: 465* (SSL), 587* (STARTTLS)
2️⃣ Access the admin dashboard:
- Open: http://localhost:8080
- Login with your admin credentials.
3️⃣ Use the sandbox to send and test emails in a secure environment!
*Note:
- Admin credentials are the same as the SMTP login credentials.
- Configure them via the .env file or Docker Compose environment variables.
📖 Checkout the user guide in the readme.md directly from the repo (https://github.com/frarcos/manymail-sandbox/readme.md)
Happy emailing! 🚀
==================================================
`);
app.listen(port, () => {
console.log(`✅ ManyMail Sandbox Web & API are running on port ${port}\n`);
});
if (process.env.RUN_UNSECURE_SMTP_SERVER === 'true') {
unsecureSmtpServer.listen(unsecureSmtpPort, () => {
console.log(
`✅ ManyMail Sandbox Unsecure SMTP server is running on port ${unsecureSmtpPort}\n`
);
});
}
if (process.env.RUN_SMTP_SERVER === 'true') {
smtpServer.listen(smtpPort, () => {
console.log(
`✅ ManyMail Sandbox Secure SMTP server is running on port ${smtpPort}\n`
);
});
}
if (process.env.RUN_STARTTLS_SERVER === 'true') {
startTLSServer.listen(startTLSPort, () => {
console.log(
`✅ ManyMail Sandbox SMTP server with STARTTLS is running on port ${startTLSPort}\n`
);
});
}