Raspberry Pi Configurate steps:

1. Open ClawsMail

2. Edit your info (if you didn't used it before it comes up with this)

3. Imap Settings

4. Smtp Settings

5. Accept SSL

6. Go to preferences and click on current account

7. Change the port settings else it wont work

And you are done