LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2007, 04:43 AM   #1
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Rep: Reputation: 15
/var/mail files disappear


hello!!

Currently, mail is delivered into /var/mail/*, but after about 5 minutes, the file disappears. For example, if mail is delivered to the user SMITH (/var/mail/SMITH), you can see the email when you view the file '/var/mail/SMITH', but after about 5minutes, the file SMITH is no longer there unless another email is sent.

What I need is is for mail to be delivered to their respected files in /var/mail and to STAY there permanently. So any new emails coming in get automatically appended to the file. So you can see a history of all email in the file. Here is the example of one file '/var/mail/SMITH' to show you what permissions are on the file. I'll make a note that some other mailboxes are OK within /var/mail, which is REALLY strange!

This example is when /var/mail/SMITH just receive email, but after about 5min, this file will disappear, which isn't want i need. Sorry to keep repeating, but it seems like a weird thing and want to make sure the scenario of events of clear...THANK YOU!!!

[root@server mail]# ls -lah SMITH
-rw------- 1 SMITH mail 3.3K Nov 27 10:39 SMITH
[root@server mail]#
 
Old 11-28-2007, 01:10 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Is SMITH by any chancing running a mail-client? Does it support
local pick-up? Is there a file ~SMITH/Mail ?



Cheers,
Tink
 
Old 11-28-2007, 03:45 AM   #3
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
no mail-client running..not sure about 'local-pickup'?? i guess it relates to your question about the mail-client, so i'm thinking, no(?)...there is no '~SMITH/Mail'..is there any sort of logging that can show what might be deleting/clearing this file? i've tried to watch messages and maillog but nothing outstanding....

any other ideas?

appreciate your reply..thanks!
 
Old 11-28-2007, 08:49 PM   #4
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
About 5 minutes, or exactly every 5 minutes. In other words, do the mails stay around for 5 minutes each, or do they disappear at a point exactly 5 minutes apart. If it's the latter, then I would suspect some mail application, either locally, or remotely via something like popa3d.

Cheers.
 
Old 11-29-2007, 08:13 AM   #5
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Original Poster
Rep: Reputation: 15
its OK now..thanks! i took your advice and noticed it a script in the cron that cleared the file every 5,15,25,35,45,55 past the hour...looking at times when the file was deleted and seeing that this script runs (one of many cron jobs!), i disabled it and noticed that the mail didn't deleted..our programmer made some changes to their script and it works!

guess this comes down to logical troubleshooting..

thanks again for the tip about timing...

Cheers!!!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/mail - emails disappear? turbo_acura Linux - Software 1 06-22-2007 03:22 PM
HELP! with Posftix mail disappear after delivered combilli Linux - Server 0 06-13-2007 04:51 AM
spam_buttons move from /var/spool/mail/user to $HOME/mail/Junk paul_mat Linux - Software 0 05-25-2006 02:07 AM
Import Mail from /var/spool/mail (sendmail) to a MailDir Format in Postfix shawnbishop Linux - Software 0 04-06-2006 10:44 AM
How to remove files in /var/log /news and /mail keirobyn Linux - Newbie 6 07-19-2002 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration