Solved

POP3 Error "User or Password incorrect (-ERR being read already /usr/spool/mail/username)"

Posted on 1998-06-14
29
824 Views
Last Modified: 2013-12-15
heya all . .

BIG problem I need fixed..

when I use a pop3 email client to read email.  I get the following error.

User or Password incorrect (-ERR being read already /usr/spool/mail/username)

where username is my username.
how do I fix this?  I have tried rebooting, nice 'n simple but that fixed nothing.
using pine telnetting into the system I can read the email fine. It's just via POP3 i have problems.

Using linux 2.0.34
slackware 3.4
POP3d that came with slackware 3.4
sendmail 8.8.8

Please help
Andrew
q@qonline.com.au
0
Comment
Question by:Q010797
  • 15
  • 9
  • 3
  • +2
29 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627837
Silly question: have you enabled pop3 in /etc/{inetd.conf,services}?
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627838
yes :)   it used to work . .  this just happened recently . .

most pop3 accounts work.. just very few dont
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627839
So what's the problem now?
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627840
what do you mean?  I want to fix an error I'm getting

User or Password incorrect (-ERR being read already /usr/spool/mail/username)

as listed above . . .
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627841
what do you mean?  I want to fix an error I'm getting

User or Password incorrect (-ERR being read already /usr/spool/mail/username)

as listed above . . .
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627842
missunderstood you comment, sorry.

Try connecting to your pop3 server with telnet:

shell# telnet pop3server 110
user your_username
pass your_password
list


post the messages you get.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627843
+OK mail POP3 Server (Version 1.005h) ready at <Mon Jun 15 23:59:38 1998>
user q
+OK please send PASS command
pass *******
-ERR being read already /usr/spool/mail/q
list
-ERR Invalid command; valid commands:  NOOP  or  QUIT
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627844
your pop3 dos not allow any commands for this user :-|

The first -ERR is somehow confusing. Are there any tools for that user which read $MAIL permanetly (like biff)?
Probably it's because this account has no rights for pop3.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627845
but it used to . . it just suddenly happened . . I clicked on 'send and receive mail' in my win95 mail client . . and it's never worked since . . rebooting etc does not help.
0
 
LVL 1

Expert Comment

by:RoboBob
ID: 1627846
It looks like there is a stuck lockfile, depending on your pop server these might be in /tmp/.username.pop or in /var/spool/mail/.username.pop, if you can find the stale lockfile and delete it, that will fix the "being read already" error...
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627847
i don't think so.

I've already looked high and low for a lock file or anything similar
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627848
even if I delete the /var/spool/mail/username file . . then reboot . .

then send the user a new email I still get the error. .

I can check the mail box while it's empty without an error . . but as soon as I send a mail to it.. i get the error again
0
 
LVL 32

Expert Comment

by:jhance
ID: 1627849
What are the file protections on /usr/sbin/sendmail?  It should look like this:

-r-sr-xr-x   1 root     root       305201 Mar 13 19:28 /usr/sbin/sendmail*

Also, the ownership of the files in /var/spool/mail.  They should be owned by the user but must have group ownership of mail.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627850
yes all permissions are set correctly..

everything USED to work perfectly, and still does for 95% of users . .there are just a few accounts that seem to have died.

Even if I delete the mail file the problem still persists.  And the account is still capable of accepting email and even reading it, via something like pine, just not via a POP3 reader.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627851
jhance, sendmail is not needed for pop3.
I also suggest that user's mail file has permissions 600 (for some reason:), the spool directory should have permissions 1775.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627852
I wish it were that simple.

Like I said, 95% of peoples mail still works via POP3 . . people who get the above error, ONLY get it when accessing mail via a POP3 email client, you can still read it fine with pine.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627853
are these always the same users, or is it random when it fails?
Also check /var/log/{messages,sendmail} or whatever your messaged are going to.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627854
no always the same users . .once it does it once . . I can NEVER read that mail box with a pop3 client again.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627855
the logs dont actually show any errors at all  as though nothing is wrong :(
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627856
have you enabled logging in syslog.conf, pop3d usualy uses the mail facility:

mail.*  /var/log/sendmail.log

Then
  kill -1 <pid_of syslogd>
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627857
yes syslogd is running . .

but should an error come up in the logfile every time I get the error? (ie. when i check for email via POP3 client)

because the only log that shows this is messages and it has nothing wrong in it. It just lists the connection and tells me it served 'username' or whatever.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627858
if you enable logging for the mail facility (and send syslogd a HUP signal), you should receive messages for each pop3 command
Then you may see if somthing went wrong.

Just a suggestion to get closer to the problem.
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627859
how do I enable logging for the mail facility.  I don't understand the instructions above
0
 

Accepted Solution

by:
danielfonseca earned 200 total points
ID: 1627860
That's a tipycal one to an expert... :-)

Ehehe Just kidding... what you have to do is go into
/usr/tmp/.pop (tough dir hiding and all)
and erase the file with the name of the account you have problems with ok?

That was maybe a mail read that got aborted and thus the file remaining there was a sign to the pop3 client (sort of a lock) that the mailbox was being read already.

Almost sure that'll do it.

Daniel Fonseca
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627861
Thank you Thank You Thank You and Thank You :)

Works fine . .!!
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1627862
danielfonseca, sounds that this is problem you must have had sometimes to get used to its solution.
Thanks. Even experts will learn ;-)
0
 

Expert Comment

by:danielfonseca
ID: 1627863
ahoffmann, you can't imagine... I had a bitch of times (sorry for the swearing :-)
Had to strace -p of the pop3 process in the end and see he was tampering with the .pop dir and username file.

Even to me (I've been in the business for quite some time now) it came as a big surprise, this directory... I had no idea... I also would like to add that this seems to happen a lot in this distribution (Slak 4.3 vanilla). Upgrade recomended.

Daniel Fonseca

PS: Getting such a comment from a n.6 top guy, like you, makes me honoured! :-)
0
 
LVL 1

Author Comment

by:Q010797
ID: 1627864
I see on cdrom.com 3.5beta . .when is slackware 3.5 due out ?
I have a few other problems slackware 3.4 related I'd like fixed also . .
0
 

Expert Comment

by:danielfonseca
ID: 1627865
I already have Slackware 3.5 final! A week ago!
IT's been out!
Look:
ftp://ftp.cdrom.com/pub/linux/slackware-3.5/

Daniel
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now