DependencyTrack / DependencyTrack/dependency-track

Test mail is not sent

Open
#3,501 2 comments 0 reactions 0 assignees View on GitHub
defect in triage
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

Hi all 👋
### Current Behavior

1. I launch dependencytrack as a docker swarm stack with an attached compose file
2. Fill in Home\Administration\Configuration\Email
3. I try to send a Configuration test, but nothing happens
4. I receive a log in the attached file in the dtrack_dtrack-apiserver service log
[log_dependencytrack.txt](https://github.com/DependencyTrack/dependency-track/files/14419756/log_dependencytrack.txt)
[docker-compose_dependencytrack.txt](https://github.com/DependencyTrack/dependency-track/files/14419758/docker-compose_dependencytrack.txt)

At the same time the command
`curl --url 'smtps://smtp.gmail.com:465' --ssl-reqd --mail-from "'$user'" --mail-rcpt myemail@mydomain.my --user $user:$passwd -T <(echo -e "'From: $user\nTo: myuser\nSubject: mysub \n\nmy_email_body'")`
It works correctly and the letter goes out to the specified addressee myemail@mydomain.my
I also tried various combinations of “Enable SSL/TLS encryption” and “Trust the certificate provided by the SMTP server”, the result was negative.

### Steps to Reproduce

1. I launch dependencytrack as a docker swarm stack with an attached compose file
2. Fill in Home\Administration\Configuration\Email
3. I try to send a Configuration test, but nothing happens
4. I receive a log in the attached file in the dtrack_dtrack-apiserver service log

### Expected Behavior

I am expecting to receive a test letter to the e-mail address I specified.

### Dependency-Track Version

4.7.x

### Dependency-Track Distribution

Container Image

### Database Server

N/A

### Database Server Version

_No response_

### Browser

Google Chrome

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.