LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-01-2011, 12:20 PM   #1
swatnio
LQ Newbie
 
Registered: Jan 2009
Distribution: slackware
Posts: 14

Rep: Reputation: 0
Question i cannot send mails to "localhost"


the solution at the end

Hello everybody!

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
mail
and i've got no new mail..
y tried
mail root@localhost
mail root@slackware #slackware is how my machine is called (`hostname` told me :P)
mail root@127.0.0.1
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)
Code:
$ sendmail -q -v
WARNING: local host name (slackware) is not qualified; see cf/README: WHO AM I?

Running /var/spool/mqueue/p61FPoll003674 (sequence 1 of 1)
slackware: Name server timeout
<root@slackware>... Transient parse error -- message queued for future delivery
slackware: Name server timeout
slackware: Name server timeout
<root@slackware>... Transient parse error -- message queued for future delivery
slackware is at my /etc/hosts (to 127.0.0.1)

any idea?

Thanks

THIS WAS THE SOLUTION
I put in my /etc/hosts file this:

Code:
127.0.0.1        slackware.localhost        slackware
Thanks Irtward for the reply!

Last edited by swatnio; 07-01-2011 at 06:39 PM. Reason: I write the soluttion
 
Old 07-01-2011, 01:21 PM   #2
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
A couple of things:
  1. It looks like you have your hostname set to be "slackware" and you need an FQDN, like "slackware.mydomain.com".
  2. You have 127.0.0.1 assigned to "slackware" and you need a FQDN plus localhost definitions. Something like:
    Code:
    127.0.0.1               localhost.localdomain localhost
    127.0.0.1               slackware.mydomain.com slackware
 
1 members found this post helpful.
Old 07-01-2011, 04:53 PM   #3
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
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."

Lyle.
 
Old 07-01-2011, 06:35 PM   #4
swatnio
LQ Newbie
 
Registered: Jan 2009
Distribution: slackware
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lrtward View Post
A couple of things:
  1. It looks like you have your hostname set to be "slackware" and you need an FQDN, like "slackware.mydomain.com".
  2. You have 127.0.0.1 assigned to "slackware" and you need a FQDN plus localhost definitions. Something like:
    Code:
    127.0.0.1               localhost.localdomain localhost
    127.0.0.1               slackware.mydomain.com slackware
Hi! Thanks! that solved the problem, i put

127.0.0.1 slackware.localhost slackware

in my /etc/hosts file and now it works

Quote:
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."

Lyle.
Yes I have it, and sendmail is configured to use procmail , at /usr/share/sendmail/cf/cf, Patrik left some configurations files to use


Thanks again both!

See you
 
  


Reply

Tags
mail, sendmail, smtp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
on url "http://localhost/" error ""The requested URL could not be retrieved " renuaseri Linux - Newbie 1 04-07-2009 01:23 AM
My "expect" script is not working... Won't "send" commands... edomingox Programming 4 04-02-2009 04:25 PM
unable to send mails via KMail: "no worthy mechs" hbruhn Linux - Networking 5 12-24-2006 08:56 PM
" Not Able send mails to the servers with TLS security feature trinath Linux - Security 2 08-28-2004 04:39 PM
" Not able to send mails with TLS security " trinath Fedora 0 08-16-2004 02:34 AM


All times are GMT -5. The time now is 07:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration