Is my fetchmail prob. a sendmail prob.?

Is my fetchmail prob. a sendmail prob.?

Post by wcrows.. » Sun, 31 Dec 1899 09:00:00



 Is this a sendmail problem????

For some time now, I have be having problems getting mail from
my pop accounts using fetchmail.  Here's what I get when I try to
use fetchmail in my linux account named wcrowshaw, retrieving mail from
a pop account name wcrowshaw:

fetchmail: 5.0.3 querying mail.ic.edu (protocol POP3) at Fri, 13 Aug
1999
 18:08:55 -0400 (EDT)
fetchmail: POP3< +OK QPOP (version 2.5) at bartman starting.
fetchmail: POP3> USER wcrowshaw

fetchmail: POP3< +OK Password required for wcrowshaw.
fetchmail: POP3> PASS *

fetchmail: POP3< +OK wcrowshaw has 3 messages (2453 octets).
fetchmail: POP3> STAT
fetchmail: POP3< +OK 3 2453
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0 is the last read message.
3 messages for wcrowshaw at mail.ic.edu (2453 octets).
fetchmail: POP3> LIST

fetchmail: POP3< +OK 3 messages (2453 octets)
fetchmail: POP3< 1 817
fetchmail: POP3< 2 822
fetchmail: POP3< 3 814
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 817 octets
reading message 1 of 3 (817 octets)
fetchmail: timeout after 0 seconds waiting for listener to respond.
fetchmail: Query status=7
fetchmail: normal termination, status 7

I'm getting closer to solving the problem.  I don't think fetchmail
is the culprit but sendmail.  I think this is indicated by the line
that says "waiting for listener to respond."  I think the listener
it is talking about here is sendmail.

Here's my reasoning.
1) In fetchmail's man pages, it says that fetchmail retrieves the
 messages, and then forwards them for distribution to my machine
 Mail Delivery agent (MDA) which is usually sendmail.

2)In a faq provided with fetchmail's docs,it addresses the problem
 that I am having: fetchmail appears to work fine, but the mail never
 shows up. If this happens it says, "you may not be connecting to
 the SMTP listener."  It continues "Fetchmail itself is probably
 working, but your SMTP port 25 listener is down or inaccessible."
 It says, "The first thing to check is if you can telnet to port 25
 on your smtp host (which is normally 'localhost' unless you've
 specified an smtp option in your .fetchmailrc or on the command
 line) and get a greeting line from the listener.  If the SMTP host
 is inaccessible or the listener is down, fix that first."

Now here is my interpretation of this.  I telneted to the remote
machine's SMTP listener with "telnet mail.ic.edu 25."  I got the
greeting message from the sendmail from that machine.  O.k. that is
working.

But since it says to try "your smtp host (which is normally
 'localhost'..."I thought maybe this means my own smtp host,
 on my machine, perhaps my sendmail.  So I tried "telnet localhost
 25."  I get this message:

"Trying 127.0.0.1...
telnet: Unable to connect to remote host: Network is unreachable"

In other words, I get no greeting message from sendmail.  My
listener is down.  If this interpretation of the faq and this
interpretation of the telnet responses is correct, then my problem
with retrieving e-mail from my pop accounts lies with sendmail.

So now I think I need to fix sendmail to retrieve my e-mail
address. But I don't know where to begin. I know that my system
uses sendmail, and I know that sendmail is up and running, because
ps -e shows it's process running.

If you're still with me this far, is my fetchmail problem a sendmail
problem?  If so, how do I fix it?  What setting in linuxconf should I
fix?

--
w. crowshaw

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Is my fetchmail prob. a sendmail prob.?

Post by Dirk Heinrich » Sun, 31 Dec 1899 09:00:00



>  Is this a sendmail problem????
[...]
> But since it says to try "your smtp host (which is normally
>  'localhost'..."I thought maybe this means my own smtp host,
>  on my machine, perhaps my sendmail.  So I tried "telnet localhost
>  25."  I get this message:
> "Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Network is unreachable"

Can you "telnet localhost" (on the default port) and login?
If not (I expect youll get the same message as above), then
your loopback device is not configured correctly.

Quote:> In other words, I get no greeting message from sendmail.  My
> listener is down.  If this interpretation of the faq and this
> interpretation of the telnet responses is correct, then my problem
> with retrieving e-mail from my pop accounts lies with sendmail.

You cant even reach your machine. sendmail never remarks that you are
trying to connect. Configure your loopback device and it should work.

Bye...

        Dirk

 
 
 

Is my fetchmail prob. a sendmail prob.?

Post by wcrows.. » Sun, 31 Dec 1899 09:00:00





> > "Trying 127.0.0.1...
> > telnet: Unable to connect to remote host: Network is unreachable"

> Can you "telnet localhost" (on the default port) and login?
> If not (I expect youll get the same message as above), then
> your loopback device is not configured correctly.

> You cant even reach your machine. sendmail never remarks that you are
> trying to connect. Configure your loopback device and it should work.

> Bye...

>    Dirk

Thanks Dirk,

I think that you are right about the loopback configuration. So how to
do I go about correcting it?

--
w. crowshaw

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Is my fetchmail prob. a sendmail prob.?

Post by Dirk Heinrich » Sun, 31 Dec 1899 09:00:00



> I think that you are right about the loopback configuration. So how to
> do I go about correcting it?

Hmm. Normally this is done automagically at installation time, never had
to do it on my own.

First check your kernel config wether or not loopback device is
supportet and compile a new kernel if needed.
Then check /etc/sysconfig/network-scripts/ifcfg-lo0(?) for correct
settings. I could send you mine when Im back home.

Bye...

        Dirk

 
 
 

Is my fetchmail prob. a sendmail prob.?

Post by jlee.. » Sun, 31 Dec 1899 09:00:00


Could you post the info instead? I have the same
problem, and others might, too.

Thanks very much!

Joongul Lee




> > I think that you are right about the loopback

configuration. So how to
Quote:> > do I go about correcting it?

> Hmm. Normally this is done automagically at

installation time, never had
Quote:> to do it on my own.

> First check your kernel config wether or not
loopback device is
> supportet and compile a new kernel if needed.
> Then check

/etc/sysconfig/network-scripts/ifcfg-lo0(?) for
correct

Quote:> settings. I could send you mine when Im back
home.

> Bye...

>    Dirk

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
 
 
 

Is my fetchmail prob. a sendmail prob.?

Post by wcrows.. » Sun, 31 Dec 1899 09:00:00




> Could you post the info instead? I have the same
> problem, and others might, too.

> Thanks very much!

> Joongul Lee




> > > I think that you are right about the loopback
> configuration. So how to
> > > do I go about correcting it?

> > Hmm. Normally this is done automagically at
> installation time, never had
> > to do it on my own.

> > First check your kernel config wether or not
> loopback device is
> > supportet and compile a new kernel if needed.
> > Then check
> /etc/sysconfig/network-scripts/ifcfg-lo0(?) for
> correct
> > settings. I could send you mine when Im back
> home.

> > Bye...

> >       Dirk

> Sent via Deja.com http://www.veryComputer.com/
> Share what you know. Learn what you don't.

I solved the problem. This is how I did it.  I first install R5 on a
second hard drive using the redhat installer instead of the xinstaller.
I booted this system up and found that the lo interface was up and that
sendmail was running o.k.  So then I started to compare my two linux
systems to figure out what was the difference between the two.

It turns out that I probably installed with the problem when I used the
xinstaller.  Or I didn't*it up myself.  I have always had long
standing problems with the networking of R5 that the xinstaller
installed.  On first boot, months ago, I noticed that there was no
/etc/hosts file and the etc/HOSTNAME file was empty.   Well, the
etc/hosts file is the most important for bringing up the loopback
interface that, in turn will allow you to run both sendmail and
fetchmail correctly.

Well, i looked at the linux that I installed with the redhat installer,
and found that these files were there.  So I created them exactly as
follows.  For etc/HOSTNAME, I put in the line: localhost.localdomain.
In the file /etc/hosts, I put in the following line for the loopback
interface: 127.0.0.1 localhost localhost.localdomain

