View source for Cannot get SMTP mail to work

I want to use SMTP mail on a Linux Ubuntu machine. Can someone please help me with getting this set up?

Also, it is not clear to me how to get changes to the config.php file to propigate to the MySQL wacko_config table. 

Also, do I make changes to the config.php or the config_defaults.php file?