SmtpCommandException when sending mails

Hello everyone,

we get the error "[MailKit.Net.Smtp.SmtpCommandException] <SMTP relay>".

SMTPAccount and SMTPPassword parameters are disabled as the SMTP server accepts anonymous authentication. Also, the parameter TransportSecurity is set to none because the server has SMTP Start TLS = FALSE.

We tried setting TransportSecurity to auto, and to use SMTPUseDefaultCredentials, but with each configuration we get the same error. 

What do you think is the problem?
Thank you,
Lucrezia