Visit Our UNIX and Linux User Community


Can't POP the mails off the server, the mailbox is corrupt!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can't POP the mails off the server, the mailbox is corrupt!
# 1  
Old 04-06-2015
Can't POP the mails off the server, the mailbox is corrupt!

First, please forgive me for my 2nd attempt to post in a Forum!
And btw, the Code Tags tutorial has the fonts and the sizes,
but when I am editing my post none of those fonts and sizes
are not there!

Code:
 SCO OpenServer(TM) Release 5 (worf.xxx.com) 

 Worf is our proxy & POP Server, and it runs the
LAN with windows PCs, wk2s & XPs. There are only
two of us that POP the mailbox from the Server
to the client, Eudora elena & me nancy!
Until now we never had a problem. 
elena can still POP, her email mailbox is just fine. 
 We use Eudora and for years we never
had a problem like this, but on March 12th,
I got errors on my nancy mailbox and I 
suddenly on March 12th can't POP 
the mails off the server's mailbox.

Eudora gave error info,
There has been an error transferring your mail.

and then the POP server [nancy@worf.yyy.com]
said: ERR Mail drop does not start with a From envelope line.


So I did this so I can open the mailboxes:
:
Code:
 # cd $M    # l 
-rw------- 1 nancy group 0 Mar 24 13:06 .nancy.pop 

drwxrwxrwt 2 mmdf mmdf 512 Aug 6 2001 :saved 
   -rw------- 1 elena group 0 Mar 29 21:55 elena <-- POP is Fine
  -rw------- 1 nancy group 16258932 Mar 29 21:36 nancy <-- POP
not working.

So I checked the mailboxes.
Code:
# mutt -f elena and I get into her mailbox
mutt came up and it's fine.

Code:
# mutt -f nancy and it says nancy is not a mailbox.
So the Server is ok, it's My mailbox is corrupt,
it had to be a bad email in my mailbox,
so Mutt can't get into my mailbox.
So I tried to get in with vi [ # cd vi /usr/nancy/ ] it said “nancy” does not exist.

I really want to get into my mailbox file but I haven't been able to find a way!
Meanwhile, my corrupt mailbox is receiving more and more emails in my “mailbox”!
If I can get in this file I could delete the bad emails and maybe that would fix it.

Or what would happen if I deleted the whole file?
And how can I delete a mailbox when “nancy” is not a mailbox and “nancy” does not exist.?
[CODE]
Does anybody out there have a way to get around this thing?
Since it has been two months March & April
so far I need to get those emails POPed off the the server and to my inbox on Eudora, so I don't loose them.

How can you get into a file when it doesn't have a valid file name?
[CODE]
-rw------- 1 nancy group 21852648 Apr 4 01:00 nancy < this is still growing! >
the path for mutt mailboxes
/usr/spool/mail/nancy
/usr/spool/mail/elena
[/ICODE]
/usr/spool/mail/nancy /usr/spool/mail/elena
Btw, I use Korn shell ksh (Enter)
I can get by with Unix but I am not a expert!

I really need to get my mailbox nancy fixed, so I can reply to all my members etc., people may think I am ignore then...
Thank you in Advance,
--Nancy
# 2  
Old 04-06-2015
Not sure I understand your problem entirely, but could you save your nancy file to a backup, and then chop it off to zero size (e.g. by >nancy on the command line)?
Later you can work on the backup trying to retrieve as many mails as possible.
This User Gave Thanks to RudiC For This Post:
# 3  
Old 04-06-2015
The location of the mail box is controlled by the contents of the file "/usr/mmdf/mmdftailor" regardless of whether mmdf or sendmail is the mail processor.
The mail messages in the mailbox are separated with 4 <ctrl>A characters on a line by itself. One at the beginning of the email, and one at the end. So emails in the middle of the file have 2 <ctrl>A lines in a row. You could fix the file using vi, but that may be problematic with a 16mb file.
An alternative is to create a new user in scoadmin, and exit a # prompt.
Code:
#cd /usr/spool/mail
#cp nancy new_user
#cat >nancy
<ctrl>d
#ls -l nancy 
output should show that nancy has a size of 0

.
You have now isolated the problem mail box, which you can process using mutt, and nancy's mailbox is cleared of any errors.
This User Gave Thanks to jgt For This Post:
# 4  
Old 04-07-2015
Can't POP the mails off the server, the mailbox is corrupt!

Quote:
Originally Posted by RudiC
Not sure I understand your problem entirely, but could you save your nancy file to a backup, and then chop it off to zero size (e.g. by >nancy on the command line)?
Later you can work on the backup trying to retrieve as many mails as possible.

Well, the problem is that my mailbox nancy /usr/spool/mail/nancy # mutt -f nancy and it says nancy is not a mailbox, so mutt can't get into my mailbox nancy, And I tried to get in with vi [ # cd vi /usr/nancy/ ] it said “nancy” does not exist. So my mailbox file name is user nancy, but “nancy” can't be the file name because it doesn’t exist and it isn't a mailbox. And RudiC, could you show me how to do a backup for nancy file. Thank you!
[/CODE]
---------- Post updated at 07:55 PM ---------- Previous update was at 07:38 PM ----------

Quote:
Originally Posted by RudiC
Not sure I understand your problem entirely, but could you save your nancy file to a backup, and then chop it off to zero size (e.g. by >nancy on the command line)?
Later you can work on the backup trying to retrieve as many mails as possible.
Well, the problem is that my mailbox nancy
/usr/spool/mail/nancy # mutt -f nancy and it says nancy is not a mailbox,
so mutt can't get into my mailbox nancy,
And I tried to get in with vi [ # cd vi /usr/nancy/ ]
it said “nancy” does not exist. So my mailbox file
name is user nancy, but “nancy”
can't be the file name because it doesn't exist
and it isn't a mailbox.
And RudiC, could you show me how to do a
backup for nancy file.


Well, the problem is that my mailbox nancy
/usr/spool/mail/nancy # mutt -f nancy and it says nancy is not a mailbox,
so mutt can't get into my mailbox nancy,
And I tried to get in with vi [ # cd vi /usr/nancy/ ]
it said “nancy” does not exist.
So my mailbox file name is user nancy, but “nancy”
can't be the file name because it doesn't exist and it isn't a mailbox. And RudiC, could you show me how to do a backup for nancy file. Well, the problem is that my mailbox nancy /usr/spool/mail/nancy # mutt -f nancy and it says nancy is not a mailbox, so mutt can't
get into my mailbox nancy, And I tried to get in with vi [ # cd vi /usr/nancy/ ] it said “nancy” does not exist. So my mailbox file name is user nancy, but “nancy” can't be the file name because it doesn't exist and it isn't a mailbox. And RudiC, could you show me how to do a backup for nancy file.
---------- Post updated at 09:49 PM ---------- Previous update was at 07:55 PM ----------

Quote:
Originally Posted by jgt
The location of the mail box is controlled by the contents of the file "/usr/mmdf/mmdftailor" regardless of whether mmdf or sendmail is the mail processor.
The mail messages in the mailbox are separated with 4 <ctrl>A characters on a line by itself. One at the beginning of the email, and one at the end. So emails in the middle of the file have 2 <ctrl>A lines in a row. You could fix the file using vi, but that may be problematic with a 16mb file.
An alternative is to create a new user in scoadmin, and exit a # prompt.
Code:
#cd /usr/spool/mail
#cp nancy new_user
#cat >nancy
<ctrl>d
#ls -l nancy 
output should show that nancy has a size of 0

.
You have now isolated the problem mail box, which you can process using mutt, and nancy's mailbox is cleared of any errors.
Quote:
Mutt -f nancy nancy is not a mailbox.
-rw------- 1 nancy group 21 Apr 6 20:03 nancy and the emails went somewhere....
-rw------- 1 nancy group 11697 Apr 6 21:05 nancy <-- is still receiving emails
-rw------- 1 nancy group 633980 Apr 6 21:30 nancy
-rw------- 1 root sys 24053921 Apr 6 20:01 new_user
mutt -f new_user: Permission denied (errno = 13) mutt -f new_user
new_user is not a mailbox.so I still can't into that.

-rw------- 1 root sys 24053921 Apr 6 20:01 new_user

And I still can't POP the mail nancy and new_user

Eudora gave error info, There has been an error transferring your mail.
and then the POP server [nancy@worf.yyy.com] said: ERR Mail drop does not start with a From envelope line.
Maby I didn't do your code correctly? I put the code in the way you put it.
Boy this is a mess! I appreciate your help!

Last edited by Nancy L; 04-06-2015 at 11:44 PM..
# 5  
Old 04-08-2015
ERR /usr/spool/mail/nancy is being read by another session

Quote:
Code:
Hi jgt...I tried your code again and I got it! WOW!
-rw-------   1 nancy    group    0 Apr  7 18:35 nancy  so yea I got the 0 !

#cd /usr/spool/mail
#cp nancy new_user
#cat >nancy
<ctrl>d
#ls -l nancy
output should show that nancy has a size of 0

Code:
Now Eudora has a new error,
The POP server[nancy@worf.wizardbythesea.com] said:
ERR /usr/spool/mail/nancy is being read by another session.
However, nancy can POP her emails off Worf, thanks to jgt!

-rw------- 1 nancy group 0 Apr 7 19:42 nancy Now working!

I think the another session is the new_user, like it is connected to nancy's mailbox ?
-rw------- 1 root sys 731783 Apr 7 18:35 new_user is not a mailbox.
Code:
So Dear jgt, how can we disconnect nancy from  new_user  assuming  that is the 2nd session?  
Because Eudora is throwing session errors constantly!:-)

# 6  
Old 04-08-2015
Look in /usr/spool/mail. If there is a file named .nancy.pop, remove it.
There is likely also a file in /tmp with a name in the format 12345.12345 ie 2, 5 digit numbers separated by a ".", that is owned by nancy. Should look something like below.
Code:
#cd /tmp
# l |grep jack                                                     
-r--r-----    1 jack     mail          5 Apr  8 16:32 646368.31276

Remove this file also.
# 7  
Old 04-10-2015
What would I do if I didn't have these Forums!

Code:
Well I did have a 0 Mar 16 11:13 .nancy.pop  but it is gone now. 
# cd /tmp      
#  l |grep jack didn't do any thing 
So I looked at what is in the /tmp folder
# cd /tmp                                                                
# l|more                                                                 
total 8  I don't know what a prw file is.

Code:
                                                     
prw-r--r--   1 root     sys            0 Mar 17 17:39 ch_4655_342.0      
prw-r--r--   1 root     sys            0 Mar 11  2006 ch_4665_342.0      
prw-r--r--   1 root     sys            0 Mar 22 20:55 ch_5221_342.0      
-rw-r--r--   1 root     sys         3676 Apr  7 20:20 daemonstat.any.620 
My Admin for Worf did alot of good custom stuff, so Worf wasn't just "out of the box". 
unfortunately he pass away in 2011 , and I have kept Worf going since then.
 When I can't solve something. That's why I am so grateful to have these Forums! 

And we have a new ERR System error, can't open temporary file, do you own it?
Maybe it's -rw-------   1 root     sys       731783 Apr  7 18:35 new_user 
And Eudora is still throwing session errors constantly! That is just annoying,
I'm just happy I am getting my mail!

 

Previous Thread | Next Thread
Test Your Knowledge in Computers #625
Difficulty: Medium
Functions are defined using the defineFunction reserved keyword in Python.
True or False?

8 More Discussions You Might Find Interesting

1. HP-UX

Unable to receive mails from email relay server

Hi, I have reports that are generated in one server (10.61.1.108), hostname l28bi01. These reports are supposedly sent to a group of email addresses hourly via an email relay server. However, this is not happening. In sendmail.cf in bi01, the DS Smart Relay Host ip address is: ... (3 Replies)
Discussion started by: anaigini45
3 Replies

2. Post Here to Contact Site Administrators and Moderators

Can't POP the mails off the server, the mailbox is corrupt!

SCO OpenServer(TM) Release 5 (worf.xxx.com) Worf is my proxy Server, and it runs my Lan with windows PCs, wk2s & XPs. There are only two users who POP the mailbox from the Server to client, elena and me nancy! elena can POP her email mailbox is just fine. We use Eudora and for years we... (1 Reply)
Discussion started by: Nancy L
1 Replies

3. UNIX for Advanced & Expert Users

Mailbox server performance issue

Hi. my company's mailbox server has severe performance issue on the days while full backup is running. There is huge I/O in another "mail replication process" for standby servers ( which runs all the time, every 15 mins. ). specs of servers :- RHEL5.5 , kernel -2.6.18-53.1.6.el5 , 8 core... (6 Replies)
Discussion started by: gauravsharma29
6 Replies

4. Filesystems, Disks and Memory

Original SAN to a New Solaris Server: Corrupt Label

I've seen several posts that are similar to what I'm trying to do but no dice. I have a server (SunFire V215) that went belly up. I've set up a new one. I'm getting a corrupt label: wrong magic number error. Everything I'm seeing says label the drives, but if I do I'm afraid I'll lose the data... (0 Replies)
Discussion started by: tnelson
0 Replies

5. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies

6. UNIX for Dummies Questions & Answers

Question regarding mails from Solaris server

Hi, I am facing a problem with the mails coming from one of my server. The server hostname is "britten" and one of its aliases is "espmgy" in /etc/hosts. When I am sending any mail from the server its coming from abhi@espmgy.com instead of abhi@britten.com Can anyone tell me from where... (0 Replies)
Discussion started by: max29583
0 Replies

7. UNIX for Advanced & Expert Users

How to allow roaming client to send mails via its mail server

Hi folks OS- Debian Etch Xen postfix courier perdition perdition-mysql MySQL Single public IP Dom0 - Debian Etch workstation Server-1, domU1 for routing with perdition and perdition-mysql installed Server-2, domU2, mail server for domain-A Server-3, domU3, mail server for... (2 Replies)
Discussion started by: satimis
2 Replies

8. UNIX for Dummies Questions & Answers

mails from unix server are not being received

Both A and B people has mail client to mail client interaction happily. 1) mails from A company unix server 'uuu' are being received by A company people onto their mail client. So A company people are happy. 2) mails from A company unix server 'uuu' are not being received by B ... (4 Replies)
Discussion started by: vkandati
4 Replies

Featured Tech Videos