forked from rnwood/smtp4dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (75 loc) · 4.72 KB
/
docker-compose.yml
File metadata and controls
98 lines (75 loc) · 4.72 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3'
# ⚠️ SECURITY WARNING: The port configuration below publishes smtp4dev to ALL network interfaces.
# This means it may be accessible from outside your machine. For security, consider using:
# - '127.0.0.1:5000:80' # Web interface (localhost only)
# - '127.0.0.1:25:25' # SMTP server (localhost only)
# - '127.0.0.1:143:143' # IMAP server (localhost only)
# - '127.0.0.1:110:110' # POP3 server (localhost only)
# See docs/Docker-Security.md for detailed security guidelines.
services:
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
# Change the number before : to the port the web interface should be accessible on
# Add 127.0.0.1: prefix for localhost-only access (recommended for security)
- '5000:80'
# Change the number before : to the port the SMTP server should be accessible on
# Add 127.0.0.1: prefix for localhost-only access (recommended for security)
- '25:25'
# Change the number before : to the port the IMAP server should be accessible on
# Add 127.0.0.1: prefix for localhost-only access (recommended for security)
- '143:143'
# Change the number before : to the port the POP3 server should be accessible on
# Add 127.0.0.1: prefix for localhost-only access (recommended for security)
- '110:110'
volumes:
# This is where smtp4dev stores the database..
- smtp4dev-data:/smtp4dev
environment:
# Uncomment to customise these settings
# This is not a complete list of the available settings.
# See the documentation in appsettings.json for a full list.
#Specifies the virtual path from web server root where SMTP4DEV web interface will be hosted. e.g. "/" or "/smtp4dev"
#- ServerOptions__BasePath=/smtp4dev
#Specifies the URLs the web UI will use inside the container.
- ServerOptions__Urls=http://*:80
#Specifies the server hostname. Used in auto-generated TLS certificate if enabled.
- ServerOptions__HostName=smtp4dev
#Locks settings from being changed by user via web interface
#- ServerOptions__LockSettings=true
#Specifies the path where the database will be stored relative to APPDATA env var on Windows or XDG_CONFIG_HOME on non-Windows. Specify "" to use an in memory database.
#- ServerOptions__Database=database.db
#Specifies the number of messages to keep
#- ServerOptions__NumberOfMessagesToKeep=100
#Specifies the number of sessions to keep
#- ServerOptions__NumberOfSessionsToKeep=100
#Specifies the TLS mode to use. None=Off. StartTls=On demand if client supports STARTTLS. ImplicitTls=TLS as soon as connection is established.
#- ServerOptions__TlsMode=None
#Specifies the TLS certificate to use if TLS is enabled/requested. Specify "" to use an auto-generated self-signed certificate (then see console output on first startup)
#- ServerOptions__TlsCertificate=
#Uncomment to disable IPv6 if your Docker environment doesn't support it (helps avoid startup errors in some Docker configurations)
#- ServerOptions__DisableIPv6=true
#Specifies a mailbox with name "Test" and recipient "hello@world.com". To add more, use the same format but replace the number at the end of the variable name.
#- ServerOptions__Mailboxes__0=Test=hello@world.com
#Sets the name of the SMTP server that will be used to relay messages or "" if messages should not be relayed
#- RelayOptions__SmtpServer=
#Sets the port number for the SMTP server used to relay messages.
#- RelayOptions__SmtpPort=25
#Specifies a comma separated list of recipient addresses for which messages will be relayed. An empty list means that no messages are relayed.
#- RelayOptions__AllowedEmailsString=
#Specifies the address used in MAIL FROM when relaying messages. (Sender address in message headers is left unmodified). The sender of each message is used if not specified.
#- RelayOptions__SenderAddress=
#The username for the SMTP server used to relay messages. If "" no authentication is attempted.
#- RelayOptions__Login=
#The password for the SMTP server used to relay messages
#- RelayOptions__Password=
#Specifies the port the IMAP server will listen on - allows standard email clients to view/retrieve messages
#"ServerOptions__ImapPort"=143
#Specifies the port the POP3 server will listen on - allows standard email clients to retrieve/delete messages
#"ServerOptions__Pop3Port"=110
#Specifies POP3 TLS mode (None, StartTls, ImplicitTls) and whether secure connection is required
#"ServerOptions__Pop3TlsMode"=StartTls
#"ServerOptions__Pop3SecureConnectionRequired"=false
volumes:
smtp4dev-data: