General
cancel
Showing results for 
Search instead for 
Did you mean: 

<usrname>.lock file in /var/mail is not being removed

Chuck Sims
Advisor

<usrname>.lock file in /var/mail is not being removed

I have a user (paradigm) on one of my servers (barney) that can't receive mail. Mail to this user gets bounced back to the postmaster (root) with the following information:

----- The following addresses had permanent fatal errors -----


----- Transcript of session follows -----
/var/mail/paradigm.lock: File exists
mail: /var/mail/paradigm.lock not creatable after 100 tries
550 ... Can't create output

I've deleted the paradigm.lock file in /var/mail, but it just comes back the next time email is received for that user. I've also sent mail to myself on barney (the server), and that works well.

The problem appears to be that the .lock file is not being removed, but I don't know how to fix the problem. Any suggestions would be greatly appreciated.

Thanks...

- Chuck
"I feel like I'm diagonally parked in a parallel universe."
9 REPLIES
Ken Penland_1
Trusted Contributor

Re: <usrname>.lock file in /var/mail is not being removed

sounds like a permission problem...what is the permissions of the files/dirs?
'
Mel Burslan
Honored Contributor

Re: <usrname>.lock file in /var/mail is not being removed

is your /var/mail permissions and ownership 775 [ bin:mail ] ?
________________________________
UNIX because I majored in cryptology...
Ken Penland_1
Trusted Contributor

Re: <usrname>.lock file in /var/mail is not being removed

Jose Mosquera
Honored Contributor

Re: <usrname>.lock file in /var/mail is not being removed

Hi,

Pls cerify that "SENDMAIL_SERVER=1" into /etc/rc.config.d/mailservs file.
Then execute:
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start

This procedure guarantees the availabilty of your server to receive incoming messages

Pls try it.

Rgds.
Uday_S_Ankolekar
Honored Contributor

Re: <usrname>.lock file in /var/mail is not being removed

Permission for mail directory could be an issue here: /var/mail should have permission like this
drwxrwxr-x 2 bin mail 1024 Jan 27 16:07 mail

and user should have
-rw-rw---- 1 paradigm mail
Good Luck..
Chuck Sims
Advisor

Re: <usrname>.lock file in /var/mail is not being removed

Aloha All,

I don't think permissions are a problem. Here is what my /var/mail directory looks like:

barney:/var/mail# ls -la
total 78
drwxrwxr-x 2 bin mail 1024 Jun 10 09:49 .
dr-xr-xr-x 28 bin bin 2048 Sep 26 2003 ..
-rw-rw---- 1 adm mail 28148 Jun 9 23:20 adm
---------- 1 daemon mail 0 Jun 9 16:09 paradigm.lock

Ken: I checked the thread you sent, but it doesn't seem to apply since the lock is being created in /var/mail rather than /usr/bin/mail. Thanks anyway.

Jose: My /etc/rc.config.d/mailservs files is set correctly. I've stopped and restarted sendmail as you suggested. I'm running some tests now to see if the problem is still there.

Thanks...

- Chuck
"I feel like I'm diagonally parked in a parallel universe."
Chuck Sims
Advisor

Re: <usrname>.lock file in /var/mail is not being removed

Aloha All,

It looks like I still have the problem. After stopping and restarting sendmail, I deleted the paradigm.lock file and tried to send a message to paradigm@barney.byu.edu. The following is what showed up in /var/adm/syslog/mail.log:

Jun 10 10:48:31 barney sendmail[22403]: KAA22403: from=, size=597, class=0, pri=30597, nrcpts=1, msgid=<2901020.1086886059248.JavaMail.SYSTEM@alana>, proto=ESMTP, relay=email2.byu.edu [128.187.22.134]
Jun 10 10:48:31 barney sendmail[22404]: KAA22403: SYSERR(root): mailer local died with signal 11
Jun 10 10:48:31 barney sendmail[22404]: KAA22403: to=, delay=00:00:01, xdelay=00:00:00, mailer=local, stat=Deferred

Any further suggestions?

Thanks...

- Chuck
"I feel like I'm diagonally parked in a parallel universe."
Sanjay_6
Honored Contributor

Re: <usrname>.lock file in /var/mail is not being removed

Hi Check,

Try setting the /var/mail directory permissions to 775 (bin:mail) and see if it helps.

Hope it does.

Regds
Chuck Sims
Advisor

Re: <usrname>.lock file in /var/mail is not being removed

Aloha Sanjay,

The directory permissions for /var/mail are already set to 775.

Thanks anyway...

- Chuck
"I feel like I'm diagonally parked in a parallel universe."