LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-04-2006, 11:50 AM   #1
Hep
LQ Newbie
 
Registered: Dec 2005
Posts: 25

Rep: Reputation: 15
Bogus mailboxes when symlinked


Hi, I use procmail v3.21 and the mailboxes are in /var/spool/mail, but the free space on this partition is almost 0, I tried to moved some mailboxes to another filesystem, /var/spool/mail2, and make symbolic links to them in /var/spool/mail but when an email arrives it create a file and overwrite the link, I read the man pages for procmail and they said that no links are permitted.

For the mails that i symlinked to /var/spool/mail i create a .procmailrc file with the DEFAULT var pointing to /var/spool/mail2 on the HOME of the users that I moved, actually the mail is deliver to /var/spool/mail2 but when a new email arrives overwrite the link with a file $LOGNAME with 0 bytes so i can't read it even when it exist on the other file system (/var/spool/mail2). How can i read the mailbox directly from /var/spool/mail2 and not from a symlink in /var/spool/mail.

I don't know what else to do I tried to make LVM but the kernel that i use don't permit LVM.

Any suggestion?

Thanks in advance.
 
Old 07-04-2006, 12:13 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
the mailboxes are in /var/spool/mail, but the free space on this partition is almost 0, I tried to moved some mailboxes to another filesystem, /var/spool/mail2
Prolly just an example but "/var/spool/mail2" doesn't sound like a different partition to me. If you have space on a different partition you could copy mailboxes over (check if they're not in use) and then mount --bind the new over the old dir. As temporary workaround that could do. The real solution prolly would be asking users to clean up mailboxes RSN...
 
Old 07-04-2006, 01:10 PM   #3
Hep
LQ Newbie
 
Registered: Dec 2005
Posts: 25

Original Poster
Rep: Reputation: 15
Hi, thanks for your answer, actually I have space on the other partition but is the same that I have on /var/spool/mail so move and mount do not help in this case. On the other hand I sent an email asking them to clean up their mailboxes but they just ignored it, I think i should send and ultimatum to clean or to lose their mailboxes. thanks again.
 
  


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
Renamed bogus "/var/mail/macleanl" into "/var/mail/BOGUS.macleanl.xPVB" paul_mat Linux - Networking 1 07-04-2006 12:50 PM
Named giving bogus IP? looseCannon AIX 1 06-21-2006 03:45 AM
Symlinked CGI scripts Chrax Linux - Networking 4 05-04-2005 08:39 AM
Bogus logical sector Jeebizz Slackware 4 01-07-2005 05:57 PM
Bogus XP systems on ebay etc beagle2 General 1 11-05-2004 04:51 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:58 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