Sign inSign up

benyoo/mailserver

By benyoo

•Updated 4 months ago

SMTP + IMAP + POP3 + Antispam + Antivirus Web administration + Web email

Image
Web servers
0

6.9K

benyoo/mailserver repository overview

docker run \
    --net=host \
    -e TZ=Europe/Prague \
    -v /your-data-dir/data:/data \
    --name "mailserver" \
    -h "mail.example.com" \
    -t poste.io/mailserver
  • Port number Purpose
Port numberPurpose
25SMTP - mostly processing incoming mails
80HTTP - redirect to https (see options) and authentication for Let's encrypt service
110POP3 - standard protocol for accessing mailbox, STARTTLS is required before client auth
143IMAP - standard protocol for accessing mailbox, STARTTLS is required before client auth
443HTTPS - access to administration or webmail client
465SMTPS - Legacy SMTPs port
587MSA - SMTP port used primarily for email clients after STARTTLS and auth
993IMAPS - alternative port for IMAP encrypted since connection
995POP3S - encrypted POP3 since connections
4190Sieve - remote sieve settings

-e TZ=Europe/Prague Set timezone for correct datetime

-v /your-data-dir/data:/data Mounts data directory from host system. User database, emails, logs, all will end up in this directory for easy backup.

--name "mailserver" Run poste.io as container with defined name

-h "mail.example.com" Hostname for your mailserver

-t analogic/poste.io Image name, differs for PRO and FREE version

  • Optional arguments

-e "HTTPS=OFF" To disable all redirects to encrypted HTTP, its useful when you are using some kind of reverse proxy (place this argument before image name!)

-e "HTTP_PORT=8080" Custom HTTP port. Please note that you must handle Let's encrypt requests at port 80, so if you are using reverse proxy setup you need to forward /.well-known/ folder to this port

-e "HTTPS_PORT=4433" Custom HTTPS port.

-e "DISABLE_CLAMAV=TRUE" To disable all ClamAV, it is useful for low mem usage.

-e "DISABLE_RSPAMD=TRUE" To disable all Rspamd, it is useful for low mem usage.

-e "DISABLE_ROUNDCUBE=TRUE" To disable Roundcube webmail.

-p 4190:4190 When you are going to use clients with ability to manage Sieve filters externally, you need also publish port 4190

Tag summary

Content type

Image

Digest

sha256:1d5095c5d…

Size

330.6 MB

Last updated

about 2 years ago

docker pull benyoo/mailserver