Skip to contentSkip to conversation

fetchmail and smtp problem (was tuning iptables)

DISCUSSION Haines Brown 3 participants 15 messages Dec 10, 2002 – Dec 13, 2002

lore
Share & tools
lore
#0 lore raw

On a RH8.0 installation I've been trying to get going since October, one problem has been that I can't receive e-mail. The first problem was a broken rp-pppoe. When that fixed, I could at least browse the web. Next I faced messed up rules for iptables, but I've removed the firewall. Since the problem persists, I'm led to fetchmail and smtp.

The fetchmail log suggests that I've got ip at least, for it is able to download the number and size of messages waiting on the mail server. However, when it tries to download the first message, it can't do it. Apparently fetchmail can't open a connection to the smtp server on my machine. Here's snippet from fetchmail's log at the point it fails:

Quoted 6 lines

...
fetchmail: POP3< +OK 3778 octets
reading message 1 of 22 (3778 octets)
About to rewrite Return-Path: <[email protected]> Rewritten version is Return-Path: <[email protected]>
...

When at first fetchmail did not seem to write its log, which raised the question of permissions and UID. However, it seems to work now. Undoubtedly my error at some point.

The question is, what sockets are listening? I don't know how to interpret the following, but it does not look all that different from my current machine, which is functional.

# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:32768                 *:*                     LISTEN      
tcp        0      0 *:printer               *:*                     LISTEN      
tcp        0      0 *:sunrpc                *:*                     LISTEN      
tcp        0      0 *:x11                   *:*                     LISTEN      
tcp        0      0 127.0.0.1:8118          *:*                     LISTEN      
tcp        0      0 *:ssh                   *:*                     LISTEN      
tcp        0      0 127.0.0.1:smtp          *:*                     LISTEN      
udp        0      0 *:32768                 *:*                                 
udp        0      0 *:sunrpc                *:*                                 
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     1847
      /tmp/.iroha_unix/IROHA

unix 2 [ ACC ] STREAM LISTENING 2325
/tmp/.esd/socket
unix 2 [ ACC ] STREAM LISTENING 2108

      /tmp/ssh-XX1O24lT/agent.1076 
unix  2      [ ACC ]     STREAM     LISTENING     2083   
      /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     1916   
      /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     2232  
       /tmp/.ICE-unix/1076
unix  2      [ ACC ]     STREAM     LISTENING     1571   
      /var/run/lprng
unix  2      [ ACC ]     STREAM     LISTENING     2129  
       /tmp/orbit-brownh/linc-446-0-54d253d5c0c8d
unix  2      [ ACC ]     STREAM     LISTENING     2137  
       /tmp/orbit-brownh/linc-434-0-1692b3b6d257d
unix  2      [ ACC ]     STREAM     LISTENING     2243  
       /tmp/orbit-brownh/linc-448-0-141f7b126e97c
unix  2      [ ACC ]     STREAM     LISTENING     2270   
      /tmp/orbit-brownh/linc-44d-0-24ce2e57dc8f6
unix  2      [ ACC ]     STREAM     LISTENING     2305   
      /tmp/orbit-brownh/linc-44a-0-19bc27591b9fc
unix  2      [ ACC ]     STREAM     LISTENING     2529   
      /tmp/orbit-brownh/linc-460-0-2d7ba098b88a
unix  2      [ ACC ]     STREAM     LISTENING     2535   
      /tmp/orbit-brownh/linc-464-0-433b03def5c8
unix  2      [ ACC ]     STREAM     LISTENING     2634   
      /tmp/orbit-brownh/linc-46b-0-59017d95c4a98
unix  2      [ ACC ]     STREAM     LISTENING     2674   
      /tmp/orbit-brownh/linc-46e-0-3df7182d8cfc3
unix  2      [ ACC ]     STREAM     LISTENING     2722   
      /tmp/orbit-brownh/linc-471-0-3df7182de5371
unix  2      [ ACC ]     STREAM     LISTENING     2751   
      /tmp/orbit-brownh/linc-473-0-1022b4e538916
unix  2      [ ACC ]     STREAM     LISTENING     2781   
      /tmp/orbit-brownh/linc-475-0-1022b4e575a77

Then, I looked at /etc/services:

        ...
	smtp		25/tcp		mail
	smtp		25/udp		mail

I looked at /etc/xinetd.conf:

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d

I looked in /etc/xinet.d/ at the servers and a services files:

	service services
	{
		type		= INTERNAL UNLISTED
		port		= 9098
		socket_type	= stream
		protocol	= tcp
		wait		= no
		disable		= yes
		only_from	= 127.0.0.1
	}                                                                              

	service servers
	{
		type		= INTERNAL UNLISTED
		port		= 9099
		socket_type	= stream
		protocol	= tcp
		wait		= no
		disable		= yes
		only_from	= 127.0.0.1
	}          

I looked at /etc/hosts. The hosts.allow and host.deny files are empty. However, the /etc/hosts file had a very strange error:

27.0.0.1 hartford-hwp.com localhost.localdomain localhost

However, changing the "27" to "127" did not fix anything.

With that exception, I did not see anything amiss in these files.

Haines Brown

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw

Haines,

I didn't catch the early posts on this topic but did see ray's about looking into sendmail and fetchmail config so here comes my "sendmail 101" class.

The netstat command is showing sendmail (smtp) listening on 127.0.0.1 (this is local to the machine, the loopback address.)
I normally change this in /etc/mail/sendmail.cf (i think thats the new location for RH8) The default line that controls this is:

        O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

I change the Addr to 0.0.0.0 so it listens on all ip addresses, note that this will allow incoming smtp traffic from anywhere which you may or may not want. You could use your firewall to stop any unwanted incoming smtp traffic and /etc/mail/access.

/etc/mail/access is the spam control and you'll need to put any ip addresses, or subnets that you want to allow access to relay (i.e. not local mail) mail through your machine. Say your machine is acting as your internal mail server and all outgoing mail goes through this machine then you need you internal lan specified in here as a RELAY type. As an example this allows relaying from my internal net (192.168.1.0) and a specific IP 1.2.3.4 plus the localhost:

# Check the /usr/share/doc/sendmail/README.cf file for a description # of the format of this file. (search for access_db in that file) # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc # package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
1.2.3.4 RELAY
192.168.1 RELAY

Once you changed the access file you need to rebuild the database file with "make access.db" or "make all" which will do all the databases in the directory (see /etc/mail/Makefile for all the files it knows about).

Another file to check is /etc/mail/local-host-names. This file holds all the domains your machine should accept mail for. i.e. local domains and aliases. As an example for a machine called mailserver in the mydomain.com domain:

        # local-host-names - include all aliases for your machine here.
        localhost
        localhost.localdomain
        mailserver
        mailserver.mydomain.com

After restarting sendmail you should be able to test sendmail manually by telnetting onto port 25 using the different ip addresses for your machine. If your Internal IP is 192.168.1.1 then do "telnet 192.168.1.1 25" and see if you get a response from sendmail. If you do then send a mail. The commands are in order:

HELO <somedomain.com>                   # where some domain can be anything as it will check you out
MAIL FROM: <[email protected]>     # who is sending the mail
RCPT TO: <[email protected]>    # the local users email address
DATA                                            # command to let sendmail know that this is the main data coming
                                                # you end this with a fullstop on a line by itself
QUIT

If all goes well then try doing it with your other ip addresses. If they work then try doing it with you domain names. If they all work then sendmail should be OK.

Fetchmail is a bit more specific to your ISPs mail server server and whether you are running in multi-drop mode or single user. You'll need to let us know what you are trying to achieve with fetchmail.

Quoted 28 lines · you

On a RH8.0 installation I've been trying to get going since October, one problem has been that I can't receive e-mail. The first problem was a broken rp-pppoe. When that fixed, I could at least browse the web. Next I faced messed up rules for iptables, but I've removed the firewall. Since the problem persists, I'm led to fetchmail and smtp.

The fetchmail log suggests that I've got ip at least, for it is able to download the number and size of messages waiting on the mail server. However, when it tries to download the first message, it can't do it. Apparently fetchmail can't open a connection to the smtp server on my machine. Here's snippet from fetchmail's log at the point it fails:

Quoted 6 lines

...
fetchmail: POP3< +OK 3778 octets
reading message 1 of 22 (3778 octets)
About to rewrite Return-Path: <[email protected]> Rewritten version is Return-Path: <[email protected]>
...

When at first fetchmail did not seem to write its log, which raised the question of permissions and UID. However, it seems to work now. Undoubtedly my error at some point.

The question is, what sockets are listening? I don't know how to interpret the following, but it does not look all that different from my current machine, which is functional.

Quoted 12 lines
# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:32768                 *:*                     LISTEN      
tcp        0      0 *:printer               *:*                     LISTEN      
tcp        0      0 *:sunrpc                *:*                     LISTEN      
tcp        0      0 *:x11                   *:*                     LISTEN      
tcp        0      0 127.0.0.1:8118          *:*                     LISTEN      
tcp        0      0 *:ssh                   *:*                     LISTEN      
tcp        0      0 127.0.0.1:smtp          *:*                     LISTEN      
udp        0      0 *:32768                 *:*                                 
udp        0      0 *:sunrpc                *:*                                 

--snip--

Quoted 10 lines

I looked at /etc/hosts. The hosts.allow and host.deny files are empty. However, the /etc/hosts file had a very strange error:

27.0.0.1 hartford-hwp.com localhost.localdomain localhost

However, changing the "27" to "127" did not fix anything.

With that exception, I did not see anything amiss in these files.

Haines Brown

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw

Here are some preliminary results on fetchmail.

------------------
When I originally ran netsat -l, I got:

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:smtp *:* LISTEN

But now for some reason it has changed to:
tcp 0 0 hartford-hwp.com:smtp *:* LISTEN

Whatever the reason for the change, I gather this means something is listing on the smtp port (25).

--------------------

Setting up /etc/mail/access. I have:

	localhost.localdomain		RELAY
	localhost			RELAY
	127.0.0.1			RELAY You suggest inserting

--------------------

I also checked /etc/mail/local-host-names. It is empty by default. You suggest entering "mailserver.mydomain.com", but since my machine has neither a static IP address nor hame, I was not sure what to do. I instead just put in my hostname (hartford-hwp.com), figuring it would do no harm.

        # local-host-names - include all aliases for your machine here.
        localhost
        localhost.localdomain
        hartford-hwp.com

--------------------

Next, I ran netstat -lp

      # netstat -lp
        tcp     0    0 *:smtp  *:*    LISTEN      856/sendmail: accep

Port 25 accepts messages from sendmail?

--------------------

I started a telnet session, but didn't log in. Will do that, too, if useful.

  # telnet localhost 25
  Trying 127.0.0.1...
  Connected to hartford-hwp.com (127.0.0.1).
  Escape character is '^]'.
  220 hartford-hwp.com ESMTP Sendmail 8.12.5/8.12.5; Tue, 10 Dec 2002 
	13:12:00 -0500

-------------------
I didn't know what might be useful from /etc/mail/sendmail.cf, but as I waited thinking about that, I saw that my fetchmail -k command actually carried through. It took about 20 seconds to start the first download. The next few messages took about 10 seconds each. Then a batch of about 8 downloaded normally (2-3 seconds for the batch), then slow again. Then fast again. The pattern was consistent for additional tries.

The first messages was an undeliverable notive from when I tried to send myself a test message almost a week ago:

[email protected]... Deferred: hartford-hwp.com.: Network is unreachable

After five days, it was deleted from queue. The batch of test messages I sent myself (also 127.0.0.1, also localhost.localdomain) fell into a black hole.

I don't know where to look for a fechmail log, but I ran fetchmail -v -v > /opt/tmp/-fetchmail.log. Because it was just one new message that (successfully) downloaded, I'll here venture to paste the entire log:

Oops. Left it on the wrong HD. Will have to retrieve it next time I boot the disk. But the message did not wave any red flags (but I may well not recognize one even if I saw it).

Haines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

Comments below, interspersed.

Quoted 5 lines · Haines Brown

Here are some preliminary results on fetchmail.

------------------
When I originally ran netsat -l, I got:

Quoted 7 lines

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:smtp *:* LISTEN

But now for some reason it has changed to:
tcp 0 0 hartford-hwp.com:smtp *:* LISTEN

This is *probably* a side effect of changing the entry in /etc/hosts . If you want to see it the old way, the command is probably "netstat -ln".

Quoted 2 lines

Whatever the reason for the change, I gather this means something is listing on the smtp port (25).

Right. But we already knew that from before.

Quoted 20 lines

--------------------

Setting up /etc/mail/access. I have:

        localhost.localdomain           RELAY
        localhost                       RELAY
        127.0.0.1                       RELAY You suggest inserting

--------------------

I also checked /etc/mail/local-host-names. It is empty by default. You suggest entering "mailserver.mydomain.com", but since my machine has neither a static IP address nor hame, I was not sure what to do. I instead just put in my hostname (hartford-hwp.com), figuring it would do no harm.

        # local-host-names - include all aliases for your machine here.
        localhost
        localhost.localdomain
        hartford-hwp.com
Quoted 8 lines

--------------------

Next, I ran netstat -lp

      # netstat -lp
        tcp     0    0 *:smtp  *:*    LISTEN      856/sendmail: accep

Port 25 accepts messages from sendmail?

No. sendmail is the name of the program that is LISTENing on port 25. That part is good. And now it is listening on all IP addresses, not just localhost (that's why you have *:smtp instead of 127.0.0.1:smtp, as you did earlier).

Quoted 4 lines

--------------------

I started a telnet session, but didn't log in. Will do that, too, if useful.

When you telnet to a port other than the telnetd port, the concept of "logging in" does not carry over. See below for more.

Quoted 6 lines
  # telnet localhost 25
  Trying 127.0.0.1...
  Connected to hartford-hwp.com (127.0.0.1).
  Escape character is '^]'.
  220 hartford-hwp.com ESMTP Sendmail 8.12.5/8.12.5; Tue, 10 Dec 2002
        13:12:00 -0500

This is good; sendmail does respond on this address/port. You might see if it also responds to an attempt to deliver a message. Try entering this sequence of commands (until you get an error response; then tell us what it is):

HELO localhost
MAIL from: haines@localhost
RCPT to: [email protected]
DATA
(any text, follow the instructions for ending) QUIT

If all of this works (assuming [email protected] is a vaild e-mail address for this machine; if not, pick one that is), then the smtp side of things is working and you need to concentrate on your fetchmail settings.

Quoted 9 lines

-------------------
I didn't know what might be useful from /etc/mail/sendmail.cf, but as I waited thinking about that, I saw that my fetchmail -k command actually carried through. It took about 20 seconds to start the first download. The next few messages took about 10 seconds each. Then a batch of about 8 downloaded normally (2-3 seconds for the batch), then slow again. Then fast again. The pattern was consistent for additional tries.

Quoted 5 lines

The first messages was an undeliverable notive from when I tried to send myself a test message almost a week ago:

[email protected]... Deferred: hartford-hwp.com.: Network is
unreachable

This is not enough information to interpret. Who (what host) generated the "Network is unreachable" message? Your Linux box or the ISP's mail server? I'm guessing the second, and to interpret that, I need to know what else it said (since from here hartford-hwp.com is perfectly reachable).

Quoted 7 lines

After five days, it was deleted from queue. The batch of test messages I sent myself (also 127.0.0.1, also localhost.localdomain) fell into a black hole.

I don't know where to look for a fechmail log, but I ran fetchmail -v -v > /opt/tmp/-fetchmail.log. Because it was just one new message that (successfully) downloaded, I'll here venture to paste the entire log:

Now I'm confused again. Above, you talked about fetchmail downloading a dozen or so messages, but here you say "it was just one new message". Please be more clear.

Quoted 3 lines

Oops. Left it on the wrong HD. Will have to retrieve it next time I boot the disk. But the message did not wave any red flags (but I may well not recognize one even if I saw it).

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw

Ray,

Quoted 5 lines

The first messages was an undeliverable notive from when I tried to send myself a test message almost a week ago:

[email protected]... Deferred: hartford-hwp.com.: Network is
unreachable

Hard to say at this point. The message should have been deliverable to my current (RH7.3 machine) if it went out at all. Can't recall what send the error message.

Here is the result of my telnet experiment:

# telnet localhost 25
Trying 127.0.0.1...
Connected to hartford-hwp.com (127.0.0.1).
Escape character is '^]'.
220 hartford-hwp.com ESMTP Sendmail 8.12.5/8.12.5; Tue, 10 Dec 2002 17:52:23 -0500
HELO localhost
250 hartford-hwp.com Hello hartford-hwp.com [127.0.0.1], pleased to meet you
MAIL from: haines@localhost
250 2.1.0 haines@localhost... Sender ok
RCPT to: [email protected]
250 2.1.5 [email protected]... Recipient ok
DATA A test
354 Enter mail, end with "." on a line by itself
QUIT
.
250 2.0.0 gBAMqNcp001528 Message accepted for delivery
^]
telnet> quit
Connection closed.

Haines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#5 lore raw

At 08:11 PM 12/10/02 -0500, Haines Brown wrote:
[...]

Quoted 13 lines

Here is the result of my telnet experiment:

# telnet localhost 25
Trying 127.0.0.1...
Connected to hartford-hwp.com (127.0.0.1).
Escape character is '^]'.
220 hartford-hwp.com ESMTP Sendmail 8.12.5/8.12.5; Tue, 10 Dec 2002 17:52:23 -0500
HELO localhost
250 hartford-hwp.com Hello hartford-hwp.com [127.0.0.1], pleased to meet you
MAIL from: haines@localhost
250 2.1.0 haines@localhost... Sender ok
RCPT to: [email protected]
250 2.1.5 [email protected]... Recipient ok
Quoted 8 lines
DATA A test
354 Enter mail, end with "." on a line by itself
QUIT
.
250 2.0.0 gBAMqNcp001528 Message accepted for delivery
^]
telnet> quit
Connection closed.

Good. This is s completely successful transmission of an smtp message. So sendmail itself is fine. If any problems remain with fetchmail downloads, the likely location for them is the fetchmail configuration ... which you haven't describes on the list yet (I don't think).

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#6 lore raw

Re: fetchmail and smtp problem

I ran fetchmail -V to get the version and other info, and there's little difference from what I've got with my current (RH7.3) system. The only difference is that on my current (RH7.3) system, old messages are flushed before retrieval, while on new system (RH8.0) --flush off.

================================================================

Here is a bounced message. It was rejected by my own mailserver:

returned message:

Date: Tue, 10 Dec 2002 17:42:16 -0500
From: Mail Delivery Subsystem <[email protected]>
To: [email protected]
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

----- The following addresses had permanent fatal errors -----
127.0.0.1

    (reason: 550 5.1.1 <[email protected]>... User unknown)
    (expanded from: 127.0.0.1)

----- Transcript of session follows -----
... while talking to hartford-hwp.com.:

Quoted 1 line
Quoted 1 line
Quoted 1 line

DATA

<<< 550 5.1.1 <[email protected]>... User unknown 550 5.1.1 127.0.0.1... User unknown

--gBAMgENo000872.1039560136/hartford-hwp.com
Content-Type: message/delivery-status

Reporting-MTA: dns; hartford-hwp.com
Arrival-Date: Tue, 10 Dec 2002 13:58:47 -0500

Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; hartford-hwp.com
Diagnostic-Code: SMTP; 550 5.1.1 <[email protected]>... User unknown
Last-Attempt-Date: Tue, 10 Dec 2002 17:42:16 -0500

--gBAMgENo000872.1039560136/hartford-hwp.com
Content-Type: message/rfc822

Return-Path: <brownh>
Received: (from brownh@localhost)

	by hartford-hwp.com (8.12.5/8.12.5/Submit) id gBAIwl3h003184;
	Tue, 10 Dec 2002 13:58:47 -0500

Date: Tue, 10 Dec 2002 13:58:47 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: 127.0.0.1
Subject: test from lo 10 dec 13:58
Reply-to: [email protected]
...

---

Something's messed up here with my identity. 127.0.0.1 is not a UID on my domain. I don't recall what "test from lo" means unless for some reason I mailed the message to the lo IP address, which perhaps explains it, but does not hint at what happened to messages mailed to myself.

=========================================================

This is my ~/.fetchmailrc:

set postmaster "postmaster"
poll pop.registeredsite.com
proto POP3
user "[email protected]"
password "<password>"
limit 100000
flush

I also tried

poll pop.registeredsite.com
proto POP3
user [email protected]
password <password>

but no difference. Mail files very slow to download, but then groups of several come in a burst in the midst of slow ones. That's the usual problem.

==========================================================

I did a fetchmail --configdump dump and find that the only diff with the dump from my current (RH7i.3) machine is:

9c9
< "idfile":"/home/brownh/.fetchids",
---

Quoted 1 line
    "idfile":"/root/.fetchids",

46c46
< 'localnames':["brownh"],
---

Quoted 1 line
		    'localnames':["root"],

child process exited abnormally

I assume (hope!) this diff only because I inadvertantly ran it as root. Obviously I'll need to verify that presumption.

==========================================================

I was going to regenerate a ~/.fetchmailrc file automatically with fetchmailconf, but find that utility is not included in RH8.0. The man fetchmail presumes it is present. The fetchmail web page says it comes packaged with fetchmail. Why it is missing, I don't know. In light of my damaged rp-pppoe, I worry that the fetchmail installation might be flawed. But rpm -V didn't report anything.

I have a much newer fetchmail rpm for a i686 machine that I'm tempted to install, but my use of fetchmail takes advantage of a bug in the program (flushing messages over a certain size before downloading them, which is not supposed to be possible), and I hestitate for that reason to change things. But if fetchmailconf is supposed to work under RH8.0, I may have to reinstall fetchmail.

Haines Brown
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#7 lore raw

Re: fetchmail and smtp problem

Haines -- It is hard to diagnose anything from this bounce, without information about what the original message looked like. A ways down in the bounce report is this information:

Quoted 6 lines

Date: Tue, 10 Dec 2002 13:58:47 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: 127.0.0.1
Subject: test from lo 10 dec 13:58
Reply-to: [email protected]

The first question you need to answer is -- how did 127.0.0.1 get into the "To:" header? Was it an addressing error on your part, or did something rewrite it to that value? I'd suggest you check the outbox of whatever program you used to send the message. If the "To: 127.0.0.1" line appears in your original, then it was just a typo and of no significance to your troubleshooting (that is, the reject is correct). If the original has a different To: line, then post a followup with the details -- what MUA, which system (hard disk) you were using, and what the original To: line said.

If it aids your memory, this message has a timestamp just 10 minutes before the one on the telnet test you did (and reported on) yesterday.

Quoted 9 lines · Haines Brown

I ran fetchmail -V to get the version and other info, and there's little difference from what I've got with my current (RH7.3) system. The only difference is that on my current (RH7.3) system, old messages are flushed before retrieval, while on new system (RH8.0) --flush off.

================================================================

Here is a bounced message. It was rejected by my own mailserver:

[details deleted]

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#8 lore raw

Re: fetchmail and smtp problem

Quoted 3 lines

Haines -- It is hard to diagnose anything from this bounce, without information about what the original message looked like. A ways down in the bounce report is this information:

Unfortunately, I can't reproduce the error. I repeated what I had done earlier, which I believe was to send a test message to a) my email address, b) to an alias on another server that is redirected back to myself, c) localhost.localdomain, d) localhost

None of these messages was received within a period of at least 15 minutes, even though they all had a BCC: back to myself.

I've no problem receiving messages from the mail server (despite the inordinate delays), and so it appears that my outgoing mail is just not getting there.

Haines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#9 lore raw

Re: fetchmail and smtp problem

In reply to Ray Olszewski

Haines,

If you are collecting ALL the mail in the mail box on the ISP server to go to a SINGLE mailbox on your local server then you can force fetchmail to rewrite the new To: header sent to sendmail with the --smtpname switch on the command line (or the relevant keyword in the fetchmailconf file). This doesn't explain how 127.0.0.1 got in the To: header but will stop it from happening again.

Regards
Carl
--

Quoted 10 lines · you

Haines -- It is hard to diagnose anything from this bounce, without information about what the original message looked like. A ways down in the bounce report is this information:

Quoted 6 lines

Date: Tue, 10 Dec 2002 13:58:47 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: 127.0.0.1
Subject: test from lo 10 dec 13:58
Reply-to: [email protected]

The first question you need to answer is -- how did 127.0.0.1 get into the "To:" header? Was it an addressing error on your part, or did something rewrite it to that value? I'd suggest you check the outbox of whatever program you used to send the message. If the "To: 127.0.0.1" line appears in your original, then it was just a typo and of no significance to your troubleshooting (that is, the reject is correct). If the original has a different To: line, then post a followup with the details -- what MUA, which system (hard disk) you were using, and what the original To: line said.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#10 lore raw

Re: fetchmail and smtp problem

Quoted 6 lines

If you are collecting ALL the mail in the mail box on the ISP server to go to a SINGLE mailbox on your local server then you can force fetchmail to rewrite the new To: header sent to sendmail with the --smtpname switch on the command line (or the relevant keyword in the fetchmailconf file). This doesn't explain how 127.0.0.1 got in the To: header but will stop it from happening again.

Yes, that seems a harmless step. If my outgoing lets lost because it has a messed up To: field, that would would seem to be a workaround.

Quoted 9 lines

The first question you need to answer is -- how did 127.0.0.1 get into the "To:" header? Was it an addressing error on your part, or did something rewrite it to that value? I'd suggest you check the outbox of whatever program you used to send the message. If the "To:
127.0.0.1" line appears in your original, then it was just a typo and of no significance to your troubleshooting (that is, the reject is correct). If the original has a different To: line, then post a followup with the details -- what MUA, which system (hard disk) you were using, and what the original To: line said.

It may have been a typo, but obviously something more's going on, for I'm not getting back test messages sent to myself now at all. In fact, I probably have emacs set up for mail-self-blind. If so, the lack of BCC messages is really significant.

Being a city-boy, I'm not too sure what an "outbox" is ;-). I run rmail, and if I'm not connected, it's got to save its outgoing messages in a queue somewhere, just as ~/RMAIL holds incoming. Perhaps it is smail that handles outgoing messages, and if so, it logs in /var/log/smail/logfile and has as its outgoing queue /var/spool/smail/input/*

I'll compare /etc/sendmail.cf with what I've running right now (current machine is a working copy of RH7.3) to see the diff. Also will run rmail with debug option (-T).

Another concern is my hostname. My ISP knows me (UID) as "[email protected]", but # hostname returns hartford-hwp.com. In my /etc/hosts I believe I have:

127.0.0.1 hartford-hwp.com localhost.localdomain localhost

I'll recheck, but I'd like some assurance even this is correct. Do I need a [email protected] alias in /etc/hostds?. I'm also going to compare /etc/alias with what works on my current machine (RH7.3).

Haines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#11 lore raw

Re: fetchmail and smtp problem

I defined the To: field in ~/.fetchmailrc. Here's what I'm using now for testing

set logfile /opt/tmp/fetchmail_dec12.log
poll pop.registeredsite.com
proto POP3
user [email protected]
password XXXX

keep
smtpname [email protected]

I now see that I did in fact have emacs set up (setq mail-self-blind
t) all along. For some reason, the blind copies did not show up until after I had rebooted the HD. But with this new boot, rmail sees them.

I found /var/spool/brownh. Here's what's in it (as I later discovered, of course, rmail can easily read it).

====================== the failed messages ==========================

1. A message rom Mail Delivery Subsystem <[email protected]> sent earlier today (when I booted the present HD? I've not run any mail applications nor gone on line since yesterday with this HD). The mail deliver subsystem reports that the address of my message of the day before had a fatal error. Indeed user [email protected] is unknown. But This is a message I sent to "localhost," and that may simply be impossible.

Here's the critical part:

----- The following addresses had permanent fatal errors -----
localhost
(reason: 550 5.1.1 <[email protected]>... User unknown) (expanded from: localhost)

----- Transcript of session follows -----
... while talking to hartford-hwp.com.:

Quoted 1 line
Quoted 1 line
Quoted 1 line

DATA

<<< 550 5.1.1 <[email protected]>... User unknown 550 5.1.1 localhost... User unknown

--gBCJn2fL000871.1039722543/hartford-hwp.com
Content-Type: message/delivery-status

Reporting-MTA: dns; hartford-hwp.com
Arrival-Date: Wed, 11 Dec 2002 18:09:16 -0500

Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; hartford-hwp.com
Diagnostic-Code: SMTP; 550 5.1.1 <[email protected]>... User unknown
Last-Attempt-Date: Thu, 12 Dec 2002 14:49:03 -0500

--gBCJn2fL000871.1039722543/hartford-hwp.com
Content-Type: message/rfc822

Return-Path: <brownh>
Received: (from brownh@localhost)

	by hartford-hwp.com (8.12.5/8.12.5/Submit) id gBBN9Gnd002694;
	Wed, 11 Dec 2002 18:09:16 -0500

Date: Wed, 11 Dec 2002 18:09:16 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: localhost
Subject: test RH8.0 to localhost dec11 1800
Reply-to: [email protected]

2. Also in queue is a message sent to a valid address, which is a mail fowarding server. The message was not fowarded back to me because the target name server timed out. This was not a fatal error. I've not known that I've had trouble with that server. It won't try again until the 16th.

The header of this message looks ok, except that Return-Path is not a valid address:

Return-Path: <brownh>
From: Haines Brown <[email protected]>
To: [email protected]

Reply-to: [email protected]

3. A failed message sent to localhost.localdomain. I don't know that I'd expect such an address to work, especially since it came out as [email protected].

Would you agree that fetchmail or sendmail is misconfigured? Despite the provision for blind copy in the mails, I get nothing back right away. I captured copies of the queue files in case there may be further useful into in them.

=========================================================================

I compared /etc/aliases, and found that my alias file lacks:

mailer-daemon: postmaster
postmaster: root

But supplies a range of new aliases such as:

sshd: root
smmsp: root
mailman: root
postfix: root
netdump: root
ldap: root

I caputred the /etc/mail/sendmail.cf file, but it's too big and complicated for ready analysis. There's a lot different from my old sendmail.cf, but I wouldn't know how to analyse those differences.

I rechecked /ect/hosts:

127.0.0.1 hartford-hwp.com localhost.localdomain localhost

this seems ok

Haines Brown=
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#12 lore raw

Re: fetchmail and smtp problem

The failed messages you report on indicate a basic misunderstanding about what the parts of an e-mail address do. The basic structure of a modern e-mail address is: [email protected].

Both localhost and localhost.localdomain are candidatef for appearing to the right of the @ sign, as alternatives to (in your case) hartford-hwp.com . From the failures, it appears that you are trying to use them to the left of the @ sign, as a substitute for brownh . Attempts to do this, quite properly, fail. The userid postion of the address needs to be either a valid account on the system (e.g., brownh or root) or an alias listed in your /etc/aliases file (e.g., postmaster).

So, based solely on these tests, there is NO evidence that sendmail is misconfigured. Bad addresses do bounce, and you do seem to get the bounces. There might be a configuration problem in rmail (an MUA I am unfamiliar with) that causes the bcc attempts to fail, or there may be something else causing that problem (in fetchmail, sendmail, or the ISP's smtp server) ... but nothing you report below helps to sort that one out.

I can't figure out what you are talking about with respect to item #2 in your list of messages.

Finally, in an earlier message you expressed some bewilderment about the term "outbox". This not a compact version of a traditional rural waste disposal system, as your facetious comments seemed to assume, but a place where your MUA stores copies of e-mail messages you have sent. All the MUAs I am familiar with keep them, but as I've said, I am not familiar with rmail. You should see if rmail maintains a maibox called out, or outbox, or sent-messages, or some other plausible synonym; if it does, you could then let us *see* the problem messages (at least the headers) rather than just telling us what you remember, or what you think is important, about them.

Quoted 116 lines · Haines Brown

I defined the To: field in ~/.fetchmailrc. Here's what I'm using now for testing

set logfile /opt/tmp/fetchmail_dec12.log
poll pop.registeredsite.com
proto POP3
user [email protected]
password XXXX

keep
smtpname [email protected]

I now see that I did in fact have emacs set up (setq mail-self-blind
t) all along. For some reason, the blind copies did not show up until after I had rebooted the HD. But with this new boot, rmail sees them.

I found /var/spool/brownh. Here's what's in it (as I later discovered, of course, rmail can easily read it).

====================== the failed messages ==========================

1. A message rom Mail Delivery Subsystem <[email protected]> sent earlier today (when I booted the present HD? I've not run any mail applications nor gone on line since yesterday with this HD). The mail deliver subsystem reports that the address of my message of the day before had a fatal error. Indeed user [email protected] is unknown. But This is a message I sent to "localhost," and that may simply be impossible.

Here's the critical part:

----- The following addresses had permanent fatal errors -----
localhost
(reason: 550 5.1.1 <[email protected]>... User unknown) (expanded from: localhost)

----- Transcript of session follows -----
... while talking to hartford-hwp.com.:

Quoted 1 line
Quoted 1 line
Quoted 1 line

DATA

<<< 550 5.1.1 <[email protected]>... User unknown 550 5.1.1 localhost... User unknown

--gBCJn2fL000871.1039722543/hartford-hwp.com
Content-Type: message/delivery-status

Reporting-MTA: dns; hartford-hwp.com
Arrival-Date: Wed, 11 Dec 2002 18:09:16 -0500

Final-Recipient: RFC822; [email protected]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; hartford-hwp.com
Diagnostic-Code: SMTP; 550 5.1.1 <[email protected]>... User unknown
Last-Attempt-Date: Thu, 12 Dec 2002 14:49:03 -0500

--gBCJn2fL000871.1039722543/hartford-hwp.com
Content-Type: message/rfc822

Return-Path: <brownh>
Received: (from brownh@localhost)

        by hartford-hwp.com (8.12.5/8.12.5/Submit) id gBBN9Gnd002694;
        Wed, 11 Dec 2002 18:09:16 -0500

Date: Wed, 11 Dec 2002 18:09:16 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: localhost
Subject: test RH8.0 to localhost dec11 1800
Reply-to: [email protected]

2. Also in queue is a message sent to a valid address, which is a mail fowarding server. The message was not fowarded back to me because the target name server timed out. This was not a fatal error. I've not known that I've had trouble with that server. It won't try again until the 16th.

The header of this message looks ok, except that Return-Path is not a valid address:

Return-Path: <brownh>
From: Haines Brown <[email protected]>
To: [email protected]

Reply-to: [email protected]

3. A failed message sent to localhost.localdomain. I don't know that I'd expect such an address to work, especially since it came out as [email protected].

Would you agree that fetchmail or sendmail is misconfigured? Despite the provision for blind copy in the mails, I get nothing back right away. I captured copies of the queue files in case there may be further useful into in them.

=========================================================================

I compared /etc/aliases, and found that my alias file lacks:

mailer-daemon:  postmaster
postmaster:     root

But supplies a range of new aliases such as:

sshd:           root
smmsp:          root
mailman:        root
postfix:        root
netdump:        root
ldap:           root

I caputred the /etc/mail/sendmail.cf file, but it's too big and complicated for ready analysis. There's a lot different from my old sendmail.cf, but I wouldn't know how to analyse those differences.

Quoted 5 lines

I rechecked /ect/hosts:

127.0.0.1 hartford-hwp.com localhost.localdomain localhost

this seems ok

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#13 lore raw

Re: fetchmail and smtp problem

Ray,

Quoted 5 lines

Both localhost and localhost.localdomain are candidatef for appearing to the right of the @ sign, as alternatives to (in your case) hartford-hwp.com . From the failures, it appears that you are trying to use them to the left of the @ sign, as a substitute for brownh . Attempts to do this, quite properly, fail.

Yes, I realize that, but my hostname is hartford-hwp.com, and so I thought I could mail to the hostname and its aliases. I thought it worth a try.

Quoted 3 lines

So, based solely on these tests, there is NO evidence that sendmail is misconfigured. Bad addresses do bounce, and you do seem to get the bounces.

Which, given the challenges of sendmail, is good news.

Quoted 5 lines

There might be a configuration problem in rmail (an MUA I am unfamiliar with) that causes the bcc attempts to fail, or there may be something else causing that problem (in fetchmail, sendmail, or the ISP's smtp server) ... but nothing you report below helps to sort that one out.

My understanding is that after fetchmail puts incoming mail into my incoming queue (/var/spool/mail/brownh), rmail takes it, reformats the header, and passes it along to sendmail, saving it in its own queue (~/RMAIL). Rmail is meant for use with uucp and sendmail under emacs. While I gather it can be a standalone application, I've not been able to use it that way (ignorance). It has a -T debug option, which I'll try, and a -D option to use a specified domain instead of the default domain of ``UUCP''. It has no configuration as far as I know, but only its executable and another binary file, /usr/bin/rmail.sendmail.

But rather than chase my tail trying to fathom rmail, I'll use mutt and also set up Mozilla as a mail utility to see what happens.

Quoted 8 lines

I can't figure out what you are talking about with respect to item #2 in your list of messages.

Finally, in an earlier message you expressed some bewilderment about the term "outbox".

a place where your MUA stores copies of e-mail messages you have sent.

I have always associated the term with MS, perhaps inaccurately (or was Netscape reponsible?). I don't recall it from DOS or OS/2 days. The three examples I listed were from what I took to be rmail's outgoing queue (or sendmail's incoming?), /var/spool/brownh, (I assume the "outbox"). Sorry I was not clearer on that. You ask for more information on the message that tried to get out to a mail forwarding server ([email protected]), but timed out. Here is it:

Quoted 68 lines

From [email protected] Thu Dec 12 14:49:05 2002
Return-Path: <[email protected]>
Received: from hartford-hwp.com (hartford-hwp.com [127.0.0.1])

	by hartford-hwp.com (8.12.5/8.12.5) with ESMTP id gBCJn2Mw000877
	for <[email protected]>; Thu, 12 Dec 2002 14:49:04 -0500
Received: (from brownh@localhost)
	by hartford-hwp.com (8.12.5/8.12.5/Submit) id gBBN6WfB002624;
	Wed, 11 Dec 2002 18:06:32 -0500

Date: Wed, 11 Dec 2002 18:06:32 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: [email protected]
Subject: test from RH8.0 to kb1grm, dec 11 1800
Reply-to: [email protected]

From [email protected] Thu Dec 12 14:49:06 2002
Return-Path: <[email protected]>
Received: from hartford-hwp.com (hartford-hwp.com [127.0.0.1])

	by hartford-hwp.com (8.12.5/8.12.5) with ESMTP id gBCJn2N0000877
	for <[email protected]>; Thu, 12 Dec 2002 14:49:05 -0500
Received: from localhost (localhost)
	by hartford-hwp.com (8.12.5/8.12.5/Submit) id gBCJn2fM000871;
	Thu, 12 Dec 2002 14:49:05 -0500

Date: Thu, 12 Dec 2002 14:49:05 -0500
From: Mail Delivery Subsystem <[email protected]>
Message-Id: <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;

	boundary="gBCJn2fM000871.1039722545/hartford-hwp.com"

Subject: Warning: could not send message for past 4 hours
Auto-Submitted: auto-generated (warning-timeout)

This is a MIME-encapsulated message

--gBCJn2fM000871.1039722545/hartford-hwp.com

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Wed, 11 Dec 2002 18:06:32 -0500 from brownh@localhost

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

--gBCJn2fM000871.1039722545/hartford-hwp.com
Content-Type: message/delivery-status

Reporting-MTA: dns; hartford-hwp.com
Arrival-Date: Wed, 11 Dec 2002 18:06:32 -0500

Final-Recipient: RFC822; [email protected]
Action: delayed
Status: 4.4.3
Last-Attempt-Date: Thu, 12 Dec 2002 14:49:05 -0500
Will-Retry-Until: Mon, 16 Dec 2002 18:06:32 -0500

--gBCJn2fM000871.1039722545/hartford-hwp.com
Content-Type: message/rfc822

Return-Path: <brownh>
Received: (from brownh@localhost)

Quoted 8 lines
	by hartford-hwp.com (8.12.5/8.12.5/Submit) id gBBN6WfB002624;
	Wed, 11 Dec 2002 18:06:32 -0500

Date: Wed, 11 Dec 2002 18:06:32 -0500
Message-Id: <[email protected]>
From: Haines Brown <[email protected]>
To: [email protected]
Subject: test from RH8.0 to kb1grm, dec 11 1800
Reply-to: [email protected]

I did not originally expand on this message because it seemed to me to resemble the first. Here, brown@localhost reports that the mailer daemon at hartford-hwp.com had to delay sending the message to [email protected] because it could not resolve the arrl.net domain? This message strikes me as the kind of thing one would expect in the incoming queue.

Quoted 5 lines

You should see if rmail maintains a maibox called out, or outbox, or sent-messages, or some other plausible synonym; if it does, you could then let us *see* the problem messages (at least the headers) rather than just telling us what you remember, or what you think is important, about them.

I suspect the message above, more than four hours having passed, will show up in rmail's incoming queue when next I boot.

Fetchmail has a lot of options, and I'm trying to make sense of them. One or two might be revealing.

Haines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#14 lore raw
In reply to Haines Brown

OK. From what you posted ... specifically the "netstat -l" output ... we know that *something* is listening on port 25. Specifically:

tcp 0 0
127.0.0.1:smtp *:* LISTEN

Next step is to find out what that something is. There are several ways to do this. The best is (as root) to run "netstat -lp". If the answer is xinetd, then either check its config files to find out what SMTP daemon is passes connections to, or run "telnet localhost 25" and see what responds (this after you have the localhost entry in /etc/hosts corrected; or you can do "telnet 127.0.0.1 25").

The stuff you post from xinetd's config files does not refer to port 25. So I'd *guess* that xinetd is not handling this port. The stuff from /etc/services is irrelevant; that file just matches port names to service names, and does not tell you if anything is actually listening on a port.

Beyond that ... Carl's advice looks pretty good, mostly. I don't care for his suggestion that you have your smtp daemon listen on 0.0.0.0 -- listening on 127.0.0.1 should be the right way to do it for an smtp daemon that ONLY redistributes fetchmail mail. And your info does NOT say that *sendmail* is listening on port 25, only that *something* is listening on that port (sendmail is not the only MTA used on Linux systems, though I gather it is the default choice for RH 8.0).

Finally ... as I said earlier, your problem may by in the configuration of your smtp daemon or your configuration of fetchmail. If Carl's suggestions don't result in fixing things, the next step is to report the details of that part, as well as the results of "telnet localhost 25" and any entries in your logs that appear relevant (don't be stingy ... tell us everything that the smtp daemon, xinted if it is involved, and fetchmail log).

Quoted 128 lines · Haines Brown

On a RH8.0 installation I've been trying to get going since October, one problem has been that I can't receive e-mail. The first problem was a broken rp-pppoe. When that fixed, I could at least browse the web. Next I faced messed up rules for iptables, but I've removed the firewall. Since the problem persists, I'm led to fetchmail and smtp.

The fetchmail log suggests that I've got ip at least, for it is able to download the number and size of messages waiting on the mail server. However, when it tries to download the first message, it can't do it. Apparently fetchmail can't open a connection to the smtp server on my machine. Here's snippet from fetchmail's log at the point it fails:

Quoted 5 lines

...
fetchmail: POP3< +OK 3778 octets
reading message 1 of 22 (3778 octets)
About to rewrite Return-Path: <[email protected]> Rewritten version is Return-Path:

<[email protected]>

Quoted 1 line

...

When at first fetchmail did not seem to write its log, which raised the question of permissions and UID. However, it seems to work now. Undoubtedly my error at some point.

The question is, what sockets are listening? I don't know how to interpret the following, but it does not look all that different from my current machine, which is functional.

# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:32768                 *:*                     LISTEN
tcp        0      0 *:printer               *:*                     LISTEN
tcp        0      0 *:sunrpc                *:*                     LISTEN
tcp        0      0 *:x11                   *:*                     LISTEN
tcp        0      0 127.0.0.1:8118          *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 127.0.0.1:smtp          *:*                     LISTEN
udp        0      0 *:32768                 *:*
udp        0      0 *:sunrpc                *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     1847
      /tmp/.iroha_unix/IROHA

unix 2 [ ACC ] STREAM LISTENING 2325
/tmp/.esd/socket
unix 2 [ ACC ] STREAM LISTENING 2108

      /tmp/ssh-XX1O24lT/agent.1076
unix  2      [ ACC ]     STREAM     LISTENING     2083
      /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     1916
      /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     2232
       /tmp/.ICE-unix/1076
unix  2      [ ACC ]     STREAM     LISTENING     1571
      /var/run/lprng
unix  2      [ ACC ]     STREAM     LISTENING     2129
       /tmp/orbit-brownh/linc-446-0-54d253d5c0c8d
unix  2      [ ACC ]     STREAM     LISTENING     2137
       /tmp/orbit-brownh/linc-434-0-1692b3b6d257d
unix  2      [ ACC ]     STREAM     LISTENING     2243
       /tmp/orbit-brownh/linc-448-0-141f7b126e97c
unix  2      [ ACC ]     STREAM     LISTENING     2270
      /tmp/orbit-brownh/linc-44d-0-24ce2e57dc8f6
unix  2      [ ACC ]     STREAM     LISTENING     2305
      /tmp/orbit-brownh/linc-44a-0-19bc27591b9fc
unix  2      [ ACC ]     STREAM     LISTENING     2529
      /tmp/orbit-brownh/linc-460-0-2d7ba098b88a
unix  2      [ ACC ]     STREAM     LISTENING     2535
      /tmp/orbit-brownh/linc-464-0-433b03def5c8
unix  2      [ ACC ]     STREAM     LISTENING     2634
      /tmp/orbit-brownh/linc-46b-0-59017d95c4a98
unix  2      [ ACC ]     STREAM     LISTENING     2674
      /tmp/orbit-brownh/linc-46e-0-3df7182d8cfc3
unix  2      [ ACC ]     STREAM     LISTENING     2722
      /tmp/orbit-brownh/linc-471-0-3df7182de5371
unix  2      [ ACC ]     STREAM     LISTENING     2751
      /tmp/orbit-brownh/linc-473-0-1022b4e538916
unix  2      [ ACC ]     STREAM     LISTENING     2781
      /tmp/orbit-brownh/linc-475-0-1022b4e575a77

Then, I looked at /etc/services:

...
smtp 25/tcp mail
smtp 25/udp mail

I looked at /etc/xinetd.conf:

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d

I looked in /etc/xinet.d/ at the servers and a services files:

service services
{
type = INTERNAL UNLISTED
port = 9098
socket_type = stream
protocol = tcp
wait = no
disable = yes
only_from = 127.0.0.1
}

service servers
{
type = INTERNAL UNLISTED
port = 9099
socket_type = stream
protocol = tcp
wait = no
disable = yes
only_from = 127.0.0.1
}

Quoted 8 lines

I looked at /etc/hosts. The hosts.allow and host.deny files are empty. However, the /etc/hosts file had a very strange error:

27.0.0.1 hartford-hwp.com localhost.localdomain localhost

However, changing the "27" to "127" did not fix anything.

With that exception, I did not see anything amiss in these files.

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs