tjyang
(T J Yang)
August 29, 2018, 6:26pm
1
I am using postfix client on fedora28 test machine. And I am able to send out test email using sendmail command line.
I made the change like following in bwdata/env/global.override.env and docker-compose restart the bw server.
[root@fedora01t env]# rcsdiff ./global.override.env
===================================================================
RCS file: ./RCS/global.override.env,v
retrieving revision 1.1
diff -r1.1 ./global.override.env
20c20
< globalSettings__mail__smtp__host=REPLACE
---
> globalSettings__mail__smtp__host=localhost
[root@fedora01t env]#
But I am not able to send test email, which BW log file I should look at for tracing the issue ?
You can look in the bwdata/logs/api directory. Something to note, localhost
is not going to resolve to the host machine. localhost
from within a container is the container itself.
tjyang
(T J Yang)
September 14, 2018, 9:15pm
3
Just to close out this thread.
I switched to use BW’s direct connection to an internal mail relay server.
opened 04:40PM - 28 Dec 17 UTC
closed 01:02PM - 29 Mar 18 UTC
Hi,
everytime I'll send the verification mail the log shows the following err… or:
>
> 2017-12-28 16:32:49.468 +00:00 [Error] Mail send failed.
> System.Net.Mail.SmtpException: Failure sending mail. ---> System.Security.Authentication.AuthenticationException: **The remote certificate is invalid according to the validation procedure.**
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
> at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
> at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
> at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest)
> --- End of stack trace from previous location where exception was thrown ---
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
> at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
> at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
> at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
> at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.TlsStreamAuthenticateCallback(IAsyncResult result)
> --- End of stack trace from previous location where exception was thrown ---
> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
> at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
> at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
> at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
> --- End of inner exception stack trace ---
What should I do to send the mail with ssl?
The configuration for the mailserver is:
> globalSettings__mail__smtp__ssl=true
> globalSettings__mail__smtp__port=465
> globalSettings__mail__smtp__useDefaultCredentials=false