Question: According to the Python documentation, the "profile" module is part of the standard library.

But I can't find it. 

On my home machine, I was able to add it using apt-get install. (ie. it's split out into a separate ubuntu package.)

On my work machine, (also ubuntu) I'm running in a virtualenv, so apt-get install isn't relevant. I can install python modules from pypi using easy-install, but I can't see anything on pypi which corresponds to the profiling module. (Presumably because it's meant to be part of the standard python install.)

So how can I install it in this environment?

Answer: 
Personally I prefer Exim, the below steps will get a system up and going for outgoing mail only.

* Make sure the hostname is setup correctly
* Install `apt-get install exim4 exim4-daemon-light`
* At the configuration step answer the questions this way
	+ Type of mail configuration: Internet site
	+ System name: the fqdn for your server
	+ IP-Address to listen on: 127.0.0.1 (with this address incoming mail is not possible)
	+ Other destinations which is accepted: empty
	+ Domains to relay for: empty
	+ machines to relay for: empty
	+ Keep DNS minimal: yes
	+ Delivery method for local mail: Maildir
	+ Yes Split configs

Once exim is already configured you can run though this setup again by using the command `dpkg-reconfigure exim4-config`

You might want to consider choosing to use the **Smarthost** options during the above setup and direct your mail through an already established SMTP server that will relay for you. The other server will have probably already handled getting the DNS records setup correctly.
You need to setup your system as a mail server. Have a look at the following documentation: <https://help.ubuntu.com/community/MailServer>