Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unneccessary SMTP_ADDR lookup when using "PROTOCOL = sendmail" #22287

Closed
markshep opened this issue Dec 30, 2022 · 1 comment · Fixed by #22300
Closed

Unneccessary SMTP_ADDR lookup when using "PROTOCOL = sendmail" #22287

markshep opened this issue Dec 30, 2022 · 1 comment · Fixed by #22300
Labels
Milestone

Comments

@markshep
Copy link

Description

I've just upgraded to 1.18.0 and had to fix my [mailer] config to avoid #22274 (and also update my [log] config just to see the problem in the first place!). Now that I can see warnings in the console I noticed this:

2022/12/30 21:49:49 ...es/setting/mailer.go:263:tryResolveAddr() [W] could not look up mailer.SMTP_ADDR: lookup : no such host

However it makes no sense for gitea to be attempting to resolve SMTP_ADDR as I'm using the "sendmail" PROTOCOL for my mailer:

[mailer]
ENABLED       = true
FROM          = Gitea <[email protected]>
PROTOCOL      = sendmail
SENDMAIL_PATH = /usr/sbin/sendmail
SENDMAIL_ARGS = --

Gitea Version

1.18.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian 11.6 (amd64)

How are you running Gitea?

Downloaded from your GitHub release page.

Database

None

@lunny
Copy link
Member

lunny commented Dec 31, 2022

22295 is a wrong ref.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants