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

Problem: Cannot configure SMTP for Azure communication service #2688

Open
remohoeppli opened this issue Jan 9, 2025 · 0 comments
Open

Problem: Cannot configure SMTP for Azure communication service #2688

remohoeppli opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@remohoeppli
Copy link

remohoeppli commented Jan 9, 2025

Issue

I run semaphore as a docker container configured using docker compose. I tried configuring the email alerts for Azure communication service, but cannot make it work. My docker compose file looks as follows (with changed usernames, emails, and passwords).

services:
  semaphore:
    image: semaphoreui/semaphore:latest
    restart: always
    container_name: semaphore
    ports:
      - 3000:3000
    environment:
      SEMAPHORE_DB_DIALECT: bolt
      SEMAPHORE_ADMIN: admin
      SEMAPHORE_ADMIN_PASSWORD: admin_pw
      SEMAPHORE_ADMIN_NAME: Admin
      SEMAPHORE_ADMIN_EMAIL: [email protected]
      SEMAPHORE_EMAIL_ALERT: True
      SEMAPHORE_EMAIL_SENDER: [email protected]
      SEMAPHORE_EMAIL_HOST: smtp.azurecomm.net
      SEMAPHORE_EMAIL_PORT: 587
      SEMAPHORE_EMAIL_USERNAME: username
      SEMAPHORE_EMAIL_PASSWORD: password
      SEMAPHORE_EMAIL_SECURE: True

When the service is trying to send a mail I see the following logentry:

time="2025-01-09T14:15:57Z" level=error msg="504 5.7.4 Unrecognized authentication type" fields.level=Error

When switching the var SEMAPHORE_EMAIL_SECURE to false, I get the following entry:

time="2025-01-09T14:20:37Z" level=error msg="451 5.7.3 STARTTLS is required to send mail" fields.level=Error

Azure communication service does not allow any other port than 587, so I'm mostly stuck. Any advice would be much appreciated.

Impact

Service (scheduled tasks, alerts)

Installation method

Docker

Database

BoltDB

Browser

Chrome

Semaphore Version

v2.11.2-0e9490c-1735214878

Ansible Version

No response

Logs & errors

No additional python dependencies to install
Starting semaphore server
Loading config
Validating config
BoltDB /var/lib/semaphore/database.boltdb
Tmp Path (projects home) /tmp/semaphore
Semaphore v2.11.2-0e9490c-1735214878
Interface
Port :3000
Server is running
time="2025-01-09T14:15:53Z" level=info msg="Task 2147483643 added to queue"
time="2025-01-09T14:15:54Z" level=info msg="Set resource locker with TaskRunner 2147483643"
time="2025-01-09T14:15:54Z" level=info msg="Task 2147483643 removed from queue"
time="2025-01-09T14:15:57Z" level=error msg="remove /tmp/semaphore/inventory_2147483643: no such file or directory"
time="2025-01-09T14:15:57Z" level=error msg="504 5.7.4 Unrecognized authentication type" fields.level=Error
time="2025-01-09T14:15:57Z" level=info msg="Stopped running TaskRunner 2147483643"
time="2025-01-09T14:15:57Z" level=info msg="Release resource locker with TaskRunner 2147483643"

No additional python dependencies to install
Starting semaphore server
Loading config
Validating config
BoltDB /var/lib/semaphore/database.boltdb
Tmp Path (projects home) /tmp/semaphore
Semaphore v2.11.2-0e9490c-1735214878
Interface
Port :3000
Server is running
time="2025-01-09T14:20:34Z" level=info msg="Task 2147483643 added to queue"
time="2025-01-09T14:20:35Z" level=info msg="Set resource locker with TaskRunner 2147483643"
time="2025-01-09T14:20:35Z" level=info msg="Task 2147483643 removed from queue"
time="2025-01-09T14:20:37Z" level=warning msg="read |0: file already closed" error="Failed to read TaskRunner output"
time="2025-01-09T14:20:37Z" level=error msg="remove /tmp/semaphore/inventory_2147483643: no such file or directory"
time="2025-01-09T14:20:37Z" level=error msg="451 5.7.3 STARTTLS is required to send mail" fields.level=Error
time="2025-01-09T14:20:37Z" level=info msg="Stopped running TaskRunner 2147483643"
time="2025-01-09T14:20:37Z" level=info msg="Release resource locker with TaskRunner 2147483643"

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@fiftin fiftin self-assigned this Jan 10, 2025
@fiftin fiftin added the bug label Jan 10, 2025
@fiftin fiftin added this to Bugfixing Jan 15, 2025
@fiftin fiftin added this to the 2.12 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants