Eero Volotinen wrote:
Nelson Gonzaga wrote:
Hi there, I trying to send e-mail using this:
mail -s "maillog" ngonzaga@yahoo.com mailto:ngonzaga@yahoo.com < /var/log/maillog
but sendmail refused and I don't know why, see my maillog:
Nov 19 14:31:33 servertdoc sendmail[11258]: nAJGVXXi011258: from=root, size=353085, class=0, nrcpts=1, msgid=200911191631.nAJGVXXi011258@servertdoc.toshiba.fmg, relay=root@localhost
Nov 19 14:31:33 servertdoc sendmail[11258]: nAJGVXXi011258: to=ngonzaga@yahoo.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=383085, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
There is some wrong setup, what can be?
Yes, you need to setup smarthost correctly and start sendmail ..
I recently solved this one using a small program named "email", available at http://www.cleancode.org/projects/email