Hi, basically either no SMTP mail server running locally or it is not listening on port 25. For the later, you can check by running the following command
netstat -ntpla | grep 25 - this will return if anything is listening on port 25
if it is the first case then You would need an SMTP server connection on the localhost to resolve your issue. Please try to make that connection and tell me if it worked cheers!