Skip to content

Configuring Gmail results in 'Failed to issue MAIL command: 555 5.5.2 Syntax error' #35794

@KelchtermansBram

Description

@KelchtermansBram

Description

I tried configuring my Google Workspace & generic gmail account in the Gitea mailer config by following the documentation provided at https://docs.gitea.com/administration/email-setup

However, when sending a test email I get the following error:
failed to issue MAIL command: 555 5.5.2 Syntax error, cannot decode response. For more information, go to 5.5.2 https://support.google.com/a/answer/3221692 and review RFC 5321 5.5.2 specifications. 4fb4d7f45d1cf-64068f74a56sm1990428a12.15 - gsmtp

Using the exact same credentials in another application works as a charm.

Things I've tried

  • Try smtp+starttls and smtps
  • Use both a generic gmail account and a google workspace account
  • Changing the default name (Gitea: Git with a cup of tea) to my own name and/or email
  • Manually send an email by using swaks from the host machine (Gitea is running in a docker on that machine)

Am I doing something wrong or is this a global issue?

Gitea Version

1.25.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.49.1

Operating System

Ubuntu

How are you running Gitea?

Selfhosted with Docker

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugtype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions