Setting up mail on an RPi to an SMTP host

Here a short description how I set up my RPi to send mail, usually sent to the users mbox to an SMTP server.