Skip to content

Failed to send test email in Gitea 1.25.0 #35788

@dangjinghao

Description

@dangjinghao

Description

After updating to Gitea 1.25.0, the test email fails to send with the error:

failed to issue MAIL command: 502 Invalid input from xxxIPxxx to newxmesmtplogicsvrszb20-1.qq.com.

I temporary create a Gitea 1.24.7 website with same [mailer] content, and try to send test email again, it just works.

Configuration:

[mailer]
ENABLED = true
FROM = xxx@qq.com
SMTP_ADDR = smtp.qq.com
SMTP_PORT = 465
USER = xxx@qq.com
PASSWD = xxx

Neither SMTP_PORT = 465(smtps) nor SMTP_PORT = 587(smtp+starttls) doesn't work.

Gitea Version

1.25.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

1.25.0:
Image

1.24.7 with same mailer configuration:

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

1.25.0: docker image: gitea/gitea:latest

1.24.7: download from releases page

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions