8000 About mailer config error · Issue #506 · uptrace/uptrace · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

About mailer config error #506

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

Closed
juaby opened this issue Jun 14, 2025 · 3 comments
Closed

About mailer config error #506

juaby opened this issue Jun 14, 2025 · 3 comments

Comments

@juaby
Copy link
juaby commented Jun 14, 2025

branch: v2.0.0-beta4
image: 'uptrace/uptrace:2.0.0-beta4'


when: use smtp_mailer config
     error: unknown field "smtp_mailer"
then: use mailer: and tls: { disabled: true }
     error: unknown field "disabled"

config#1: config/uptrace.dist.yml

mailer:
  smtp:
    enabled: false
    host: localhost
    port: 1025
    username: mailhog
    password: mailhog
    tls: { disabled: true }
    from: uptrace@localhost

config#2: config/uptrace.yml

smtp_mailer:
  enabled: true
  host: localhost
  port: 1025
  username: mailpit
  password: mailpit
  tls: { disabled: true }
  from: uptrace@localhost

config#3: example/docker/uptrace.yml

mailer:
  smtp:
    enabled: false
    host: localhost
    port: 1025
    username: mailhog
    password: mailhog
    tls: { disabled: true }
    from: uptrace@localhost

but
code#4: pkg/bunconf/config.go

SMTPMailer struct {
	Enabled bool   yaml:"enabled"
	From    string yaml:"from"

	Host     string            yaml:"host"
	Port     int               yaml:"port"
	AuthType mail.SMTPAuthType yaml:"auth_type"
	Username string            yaml:"username"
	Password string            yaml:"password"
	TLS      *TLSClient        yaml:"tls"
} yaml:"smtp_mailer"
@vmihailenco
Copy link
Member

Please use the example from documentation:

##
## To receive email notifications, configure a mailer.
## https://uptrace.dev/features/alerting
##
mailer:
  smtp:
    # Whether to use this mailer for sending emails.
    enabled: true
    # SMTP server host.
    host: localhost
    # SMTP server port.
    port: 1025
    # Username for authentication.
    username: mailhog
    # Password for authentication.
    password: mailhog
    # Uncomment to disable opportunistic TLS.
    #tls: { insecure: true }
    # Emails will be send from this address.
    from: 'uptrace@localhost'

@juaby
Copy link
Author
juaby commented Jun 14, 2025
 tls: 
   insecure: true
   disabled: true

disabled: true -> unknown field "disabled"
insecure: true -> [insecure](failed: SMTP AUTH failed: unencrypted connection" task_name=send-email)

@vmihailenco
Copy link
Member

Here is TLS documentation. Instead of disabled you should now use insecure.

insecure: true -> [insecure](failed: SMTP AUTH failed: unencrypted connection" task_name=send-email)

Sounds like you've disables TLS and your SMTP server is not happy about it.

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

No branches or pull requests

2 participants
0