Thunderbird smtp will not connect

When I want to send a message using SMTP there is a error message ‘relaying mot allowed’. Some yeas ago I had the same problem and it was caused by SMTP being treated as a virus. There was a simple solution, but I forget what it is. Please help?

Try changing your port settings to 587 — or 2525 At the moment it should be 25