Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Minor
Mailhog is a tool that can be used when testing sending emails with the Smart ID components Digital Access and component Identity Manager.
Useful commands
Code Block title Start mailhog <SMARTIDHOME>/tools/mailhog/docker-compose up -d
Code Block title Stop mailhog <SMARTIDHOME>/tools/mailhog/docker-compose stop
Code Block title Mailhog logs <SMARTIDHOME>/tools/mailhog/docker-compose logs -f
Change mailhog ports
Edit <SMARTIDHOME>/tools/mailhog/docker-compose.yml and change the ports to the left of the colons. Restart the container to apply the changes
Code Block title Change ports ports: - 1025:1025 # smtp server - 8025:8025 # web ui
Configure your Smart ID component with the following settings if mailhog is deployed to the same host as the component. If mailhog is deployed to another host, replace the SMTP host with the hostname/ip address, and make sure that the Smart ID host can access mailhog on port 1025.
Code Block linenumbers true SMTP Host: mailhog SMTP Port: 1025 Sender: test@example.com
Expand title Example for Identity Manager - Log in to Identity Manager Operator.
- Go to the Admin page.
- Click Configure system properties.
- Click SMPT Settings.
- Enter port number 1025.
Access the web interface to see emails. Browse to the host where mailhog is deployed on port 8025.
Code Block title Access emails http://SMARTID-HOST>:8025
This article is valid for Smart ID 21.04 and later.