docker-mailserver: HELP: Simple Setup Does not work

python 3.6.2 docker-compose version 1.16.1, build 6d1ac219 docker-py version: 2.5.1 CPython version: 3.6.2 OpenSSL version: OpenSSL 1.1.0f 25 May 2017 AWS EC2

Here is my DNS: elcolie.com. | A | 13.228.78.175 elcolie.com. | MX | 10 elcolie.com elcolie.com. | SOA | ns-905.awsdns-49.net. awsdns-hostmaster.amazon.c elcolie.com. | NS | ns-905.awsdns-49.net. ns-1242.awsdns-27.org. ns-1822.awsdns-35.co.uk. ns-260.awsdns-32.com.

Image pull on 2Sep 4:44 UTC 2017

docker-compose.yml

version: ‘2’

services:
  mail:
    image: tvial/docker-mailserver:latest
    hostname: mail
    domainname: elcolie.com
    container_name: mail
    ports:
    - "25:25"
    - "143:143"
    - "587:587"
    - "993:993"
    volumes:
    - maildata:/var/mail
    - mailstate:/var/mail-state
    - ./config/:/tmp/docker-mailserver/
    environment:
    - ENABLE_SPAMASSASSIN=1
    - ENABLE_CLAMAV=1
    - ENABLE_FAIL2BAN=1
    - ENABLE_POSTGREY=1
    - ONE_DIR=1
    - DMS_DEBUG=0
    cap_add:
    - NET_ADMIN

volumes:
  maildata:
    driver: local
  mailstate:
    driver: local

My directory:

tomav-mailserver/
├── config
│   ├── opendkim
│   │   ├── keys
│   │   │   └── elcolie.com
│   │   │       ├── hosts
│   │   │       ├── mail.private
│   │   │       └── mail.txt
│   │   ├── KeyTable
│   │   ├── SigningTable
│   │   └── TrustedHosts
│   └── postfix-accounts.cf
└── docker-compose.yml

4 directories, 8 files

cat tomav-mailserver/config/postfix-accounts.cf

sarit@elcolie.com|{SHA512-CRYPT}$6$Q5c6Y9IRS7P/AYf1$R8vVU7BkZvdfbTq0dUUTTWGbz2FxakCDMClh4U.VSMdIxkK.1oks1OSR5..OvjuWz3In1eQHNcb9I4ayq89qT.

cat tomav-mailserver/config/opendkim/keys/elcolie.com/mail.txt

mail._domainkey IN      TXT     ( "v=DKIM1; k=rsa; "
          "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDIioW92SlSn5n77F3WnYHh5aBrfSIRWYt0rCc//bcK1dhvY3OfnH4a8NljmS7ThrbxWZpdHm7wNedLr/RQ97Du7yd9gQtFNbDlWVTJz+TBTpx8bbEa+Uckgbh0r3fNiSs5duEdrfFZMEomxLBZdhe0iHkDVVeqclgCPFVhCLVLiQIDAQAB" )  ; ----- DKIM key mail for elcolie.com

Here is my docker-compse -logs mail

Attaching to mail
mail    | 2017-09-02 05:43:00,753 CRIT Supervisor running as root (no user in config file)
mail    | 2017-09-02 05:43:00,753 WARN Included extra file "/etc/supervisor/conf.d/saslauth.conf" during parsing
mail    | 2017-09-02 05:43:00,753 WARN Included extra file "/etc/supervisor/conf.d/supervisor-app.conf" during parsing
mail    | 2017-09-02 05:43:00,760 INFO RPC interface 'supervisor' initialized
mail    | 2017-09-02 05:43:00,760 CRIT Server 'unix_http_server' running without any HTTP authentication checking
mail    | 2017-09-02 05:43:00,760 INFO supervisord started with pid 5
mail    | 2017-09-02 05:43:01,776 INFO spawned: 'mailserver' with pid 8
mail    | 
mail    | 2017-09-02 05:43:01,787 INFO success: mailserver entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
mail    | #
mail    | #
mail    | # docker-mailserver
mail    | #
mail    | #
mail    | 
mail    | Initializing setup
mail    | Checking configuration
mail    | Configuring mail server
mail    | Starting Misc
mail    | Starting mail server
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | 
mail    | #
mail    | # mail.domain.com is up and running
mail    | #
mail    | 
mail    | 2017-09-02 05:51:29,244 CRIT Supervisor running as root (no user in config file)
mail    | 2017-09-02 05:51:29,244 WARN Included extra file "/etc/supervisor/conf.d/saslauth.conf" during parsing
mail    | 2017-09-02 05:51:29,244 WARN Included extra file "/etc/supervisor/conf.d/supervisor-app.conf" during parsing
mail    | Unlinking stale socket /var/run/supervisor.sock
mail    | 2017-09-02 05:51:29,553 INFO RPC interface 'supervisor' initialized
mail    | 2017-09-02 05:51:29,553 CRIT Server 'unix_http_server' running without any HTTP authentication checking
mail    | 2017-09-02 05:51:29,553 INFO supervisord started with pid 5
mail    | 2017-09-02 05:51:30,555 INFO spawned: 'mailserver' with pid 8
mail    | 
mail    | 2017-09-02 05:51:30,566 INFO success: mailserver entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
mail    | #
mail    | #
mail    | # docker-mailserver
mail    | #
mail    | #
mail    | 
mail    | Initializing setup
mail    | Checking configuration
mail    | Configuring mail server
mail    | Starting Misc
mail    | Starting mail server
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | unix:///var/run/supervisor.sock refused connection
mail    | 
mail    | #
mail    | # mail.domain.com is up and running
mail    | #
mail    | 

On the client side I have followed in the section How can I configure my email client? But it does not work https://github.com/tomav/docker-mailserver/wiki/FAQ-and-Tips

Where am I wrong?

Update: Correct domain.com to elcolie.com. Error still persist.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

That will not work. Try to build it again, sometimes freshclam fails and just try it again.