If you don't have any mail server installed on your machine, you need to install a local mail server such as Postfix. On a Debian/Ubuntu system, this can be installed with default settings using apt-get, as shown in the following command:
$ sudo apt-get install postfix