maildev icon indicating copy to clipboard operation
maildev copied to clipboard

config with keycloak

Open dmp2tech opened this issue 4 years ago • 1 comments

Hi,

I use maildev 1.1.0 with docker. I configure keycloak that this. Capture d’écran 2020-04-22 à 13 15 36 I have an error

 com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost:1025, 25; timeout 10000;
  nested exception is:
	java.net.UnknownHostException: localhost:1025

I have redirect 1025 to 25 on docker.

Best regards

dmp2tech avatar Apr 22 '20 11:04 dmp2tech

If you use docker-compose you should use the container name rather than the localhost ip (which is the keycloak container itself).

version: '3.5'

services:

  keycloak:
    image: jboss/keycloak
    environment:
      KEYCLOAK_USER: ${KEYCLOAK_USER:-admin}
      KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD:-admin}
    ports:
      - ${KEYCLOAK_PORT:-9990}:8080
    restart: unless-stopped

  maildev:
    image: maildev/maildev
    ports:
      - 1025:25
      - 1080:80

And then use maildev as host as shown in the image:

image

image

RobertHeim avatar Aug 03 '20 12:08 RobertHeim