Closed jarischaefer closed 4 years ago
@hmajidy2001 how are you accessing the SMTP server? Is it an external connection (e.g. mail.example.com), a linked container (e.g. --link mailserver:mail-backend
) or perhaps a docker network?
The first thing you could try is pinging the mail server's IP address (if your firewall permits) from inside the container (e.g. docker run --rm jarischaefer/docker-librenms ping example.com
).
I am having this same issue getting SMTP to work with docker librenms. The UI gives "Test to mail failed SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" when I test transport. Log file mail.log is not written to and neither are any of the files in ./logs/ with mail failure details.
I have been working on this for several days now. Alerting in previous install without docker worked fine. Any help greatly appreciated.
Originally posted by @hmajidy2001 in https://github.com/jarischaefer/docker-librenms/issues/31#issuecomment-504237865