PostgreSQL, version 8.4 or higher.
An already configured Mail Submission Agent (MSA)
or better, a Mail Transfer Agent (MTA)
able to send outgoing mail by way of a local command. Popular MTAs are
Wikipedia's article on MSA
Wikipedia's article on MTA