# Email Handler config

**URL:** <https://discourse.sensu.io/t/email-handler-config/2670>\
**Category:** Sensu Go\
**Tags:** sensu-go, handlers\
**Created:** [August 11, 2021, 6:35pm UTC](https://discourse.sensu.io/t/email-handler-config/2670 "2021-08-11T18:35:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff-fongo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jeff-fongo/32/648_2.png) [@jeff-fongo](https://discourse.sensu.io/u/jeff-fongo)\
**Post date:** [August 11, 2021, 6:35pm UTC](https://discourse.sensu.io/t/email-handler-config/2670/1 "2021-08-11T18:35:31Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [August 11, 2021, 9:04pm UTC](https://discourse.sensu.io/t/email-handler-config/2670/2 "2021-08-11T21:04:33Z")

</div>

have you tried using the `--authMethod none` argument?

---

<div class="post-metadata">

**Author:** ![jeff-fongo](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jeff-fongo/32/648_2.png) [@jeff-fongo](https://discourse.sensu.io/u/jeff-fongo)\
**Post date:** [August 11, 2021, 9:47pm UTC](https://discourse.sensu.io/t/email-handler-config/2670/3 "2021-08-11T21:47:59Z")

</div>

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