When trying to connect to SMTP mailserver, pydio.rest.mailer returns "Rest Error 500"

I’m setting up Cells using the pydio/cells:latest Docker image. I also have a tvial/docker-mailserver:latest mail server which I’m trying to connect Cells to using SMTP over port 587. When on the Mailers page, as my default admin account, trying to connect to the SMTP server returns an error:

could not send mail	{"error": "{\"id\":\"\",\"code\":0,\"detail\":\"EOF\",\"status\":\"\"}"},

See the whole logs with several attempts here.

This doesn’t have a lot of useful information for me. The mail server does not log any connection attempt. I have tested the SMTP send function on 587 using iOS mail, everything seems to work fine from there.

This is the snippet for pydio/cells:latest:

version: '2'
services:
  cells:
      image: pydio/cells:latest
      restart: unless-stopped
      environment:
          # Args for cells
          CELLS_BIND: 0.0.0.0:80
          CELLS_EXTERNAL: files.example.com
          CELLS_NO_SSL: 1
          # Args for nginx-proxy
          VIRTUAL_HOST: files.example.com
          LETSENCRYPT_HOST: files.example.com
          LETSENCRYPT_EMAIL: me@gmail.com
      volumes:
          - cells-config:/root/.config/
          - mariadb-sock:/var/run/mysqld/
      expose:
        - "80"
      network_mode: bridge

And here is my mail server:

mail:
    image: tvial/docker-mailserver:latest
    hostname: mail
    domainname: example.com
    container_name: mail
    ports:
      - "25:25"
      - "143:143"
      - "465:465"
      - "587:587"
      - "993:993"
    volumes_from:
      - letsencrypt
    volumes:
      - maildata:/var/mail
      - mailstate:/var/mail-state
      - mailconf:/tmp/docker-mailserver/
      - certs:/etc/letsencrypt/live:ro
    environment:
      - ENABLE_SPAMASSASSIN=1
      - ENABLE_CLAMAV=1
      - ENABLE_FAIL2BAN=1
      - ENABLE_POSTGREY=1
      - ONE_DIR=1
      - DMS_DEBUG=0
      - SSL_TYPE=letsencrypt
      - VIRTUAL_HOST=mail.example.com
      - LETSENCRYPT_HOST=mail.example.com
      - LETSENCRYPT_EMAIL=me@gmail.com
    cap_add:
      - NET_ADMIN
      - SYS_PTRACE
    network_mode: bridge
    restart: unless-stopped

Please let me know if you need any more information to help resolve this issue.

PS, is a mailer required for the desktop sync client? I get an email-related error when I try to set up that client.

Hi,
it seems that Cells did not reach the smtp server,
when configuring the smtp mailer on Cells, what hostname did you use was it an ip, domain-name or maybe container-name.

no it is not required.

Also beware in your docker-compose smtp config you might have forgotten to remove your personal email.

1 Like