STMP returns unknown authority error?

Viewed 190

When I tested the functionality of my company's smtp server on a Linux terminal, I had no problem sending an email to someone (with or without TLS, both port 25 and 587), but no email can be sent from the Answer server.

I have tried all configuration options (TLS on/off, port 25, 587, with authority or without authority (encrypted Base64 which was successful for sending on the terminal test).

During these failures, I see an ERROR message that says sending email to [email protected] failed: x509: certificate signed by unknown authority.

How can I resolve this situation?

1 Answers

should I add environment variable using export command, or any other method?

I have tried command line parameter sudo ./answer run -C ./answer-data/ -e SKIP_SMTP_TLS_VERIFY=true and, tried to add environment variable export SKIP_SMTP_TLS_VERIFY=true both do not work.

The system is Ubuntu 20, and I am not using Docker, but using Binary.

The following also failed. SKIP_SMTP_TLS_VERIFY=true sudo ./answer run -C ./answer-data/

Sorry, I thought you were using docker. Maybe you can try to install the ca-certificates. sudo apt-get install ca-certificates -y