Now, there was one piece missing.  Ever since I installed R5 a couple
months ago, I always got the complaint that the file
/etc/sysconfig/network file was missing.  The presence or abscence of
this file acts as a trigger in many of the rc init scripts.  So I looked
at this file on the R5 that I installed with the redhat installer.  It
was there.  I copied the information from it, created a file
/etc/sysconfig/network, and placed the information I copied within.
It simply contains the lines:
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=localhost.localdomain

I booted up linux on my original harddrive with the xinstaller
installed, and I have fixed my problems.  First, the loopback interface
now works (lo).  This allows sendmail to actually be able to deliver
mail on the localhost.  This in turns allows for fetchmail to transport
the mail to sendmail for delivery.

Fixing the loopback interface, I think will solve many problems I have
been having. Many application depend on this interface for whatever
reason.  I think it has even fixed gnome-ppp, when all I could use
before was ezppp.

I hope this information helps somebody.  It has taken me many HOURS to
sort this problem out, and I hope somebody could be spared this trouble.

--
w. crowshaw

Sent via Deja.com http://www.veryComputer.com/
Share what you know. Learn what you don't.

 
 
 

1. XDM/X no '@' sign, sendmail daemon probs, v1.1.45 probs

Well, I have two problems, totally unrelated, that I desperately need
help for (and a third, now that I think of it).

First and most important: Sendmail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Slackware 2.0.1 and using the sendmail that came with it to do
mail-hub duties, sendmail hangs when running as a daemon.  We don't
have any problems with it running from 'inetd,' but we'd obviously
like to get away from doing that.

Symptoms:

Sendmail will pick up if one telnet's to the smtp socket on the
subject machine.  Usually (but not always), it will print the banner.
The first few times, it will even respond to a 'help' command, a 'mail
to:' command, whatever.  After that, it just stops responding.  We put
it in 'inetd.conf' to get mail running, and we've got our
'sendmail.cf' file working the way we want it, but we'd really like to
run it as a daemon.  Any clues?

Second and also important: X from XDM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When I set things up (using the default entries in the 'inittab' file)
to start XDM on boot, all goes well, EXCEPT:
When I start an X-term in my session (either as root or myself, if it
matters), most things work as one would expect.  One glaring ommission

before it can even be written into the .bash_history file.  Makes it

When I run X using startx from a console session, everything works
fine.  HELP!

Third and much less important: kernel 1.1.45 with ytalk and pppd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I built a 1.1.45 kernel (so I could play X-Doom!) and it mostly works
fine, but there are a couple of things I'm having trouble with.
First, 'pppd' seems to be broken.  I went to all this trouble to get
ppp-on and ppp-off scripts working, and now they won't do much of
anything.  *grumble*

Furthermore, when I'm dip/slip'ed in, and try ytalk, it breaks after
only a few characters.  I 'suspect' that these two are related.  I
haven't found any other problems, but then, I've only had that kernel
for 18 hours, and I wasted six of them sleeping.

Any help gratefully (and I hope graciously) accepted.
--
)\,__,/(     __ \    _ \    __ \    _ \    _ \  o David Negaard

 \(~~)/    __/    \___/  _/      \__ /  \___/   o 700 College Avenue

--
)\,__,/(     __ \    _ \    __ \    _ \    _ \  o David Negaard

 \(~~)/    __/    \___/  _/      \__ /  \___/   o 700 College Avenue

2. NAT

3. Sound card probs, modem probs. Help im cut off!!!!

4. Q: installing X-Windows onto the second hard drive?

5. Display Prob (is it a font prob or not?)

6. How Can I Troubleshoot Memory Problems

7. minicom probs, & repititive config probs

8. redirect entire dir and subdir using .htaccess

9. fetchmail probs?

10. mouse prob, MG-mboadr HW prob

11. Solaris 2.6 Fixes year 2K probs; does Linux suffer the same probs

12. Fetchmail Prob with t-online mail