Docker-Mailserver
mailserver/docker-mailserver:latest
https://hub.docker.com/r/mailserver/docker-mailserver
bridge
bash
false
https://forums.unraid.net/topic/122875-support-docker-mailserver/
https://github.com/docker-mailserver/docker-mailserver
A production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.). Only configuration files, no SQL database. Keep it simple and versioned. Easy to deploy and upgrade.
<br>
<h3> Preperations </h3>
This short guide will help you to set up a mailserver. <br>
<br>
To keep the mailserver running, there are some important points to consider, like at least one configured mail account, SSL type, hostname, etc.
<br>If these points are missing, they will be mentioned in the Docker logs to simplify troubleshooting.
<br>
<br>Make sure, you got an domain and a static IP adress to setup your mailserver. <br> MX and A DNS entries are needed. After that, portforward the mentioned ports in your router.
<h3> Initial steps: </h3>
The following placeholders will be used: <br>
<br><b> user </b> is the mail account you create.
<br><b> example.com </b> is the domain you are using.
<br><b> mail.example.com </b>is the FQDN of the mailserver.
<br><b> password </b>is the password for your mail account.</b>
<br>
<br>1. At first, setup the <b> environment variables </b> and change <b>--hostname mail.example.com </b> in the <b> Extra Parameters (advanced view)</b> as needed.
<br> Choose custom <b> Network Type </b> and set an fixed IP Adress. (didn't tested other options)
<br>
<br>2. Create an e-mail account by starting the container with <b>Post arguments </b> (advanced view):
<br><b>setup email add user@example.com 'password'</b>
<br><b>setup email add admin@company.org 'Ch33rs#M8!' </b> (for example)
<br>
<br>3. <b> Remove the post arguments. </b>
<br>
<br>4. Start container and check the logs.
<br>Optional and recommended: Open Container Console and type in...
<br> <b>setup config dkim</b>
<br>
<br>5. Try to connect to the server with an e-mail client.
<br>
<br>6. Test sending and recieving mails <br>
Optional: If everything works, you can enable <b>Fail2Ban</b> in the environment variables
<br>
<br>For further informations, visit the extended documention:
<br> https://docker-mailserver.github.io/docker-mailserver/edge/
Network:Other
https://avatars.githubusercontent.com/u/76868633?s=200&v=4
--hostname mail.example.com --restart always --cap-add=NET_ADMIN --cap-add=SYS_PTRACE
1651251277
A production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.). Only configuration files, no SQL database. Keep it simple and versioned. Easy to deploy and upgrade.
<br>
<h3> Preperations </h3>
This short guide will help you to set up a mailserver. <br>
<br>
To keep the mailserver running, there are some important points to consider, like at least one configured mail account, SSL type, hostname, etc.
<br>If these points are missing, they will be mentioned in the Docker logs to simplify troubleshooting.
<br>
<br>Make sure, you got an domain and a static IP adress to setup your mailserver. <br> MX and A DNS entries are needed. After that, portforward the mentioned ports in your router.
<h3> Initial steps: </h3>
The following placeholders will be used: <br>
<br><b> user </b> is the mail account you create.
<br><b> example.com </b> is the domain you are using.
<br><b> mail.example.com </b>is the FQDN of the mailserver.
<br><b> password </b>is the password for your mail account.</b>
<br>
<br>1. At first, setup the <b> environment variables </b> and change <b>--hostname mail.example.com </b> in the <b> Extra Parameters (advanced view)</b> as needed.
<br> Choose custom <b> Network Type </b> and set an fixed IP Adress. (didn't tested other options)
<br>
<br>2. Create an e-mail account by starting the container with <b>Post arguments </b> (advanced view):
<br><b>setup email add user@example.com 'password'</b>
<br><b>setup email add admin@company.org 'Ch33rs#M8!' </b> (for example)
<br>
<br>3. <b> Remove the post arguments. </b>
<br>
<br>4. Start container and check the logs.
<br>Optional and recommended: Open Container Console and type in...
<br> <b>setup config dkim</b>
<br>
<br>5. Try to connect to the server with an e-mail client.
<br>
<br>6. Test sending and recieving mails <br>
Optional: If everything works, you can enable <b>Fail2Ban</b> in the environment variables
<br>
<br>For further informations, visit the extended documention:
<br> https://docker-mailserver.github.io/docker-mailserver/edge/
bridge
25
25
tcp
143
143
tcp
465
465
tcp
587
587
tcp
993
993
tcp
4190
4190
tcp
/mnt/user/appdata/dms/mail-data/
/var/mail/
rw
/mnt/user/appdata/dms/mail-state/
/var/mail-state/
rw
/mnt/user/appdata/dms/mail-log/
/var/log/mail/
rw
/mnt/user/appdata/dms/config/
/tmp/docker-mailserver/
rw
/etc/letsencrypt/
rw
/etc/localtime
/etc/localtime
ro
SSL_TYPE
SSL_KEY_PATH
SSL_CERT_PATH
1
ENABLE_POSTGREY
0
ENABLE_FAIL2BAN
1
ENABLE_CLAMAV
10240000
POSTFIX_MESSAGE_SIZE_LIMIT
1
ENABLE_SPAMASSASSIN
1
ONE_DIR
1
SPAMASSASSIN_SPAM_TO_INBOX
1
ENABLE_MANAGESIEVE
25
143
465
587
993
/mnt/user/appdata/dms/mail-data/
/mnt/user/appdata/dms/mail-state/
/mnt/user/appdata/dms/mail-log/
/mnt/user/appdata/dms/config/
1
0
1
10240000
/etc/localtime
1
1
1
4190 1