adding support for mailcatcher to the VM so we can test email sending

I realise others were already looking at this but I wonder if this is what we need (with thanks to Kevin who wrote most of this!)