Skip to content

Mailer errors with TLS when it shouldn't use it #5967

Closed
@MarkusAmshove

Description

@MarkusAmshove
  • Gitea version (or commit ref): 1.7.1
  • Git version:
  • Operating system: SuSe Linux 12
  • Database (use [x]):
    • PostgreSQL
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2019/02/05 08:44:41 [...les/mailer/mailer.go:246 processMailQueue()] [E] Failed to send emails [some@mail]: Subject: [OutdatedTest] Test (#1), issue comment - gomail: could not send email 1: StartTLS: read tcp giteaip:31542->smtpip:25: read: connection reset by peer       

Description

I'm trying to set up the mailer to send mails to members on updates of PRs, but the mailer seems to fail.

I've made sure that the server Gitea is running on has the permissions to send mails via our mail server and I've confirmed that by sending mails via telnet from the Gitea server.

The error itself is strange, because I'm trying to not use any encryption.

app.ini:

[mailer]
ENABLED=true
FROM=...
HOST=smtpip:25
IS_TLS_ENABLED=false
MAILER_TYPE=smtp

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedissue/stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions