Kubernetes email transport not enabled


(Rodney) #1

I have kubernetes graylog cluster running and I used helm charts for deployment. I have all the email env variables set. I send a test alert and I get an error email transport not enabled in comnfiguration


(Jan Doberstein) #2

then you might have an error in your configuration.

but without knowing what you have configured it is nearly impossible to help with that.


(Rodney) #3

I will send my config


(Rodney) #4

I was trying to load it but it was freezing and wouldn’t paste


(Rodney) #5

Everything is working except when trying to send email.

Here is my config I am using helm charts so here is my values.yaml with email configuration

graylog-dev:

graylog:

image: /graylog:1.0.2

elasticSearchHosts: [https://ppns5znt6h5bx5hqnfn4uh5hba.us-east-1.es.amazonaws.com](https://ppns5znt6h5bx5hqnfn4uh5hba.us-east-1.es.amazonaws.com)

webEndpointUrl: [https://example.com/api](https://example.com/api)

env:

  transport_email_enabled: "true"

  transport_email_protocol: smtp

  transport_email_hostname: [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com)

  transport_email_port: 465

  transport_email_use_auth: "true"

  transport_email_use_tls: "true"

  transport_email_auth_username: 

  transport_email_auth_password: 

  transport_email_subject_prefix: Graylog2

  transport_email_from_email: user@example.com

  transport_email_from_name: example

  transport_email_web_interface_url: https:/[example.com](http://example.com)

mongodb-dev:

mongo:

image: mongo:3

volumeId: vol-622dbaf2a68725578

storage: 8Gi

Here is my graylog deployment yaml

value: “{{ .Values.graylog.elasticSearchHosts }}”

    - name: "GRAYLOG_ELASTICSEARCH_COMPRESSION_ENABLED"

      value: "false"

    - name: "GRAYLOG_ELASTICSEARCH_DISCOVERY_ENABLED"

      value: "false"

    - name: "GRAYLOG_MONGODB_URI"

      value: "mongodb://mongodb:27017/graylog"

    - name: "GRAYLOG_PASSWORD_SECRET"

      value: ""

    - name: "GRAYLOG_ROOT_PASSWORD_SHA2"

      value: ""

    - name: "GRAYLOG_WEB_ENDPOINT_URI"

      value: "{{ .Values.graylog.webEndpointUrl }}"

    - name: "GRAYLOG_ROOT_TIMEZONE"

      value: "America/New_York"

    - name: "Email_Transport"

      value: "{{ .Values.graylog.transport_email_enabled }}"

    - name: "Email_Protocol"

      value: "{{ .Values.graylog.transport_email_protocol }}"

    - name: "Email_Hostname"

      value: "{{ .Values.graylog.transport_email_hostname }}"

    - name: "Email_Port"

      value: "{{ .Values.graylog.transport_email_port }}"

    - name: "Email_Auth"

      value: "{{ .Values.graylog.transport_email_use_auth }}"

    - name: "Email_TLS"

      value: "{{ .Values.graylog.transport_email_use_tls }}"

    - name: "Email_Username"

      value: "{{ .Values.graylog.transport_email_auth_username }}"

    - name: "Email_Password"

      value: "{{ .Values.graylog.transport_email_auth_password }}"

    - name: "Email_Subject_Prefix"

      value: "{{ .Values.graylog.transport_email_subject_prefix }}"

    - name: "Email_From_Email"

      value: "{{ .Values.graylog.transport_email_from_email }}"

    - name: "Email_From_Name"

      value: "{{ .Values.graylog.transport_email_from_name }}"

    - name: "Email_Web_Interface"

      value: "{{ .Values.graylog.transport_email_web_interface_url }}"

    resources:

      limits:

        memory: 4000Mi

(Jan Doberstein) #6

What Version of Graylog did you try to install/use?

I can’t map image: /graylog:1.0.2 to any given version.


(Rodney) #7

Sorry,
The version I am using 2.4.6. I was able to test connectivity to my smtp server from inside the graylog pod and send a message to the smtp server endpoint as well. But if I go and add an alert and select email and configure email alert and hit send I still get the error email tranport not configured. I also did env inside the graylog pod and all the values are getting passed as well.


(Jan Doberstein) #8

The env variables need to be upper case: if that is the docker container.


(Rodney) #9

Yes it is running in a Docker Container on Kubernetes and the values are getting passed using Helm charts. Let me show you. Here is some of the output of the variables using env command from within the Pod
Email_Port=465
Email_Protocol=smtp
Email_TLS=true
Email_Hostname=email-smtp.us-west-1.amazonaws.com
Email_Transport=true

I left out email password and Username


(Rodney) #10

The issue has been solved


(Rodney) #11

The issuse has been Solved


(Rodney) #12

Thanks for you help on this issue


(emma) #13

Hi, I met the same problem. How did you resolve it? Could you share? thanks a lot!


(Rodney) #14

So the variable names have to be all uppercase the whole variable string.
“GRAYLOG_TRANSPORT_EMAIL_ENABLED”


(system) #15

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.