LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2003, 05:28 AM   #1
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
mail


Hi,
Can anyone tell me the difference between sendmail and local mail? are they both used. Is sendmail used for local mail.
I have a Linux box with the sendmail service disabled and can still send local mail. In /var/log/maillog I get
Mar 10 09:53:52 <host> sendmail [12345]: <details>

On another standalone system the local mails do not work. In the maillog for this system I get in <details> "connection refused from localhost.localdomain", I get this for every mail I send. Thats why I've ended up here. any suggestions where to loook or better still anyone know why this does not work.
Regards, Neil.
 
Old 03-10-2003, 03:17 PM   #2
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Original Poster
Rep: Reputation: 15
Well i got home and checked. I see that 16 people have read this probably 6 of them me.

Anyway, I checked the test mails I sent and they are all there. I also got a mail from the mailer Daemon sayng that it could not send the messages due to a timeout. Something to do with name resolution.

"The original message was received at Sun, 9 Mar 2003 10:29:06 GMT
from root@localhost

----- Transcript of session follows -----
451 127.0.0.1: Name server timeout
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old

--h2AHndms001138.1047318581/zen.localhost"

There see name server timeout.

so how do I stop that?

my hosts file seems fine; nsswitch.conf says to check local files first.

Now I do have a file called /etc/resolv.conf but it is empty.
So my question is do I need anything in there. It gets populated with my isp nameservers when I dial up. So can I put anything in there to fix this or is it something else?
Help.
Regards
 
Old 03-18-2003, 02:37 AM   #3
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Original Poster
Rep: Reputation: 15
I had the same problem on another machine. I fixed this by alteringing the line in the hosts file
to
x.x.x.x snoopy.localdomain snoopy
from
x.x.x.x snoopy

I also removed all entries the resolv.conf file.

And now the mail works immediately. I guess its not trying to use DNS to resolve the hostname.
So thats the name resolution problem solved, but what about my other machine that refuses the connection? all firewall rules were turned off with iptables -F.

So any ideas why this is happening?

Last edited by neil; 03-18-2003 at 02:40 AM.
 
  


Reply



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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration