I don't have a local SMTP server installed, but I heard sendmail command can do the favour for me, but seems I encountered a problem...

/usr/lib/sendmail -v foo@example.com  < /etc/hosts
foo@example.com... Connecting to [127.0.0.1] via relay...
foo@example.com... Deferred: Connection refused by [127.0.0.1]
link|improve this question

50% accept rate
feedback

3 Answers

up vote 0 down vote accepted

Take a look at this guide.

Configure sendmail for SMTP relay

link|improve this answer
feedback

try to configure sendmail to forward mails to your ISP's smtp server. Or install an smtp to your machine :>

link|improve this answer
feedback

You could install nullmailer. It provides most of the sendmail parameters. It needs a second mailserver to relay the e-mails. The configuration ist very easy

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.