Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th February 2008, 15:02
whoisit whoisit is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default Mail box lock

Hi guys,

My linux CentOS 4.5 postfix is misbehaving, from time to time I keep on getting the below error and during that time any account copied in the mail or is forwarded mail by that account gets multiple repetition of the same mail until delivery is made to the mailbox having a problem.
Error:

(cannot update mailbox /var/mail/foo. for user foo. unable to lock for exclusive access: Resource temporarily unavailable)

Help!!!
__________________
Whoisit
Reply With Quote
Sponsored Links
  #2  
Old 6th February 2008, 13:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

It can happen that some other process (e.g. Postfix) is currently accessing the mailbox, and then you cannot fetch mails from it until this other process is finished.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 6th February 2008, 16:35
whoisit whoisit is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

This is happening during delivery of mail to mailbox

Feb 6 16:01:20 mail postfix/local[26248]: D84D34511F8: to=<foo@mail.xxx.com>, orig_to=<zzz@xxx.com>, relay=local, delay=71, delays=25/6.3/0/39, dsn=4.2.0, status=deferred (cannot update mailbox /var/mail/foo for user foo. unable to lock for exclusive access: Resource temporarily unavailable)
__________________
Whoisit
Reply With Quote
  #4  
Old 7th February 2008, 18:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

What's the output of
Code:
ls -la /var/mail
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 8th February 2008, 07:22
whoisit whoisit is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

the output is:
lrwxrwxrwx 1 root root 10 Oct 8 14:14 /var/mail -> spool/mail
__________________
Whoisit
Reply With Quote
  #6  
Old 9th February 2008, 19:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Ok, what's the output of
Code:
ls -la /var/spool/mail
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 12th February 2008, 16:07
whoisit whoisit is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

output of ls -la /var/spool/mail

drwxrwxr-x 2 root mail 4096 Feb 12 16:31 .
drwxr-xr-x 18 root root 4096 Oct 8 15:35 ..
-rw------- 1 as mail 1179 Jan 21 10:55 as
-rw------- 1 ast mail 55877822 Feb 12 16:31 ast
-rw-r--r-- 1 root root 223360024 Feb 8 13:15 backup
-rw------- 1 da mail 9151 Feb 12 12:36 da
-rw------- 1 foo mail 3443748 Feb 12 16:31 foo
-rw------- 1 e mail 0 Feb 4 10:09 e
-rw------- 1 eu mail 37306 Feb 12 09:58 eu
__________________
Whoisit
Reply With Quote
  #8  
Old 12th February 2008, 18:52
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

That seems like a race condition to me, use lsof to see what application has opened the file and is not releasing it.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #9  
Old 15th March 2008, 09:23
whoisit whoisit is offline
Junior Member
 
Join Date: Jan 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The mail box is being locked by a blackberry device which pops mail from it. Is there a way of configuring the black berry or the mailbox to avoid this conflict
__________________
Whoisit
Reply With Quote
  #10  
Old 15th March 2008, 18:13
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
 
Default

switch to using imap
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
procmail can't write Hellbound General 27 8th June 2009 22:51
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 15:17
Postfix reject connections gabrix Server Operation 27 25th January 2007 09:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 12:47


All times are GMT +2. The time now is 11:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.