# Mailfout 504 5.7.4 Niet-herkende authenticatietype

**URL:** <https://meta.discourse.org/t/mail-error-504-5-7-4-unrecognized-authentication-type/168921>\
**Category:** Self-hosting\
**Created:** [1 november 2020 om 16:10 UTC](https://meta.discourse.org/t/mail-error-504-5-7-4-unrecognized-authentication-type/168921 "2020-11-01T16:10:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)\
**Post date:** [1 november 2020 om 16:10 UTC](https://meta.discourse.org/t/mail-error-504-5-7-4-unrecognized-authentication-type/168921/1 "2020-11-01T16:10:05Z")

</div>

Hi there,

just installed a new board @ aws and want to get the mailing running.  
I tried to send mail with swaks from host → ok  
I tried to send mail from within the container (with swaks) → ok

The command i used is

> swaks -server \<my\_mail\_server\>:587 -tls --auth-user \<my\_mail\_user\> --auth-password \<my\_mail\_pw\> --to \<my\_testaddress\> --from \<my\_mailbox\_address\>

The corresponding section in app.yml looks like this:

> DISCOURSE\_DEVELOPER\_EMAILS: ‘\<my\_mailbox\_address\>’
> 
> DISCOURSE\_SMTP\_ADDRESS: \<my\_mail\_server\>  
> DISCOURSE\_SMTP\_PORT: 587  
> DISCOURSE\_SMTP\_USER\_NAME: \<my\_mail\_user\>  
> DISCOURSE\_SMTP\_PASSWORD: \<my\_mail\_pw\>  
> DISCOURSE\_SMTP\_ENABLE\_START\_TLS: true

and these are the last lines of my app.yml

```
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  - exec: rails r "SiteSetting.notification_email='<my_mailbox_address'"
  - exec: echo "End of custom commands"

```

So, In my oppinion I did everything …

But why is curious is that when I look in the logs I see this :

```
Delivered mail c73248c3-a56b-4100-a34b-63ad1eb3dab8@<some-domain> (5275.2ms)
Job exception: 504 5.7.4 Unrecognized authentication type

```

The thing is, that the \<some\_domain\> is strangely the domain of the certificate I created for the instance

Don´t know how that is related ☹

Any hints what I could do ?

The last part with that domain is just a thought and I don´t know if it´s any problem. The

> Job exception: 504 5.7.4 Unrecognized authentication type

could be a hint, but as I said … swaks does its job perfectly.

Thanks and cheers guys,

---

_[View the full topic](https://meta.discourse.org/t/mail-error-504-5-7-4-unrecognized-authentication-type/168921)._
