Skip to content

Containers ID in HELO headers #2182

Open
@nemurasu

Description

Self-Hosted Version

22.3.0

CPU Architecture

x86_64

Docker Version

19.03.13, build 4484c46d9d

Docker Compose Version

1.29.2

Steps to Reproduce

  1. Install Sentry using Docker
  2. Install Sentry using Docker
  3. Configure it to use some SMTP server
  4. Try to send test email
  5. Snoop on the communication between Sentry and SMTP server

Expected Result

It should be possible to specify domain used in ELHO command in configuration if it can't be autodetected.

Actual Result

The question is exactly the same as this one: getsentry/sentry#16386
Эти опции прстутсвовали в конфиге sentry/sentry.conf.example.py:
SENTRY_OPTIONS["mail.list-namespace"] = env('SENTRY_MAIL_HOST', 'localhost')
SENTRY_OPTIONS["mail.from"] = f"sentry@{SENTRY_OPTIONS['mail.list-namespace']}"

Also i tried to directly specify the mail address in these directives:
./sentry/config.yml:mail.from: 'sentry@MYDOMAIN'
./sentry/sentry.conf.py:SENTRY_OPTIONS["mail.from"] = f"sentry@MYDOMAIN"
./sentry/sentry.conf.example.py:SENTRY_OPTIONS["mail.from"] = f"sentry@MYDOMAIN"
./sentry/config.yml:mail.from: 'sentry@MYDOMAIN'
./docker-compose.yml: hostname: 'MYDOMAIN'
./.env:SENTRY_MAIL_HOST=MYDOMAINThe question is exactly the same as this one.

But all the same, the id of the web and exim4 containers are indicated in the headers of letters from the sentry:
Received: from sentry-self-hosted_worker_1.sentry-self-hosted_default ([172.19.0.28] helo=6ca37a6a566e)
by e1ec35835910 with esmtp (Exim 4.92)

docker ps | grep -E "e1ec35835910|6ca37a6a566e"

6ca37a6a566e getsentry/sentry:22.3.0 "/etc/sentry/entrypo…" 2 hours ago Up 27 minutes 9000/tcp sentry-self-hosted_worker_1
e1ec35835910 tianon/exim4 "docker-entrypoint.s…" 2 hours ago Up 27 minutes 25/tcp sentry-self-hosted_smtp_1

Where do I need to specify the domain so that it is in the HELO headers?

Event ID

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions