SMTP not working


#1

Hi guys,

I’m trying to set up Wekan but I got a bit frustrated. Everything works fine except the the smtp stuff. I can’t invite people or reset the password. I get the following Error:

Exception while invoking method 'forgotPassword' Error: getaddrinfo ENOTFOUND mailserver mailserver:25
    at Object.Future.wait (/build/programs/server/node_modules/fibers/future.js:449:15)
    at Mail._syncSendMail (packages/meteor.js:213:24)
    at smtpSend (packages/email.js:116:13)
    at Object.Email.send (packages/email.js:174:5)
    at AccountsServer.Accounts.sendResetPasswordEmail (packages/accounts-password/password_server.js:614:9)
    at [object Object].Meteor.methods.forgotPassword (packages/accounts-password/password_server.js:546:12)
    at packages/check.js:130:16
    at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
    at Object.exports.Match._failIfArgumentsAreNotAllChecked (packages/check.js:129:41)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1734:18)
    at packages/ddp-server/livedata_server.js:719:19
    at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
    at packages/ddp-server/livedata_server.js:717:40
    at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
    at packages/ddp-server/livedata_server.js:715:46
    at [object Object]._.extend.protocol_handlers.method (packages/ddp-server/livedata_server.js:689:23)
    - - - - -
    at errnoException (dns.js:27:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)

My docker-compose.yml looks like this:

version: '2'

services:

  wekandb:
    image: mongo:3.2.14
    restart: always
    container_name: wekan-db
    command: mongod --smallfiles --oplogSize 128
    networks:
      - wekan-tier
    expose:
      - 27017
    volumes:
      - wekan-db:/data/db
      - wekan-db-dump:/dump

  wekan:
    image: wekanteam/wekan:latest
    restart: always
    container_name: wekan-app
    networks:
      - wekan-tier
    ports:
      - 8081:80
    environment:
      - MONGO_URL=mongodb://wekandb:27017/wekan
      - ROOT_URL=https://sub.domain.tld
      - MAIL_URL=smtp://wekan:wekan@mailserver:25
    depends_on:
      - wekandb

  mailserver:
    image: marvambass/versatile-postfix
    volumes:
      - /home/wekan/dkim:/etc/postfix/dkim/
      - /home/wekan/maildirs:/var/mail
    command: wekan.com wekan:wekan
    environment:
      - ALIASES=postmaster:root;hostmaster:root;webmaster:root

volumes:
  wekan-db:
    driver: local
  wekan-db-dump:
    driver: local

What am I doing wrong??? I am really desperate. And what to write into the Admin Panel?


#2

You have to change your docker-compose file to your email servers and own wekan domain. There’s a few things you must change. Read the instructions where you got the docker-compose file.