Graylog SMTP server without TLS/SSL

I want to start graylog with smtp support via docker. I do it like this:

docker run -d -p 9000:9000 -p 12201:12201 -p 12201:12201/udp \
  -e GRAYLOG_NODE_ID=My_Node_Id \
  -e GRAYLOG_SMTP_SERVER="Server.name.local --no-tls --no-ssl --web-url=http://web.name.local" \
  -e GRAYLOG_SERVER_SECRET=Secret \
  -v /graylog/data:/var/opt/graylog/data \
  -v /graylog/logs:/var/log/graylog graylog2/allinone

Graylog is working fine except that I can’t send an email test message (in Graylog: StreamsManage AlertsSend test alert). Doing so I get an error screen in the web interface

  • Maximum TCP connections (with different IPs/containers)
  • Mounting a container volume into another container on a different path
  • Microsoft Compiler in Docker
  • Why other unrelated processes are killed when one process is killed in docker container
  • Attaching network storage to a Docker container for Gitlab (ssh issue) [closed]
  • Can't access app deployed with docker and google cloud
  • enter image description here

    Removing

    –no-tls

    from the docker configuration, I don’t get that screen. But of course now I get an error message

    An error occurred while trying to send an email! (triggered 20 hours
    ago) The Graylog server encountered an error while trying to send an
    email. This is the detailed error message:
    org.apache.commons.mail.EmailException: Sending the email to the
    following server failed : Server.name.local:587
    (javax.mail.MessagingException: Could not convert socket to TLS;
    nested exception is: javax.net.ssl.SSLHandshakeException:
    sun.security.validator.ValidatorException: P KIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to
    find valid certification path to requested target)

    That error is ok as there is no tls/ssl support.

    But why do I get an error screen in the web interface with –no-tls? Any ideas how I can send mails without ssl? Am I doing something wrong with docker? Did anyone succeed in using docker, graylog and email without tls/ssl?

    In the image, one can read

    Please check that the servers shown to the right are running and
    reachable.

    The ip address below the upper right red bar is not reachable. I don’t even know that ip address. Where is that ip address coming from? Do I need to change it? Why is this failing only when –no-tls is activated?

    I am using the latest version one can get via docker.

    $ docker pull graylog2/allinone
    Using default tag: latest
    latest: Pulling from graylog2/allinone
    e9c5e611068d: Already exists
    c29de585b225: Already exists
    0b3e3644d782: Already exists
    a3ed95caeb02: Already exists
    f9cf24c26853: Already exists
    ff82d8c50b3d: Already exists
    4136ecd1ecd2: Already exists
    Digest: sha256:ec56d3678f072...
    Status: Image is up to date for graylog2/allinone:latest
    

    UPDATE::

    On the docker container site for graylog2/allinone I just read that it is deprecated and one should use graylog2/server. I’ll give it a try.

    I am lost. Thanks a lot for any hint!

  • rails docker app bundle rake aborted
  • Is it possible to access Hbase installed inside docker container to be accessed using java client on mac OSX?
  • enable CORS in docker for rails apps rest-client
  • Install ember flora editor in docker
  • Docker: how to use container to replace real smtp server?
  • Docker CLI in Freestyle Build Shell
  • One Solution collect form web for “Graylog SMTP server without TLS/SSL”

    After trying to get graylog2/server up and running and failing I returned back to graylog2/allinone and finally succeeded to receive an email. It seems to be important to specify ALL needed parameters like this:

    GRAYLOG_SMTP_SERVER="Server.name.local --port=25 --no-tls --no-ssl"
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.