Email Handler config

Hello,
I’m trying to setup my email handler with my own SMTP server running on a Windows server VM.

Since my Windows relay server does not need credentials, I tried this config but it’s not working:

type: Handler
api_version: core/v2
metadata:
  created_by: Administrator
  name: email
  namespace: Production
spec:
  command: sensu-email-handler -f sensu@domain.com -t monitor@domain.com -s relay.domain.com -u "" -p ""
  env_vars: null
  filters:
  - is_incident
  - not_silenced
  - state_change_only
  handlers: null
  runtime_assets:
  - email-handler
  secrets: null
  timeout: 10
  type: pipe

I also tried by removing the -u and -p flags all together but still doesn’t work.
Is there a way I can set it up?

Thanks.

have you tried using the --authMethod none argument?

1 Like

That was it!! Fantastic… Now it’s working. Thank you so much.