i cannot send mails to "localhost"
the solution at the end
I am trying this with Slackware 12.0.
I am trying to send mails to a user on my own machine... for example
$ mail root #root or other user, it's the same
(write subject and body)
and it looks like the mail has been sent, by then I write
and i've got no new mail..
mail root@slackware #slackware is how my machine is called (`hostname` told me :P)
and none of them worked...
so, the first question is... what am i doing wrong? i thought i could send mails that way..
after hours trying to solve this, i thought i needed an smtp sever... so i started up sendmail :)
but using mail didn't worked... i connected with netcat to port 25 and sendmail answered.. I send a mail with netcat, and sendmail said it was all ok.. but i didn't recived anything...
then i realized that the mails where in queue... /var/spool/mqueue
here is what sendmail tells me (i remove all the mails in mqueue and i only post 1 here)
THIS WAS THE SOLUTION
I put in my /etc/hosts file this:
A couple of things:
Do you have procmail installed?
I'm not sure about slackware 12.0, but for more recent versions, "Procmail is required by sendmail to deliver the local mail."
127.0.0.1 slackware.localhost slackware
in my /etc/hosts file and now it works :)
Thanks again both!
|All times are GMT -5. The time now is 10:29 AM.|