Using Postfix to send out emails from development environment in Rails

Problem

You want to be able to send emails from your development enironment using Postfix in your (K)Ubuntu pc.

Solution

First you would need to install postfix:

and then you would need to change an option in postfix to not use tls, so change /etc/postfix/main.cf:

and change the smtpd_use_tls from yes to no:

restart your postfix server:

and then setup your config/development.rb as follows: