Re: fetchmail gives me headache (was: Strange things like drwx--S--- with elm...)

2000-08-24 Thread Neil L. Roeth
On Aug 22, Andreas Hetzmannseder ([EMAIL PROTECTED]) wrote:
  This looks like it should work, don't you think? Instead I always get
  an SMTP Transaction error. It reads the first incoming message for a
  few seconds, then it exits with connection failed and I tried it over
  and over again...

I had a similar problem, and it took me a while to realize that the
SMTP error was not on the mail server end, it was on my local
machine.  Fetchmail delivers to port 25, which is the smtp port, which 
is what your local MTA listens to.  I bet your fetchmail
configuration is fine, and that you need to look at your MTA.  Try
/etc/init.d/sendmail reload if using sendmail, or similar for another
MTA.


-- 
Neil L. Roeth
[EMAIL PROTECTED]



Re: fetchmail gives me headache (was: Strange things like drwx--S--- with elm...)

2000-08-22 Thread Andreas Hetzmannseder
Morten Liebach wrote:
 [...] I don't have any mda defined in my ~/fetchmailrc,
 delivering to port 25 on localhost is the default.

Does this mean /var/spool/mail/... ?
 
 My fetchmailrc:
 
 set postmaster local_username

...OK...

 set bouncemail
 set properties 

Fetchmail complained about these two options (parse error),
so I disabled them. Bouncemail doesn't even seem to be available in my 
fetchmailrc template file. What version of fetchmail do you have?
Mine is 4.6.4-1.1.

 poll my_pop3_server with proto POP3
user userid there with password very_secret is local_username 
 here warnings 3600
 antispam 571 550 501 554
 It works very well, and has done so for a year now. :-)

I envy you... :)

Now have a look at my fetchmailrc:
set postmaster local_username
#set bouncemail
#set properties 
poll my_pop3_server with proto pop3
user userid there with password very_secret
is local_username here
warnings 3600
antispam 571 550 501 554

This looks like it should work, don't you think? Instead I always get
an SMTP Transaction error. It reads the first incoming message for a
few seconds, then it exits with connection failed and I tried it over
and over again...

Do I really need 'set bouncemail' and 'set properties '?

Let me get the following clear: I am not having X yet, fetchmailconfig
doesn't work for me, so I set up ~/.fetchmailrc by myself.
For the time being all I want is to have mail delivered anywhere, so
I am not even talking about any MUA, be it mutt, elm, mozilla or
whatever. This will be my next big problem ;)

Do you invoke fetchmail via your MUA?

Sorry for my confused asking, but there are just too many problems
all at once. I never thought this would become so complicated...

Thanks in advance,
Andreas



Re: fetchmail gives me headache (was: Strange things like drwx--S--- with elm...)

2000-08-22 Thread Morten Liebach
On 22, aug, 2000 at 01:07:58 +0200, Andreas Hetzmannseder wrote:
 Morten Liebach wrote:
  [...] I don't have any mda defined in my ~/fetchmailrc,
  delivering to port 25 on localhost is the default.
 
 Does this mean /var/spool/mail/... ?

It means that it delivers to your ``mailserver'' on localhost, which is
exim.
As far as exim is concerned it is a normal TCP/IP connection with a mail
for local_username@localhost ... exim then delivers according to it's
config (/var/spool/mail/local_username by default).

  My fetchmailrc:
  
  set postmaster local_username
 
 ...OK...
 
  set bouncemail
  set properties 
 
 Fetchmail complained about these two options (parse error),
 so I disabled them. Bouncemail doesn't even seem to be available in my 
 fetchmailrc template file. What version of fetchmail do you have?
 Mine is 4.6.4-1.1.

Mine is 5.3.3, so they are probably not ``~/.fetchmailrc-compatible''.

  poll my_pop3_server with proto POP3
 user userid there with password very_secret is local_username 
  here warnings 3600
  antispam 571 550 501 554
  It works very well, and has done so for a year now. :-)
 
 I envy you... :)
 
 Now have a look at my fetchmailrc:
 set postmaster local_username
 #set bouncemail
 #set properties 
 poll my_pop3_server with proto pop3
 user userid there with password very_secret
 is local_username here
 warnings 3600
 antispam 571 550 501 554
 
 This looks like it should work, don't you think? Instead I always get
 an SMTP Transaction error. It reads the first incoming message for a
 few seconds, then it exits with connection failed and I tried it over
 and over again...

Amazing as it seems, I just got a thought!
_IS_ exim running and listening on port 25?

If not, ``SMTP Transaction error'' would be the error message, since
fetchmail speaks SMTP to exim on port 25 (fetchmail says ``Hi, I've got
mail for you'', and exim says nothing, so fetchmail times out and tell
you ``SMTP Transaction error'').

Look in /etc/inetd.conf for a line that starts with ``smtp'', what does
it say?

Try a portscanner too (nmap f.ex., do a `nmap localhost', look for this
line:   25  opentcpsmtp )

If exim isn't listenig, that's the real problem, not fetchmail.

 Do I really need 'set bouncemail' and 'set properties '?

No, it seems not to be supported by your version of fetchmail, so you
were right when you disabled them.

 Let me get the following clear: I am not having X yet, fetchmailconfig
 doesn't work for me, so I set up ~/.fetchmailrc by myself.
 For the time being all I want is to have mail delivered anywhere, so
 I am not even talking about any MUA, be it mutt, elm, mozilla or
 whatever. This will be my next big problem ;)

That's no problem, just choose mutt! ;-)
Look at my homepage at http://home1.stofanet.dk/liebach/, there's a link
to my muttrc and a screenshot of how it looks in version 1.2.5i
(selfcompiled, not from a Debian package, it's easy to do).

 Do you invoke fetchmail via your MUA?

 Sorry for my confused asking, but there are just too many problems
 all at once. I never thought this would become so complicated...

It isn't, but only when you just know how ... but so is everything.

The way I have it set up is:

Fetchmail does it's thing, delivers on port 25 to exim, exim passes the
mail on to procmail (it does so because I have a ~/.procmailrc file, if
not it delivers to /var/spool/mail), procmail reads the recipes from my
~/.procmailrc, and delivers according to that (to ~/Maildir/folder)
and when I feel like reading mail I just start mutt and read away ...
The _only_ thing mutt does is reading mail! A kind of sophisticated
filebrowser!

When I want to send/reply-to mail mutt passes it on to exim, which in
turn passes it on to the addressee(s).

It's a very classical UNIX way of doing things, and when you get used to
it, you don't wanna loose it!

I hope this clarifies things a bit for you.

HAND
Morten


-- 
UNIX, reach out and grep someone!



Re: Strange things like drwx--S--- with elm...

2000-08-21 Thread Andreas Hetzmannseder
Eric G . Miller wrote:
 Your description of fetchmail opening an elm display does not jibe
 with my experience in using fetchmail.

The reason for this was probably the following entry in my
~/.fetchmailrc:
mda /usr/bin/elm
fetchmail --version gave me the following explanation:
Messages will be delivered with /usr/bin/elm.

 Generally fetchmail polls a POP or IMAP server for mail and delivers
 it to the local smtp server.

I guess you mean the mail transport agent (exim in my case). Please
correct me if I'm wrong. I changed the mda option to /usr/sbin/exim
anyway. Is this OK? I hope it will work.

 The mail should be delivered to /var/mail/user if everything is
 configured properly.

This looks like /var/spool/mail/user in my case.

 Do you have a ~/.forward file that may be causing weird behavior?

No. It might have been just the wrong entry for mda. But I will see...

Thanks for your help,
Andreas



Re: Strange things like drwx--S--- with elm...

2000-08-21 Thread Morten Liebach
On 21, aug, 2000 at 09:28:24 +0200, Andreas Hetzmannseder wrote:
 Eric G . Miller wrote:
  Your description of fetchmail opening an elm display does not jibe
  with my experience in using fetchmail.
 
 The reason for this was probably the following entry in my
 ~/.fetchmailrc:
 mda /usr/bin/elm
 fetchmail --version gave me the following explanation:
 Messages will be delivered with /usr/bin/elm.
 
  Generally fetchmail polls a POP or IMAP server for mail and delivers
  it to the local smtp server.
 
 I guess you mean the mail transport agent (exim in my case). Please
 correct me if I'm wrong. I changed the mda option to /usr/sbin/exim
 anyway. Is this OK? I hope it will work.

It might, but I don't have any mda defined in my ~/fetchmailrc,
delivering to port 25 on localhost is the default.

My fetchmailrc:

set postmaster local_username
set bouncemail
set properties 
poll my_pop3_server with proto POP3
   user userid there with password very_secret is local_username here 
warnings 3600
antispam 571 550 501 554

It works very well, and has done so for a year now. :-)

HTH

Morten

  The mail should be delivered to /var/mail/user if everything is
  configured properly.
 
 This looks like /var/spool/mail/user in my case.
 
  Do you have a ~/.forward file that may be causing weird behavior?
 
 No. It might have been just the wrong entry for mda. But I will see...
 
 Thanks for your help,
 Andreas

-- 
UNIX, reach out and grep someone!



Strange things like drwx--S--- with elm...

2000-08-20 Thread Andreas Hetzmannseder
Dear debian-user,

After running elm (version elm-me+_2.4pl25ME+65-0.slink.0) for the
first time yesterday it created the following file in my home directory:
drwx--S--- myusername myusername 1024 Aug 19 18:29 Mail/
which is supposed to be for incoming mail. Please note the capital S.
Furthermore there was no .elm/elmrc configuration file yesterday, but
today there were two of them: elmrc and elmrc.old ...
Now when I try to receive e-mail via fetchmail it opens the elm-display,
the incoming messages move quickly by - no chance to read them - then it
says they are flushed and it seems that they are gone forever...
But that's not all: After about a dozen of messages elm asks to create
a folder with a funny name which seems to be a substring of some part
of the received mail. This looks like:
rom: Boy George [EMAIL PROTECTED]
or similar in my home directory, which is again drwx--S--- ...
And yet some other weird stuff: I checked my elmrc configuration file
and found some options being replaced by text which seems to have been
taken from the mail. I reedited the file, ran fetchmail again, but with
the same flushing, with elm asking me to create a funny folder and
with similar funny text entries in elmrc.

I would like to know:
- What does the capital S mean?
- How can I configure elm properly? -In the User's Guide it is said to
  run Configure which is presumably a shellscript but I haven't found
  it anywhere.

Please let me know, I'm really curious.
Thanks in advance,
Andreas



Re: Strange things like drwx--S--- with elm...

2000-08-20 Thread Eric G . Miller
On Sun, Aug 20, 2000 at 08:41:37PM +0200, Andreas Hetzmannseder wrote:
 Dear debian-user,
 
 After running elm (version elm-me+_2.4pl25ME+65-0.slink.0) for the
 first time yesterday it created the following file in my home directory:
 drwx--S--- myusername myusername 1024 Aug 19 18:29 Mail/
 which is supposed to be for incoming mail. Please note the capital S.
 Furthermore there was no .elm/elmrc configuration file yesterday, but
 today there were two of them: elmrc and elmrc.old ...
 Now when I try to receive e-mail via fetchmail it opens the elm-display,
 the incoming messages move quickly by - no chance to read them - then it
 says they are flushed and it seems that they are gone forever...
 But that's not all: After about a dozen of messages elm asks to create
 a folder with a funny name which seems to be a substring of some part
 of the received mail. This looks like:
 rom: Boy George [EMAIL PROTECTED]
 or similar in my home directory, which is again drwx--S--- ...
 And yet some other weird stuff: I checked my elmrc configuration file
 and found some options being replaced by text which seems to have been
 taken from the mail. I reedited the file, ran fetchmail again, but with
 the same flushing, with elm asking me to create a funny folder and
 with similar funny text entries in elmrc.
 
 I would like to know:
 - What does the capital S mean?

Set Group Id for all files put in ~/Mail to match ~/Mail.  This is
normal.

 - How can I configure elm properly? -In the User's Guide it is said to
   run Configure which is presumably a shellscript but I haven't found
   it anywhere.

Your description of fetchmail opening an elm display does not jibe with
my experience in using fetchmail.  Generally fetchmail polls a POP or
IMAP server for mail and delivers it to the local smtp server.  The mail
should be delivered to /var/mail/user if everything is configured
properly.  Do you have a ~/.forward file that may be causing weird
behavior?

-- 
Copyright © 2000 Megalomania Industries, Inc.