msmtp client giving error : network read error:the operation timed out
I am using msmtp client and getting below error in msmtp logs while sending email :
errormsg='network read error: the operation timed out' exitcode=EX_IOERR
I get this failure when authentication is enabled . When authentication is
not enabled , I do not get this error and emails are sent successfully
which tells me that there is no network problem.
Any clue would be appreciated.
Below is the config file I am using in case of failure :