- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems with elm
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2008 05:58 PM
02-05-2008 05:58 PM
Error encountered while attempting to reopen mailbox /var/mail/root for lock;
** Permission denied. **
Any ideas? This is on a 11i box. Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2008 07:36 PM
02-05-2008 07:36 PM
Re: Problems with elm
Regards
Sachit Patil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2008 08:00 PM
02-05-2008 08:00 PM
Re: Problems with elm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2008 02:38 AM
02-06-2008 02:38 AM
Re: Problems with elm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2008 03:08 AM
02-06-2008 03:08 AM
Re: Problems with elm
If the folder Dennis refers to is on NFS and the system does not have root NFS permissions it would explain the error.
Many shops including my own do not provide root user full read-write permissions on NFS. That is left to a few trusted servers if any.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2008 04:47 PM
02-07-2008 04:47 PM
Re: Problems with elm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 10:56 AM
02-11-2008 10:56 AM
Re: Problems with elm
Incoming mailbox for user; it must have mode 660 and group ID mail
/var/mail/loginname.lock
Lock for mail directory
check both of the above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 05:19 PM
02-14-2008 05:19 PM
Re: Problems with elm
No /var/mail/userID.lock file exists
I'm at a loss. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 05:54 PM
02-14-2008 05:54 PM
Re: Problems with elm
How big is /var/mail/root
Is /var/mail a mount point or a folder under /var? What are the permissions of /var/mail
Is /var/mail full?
Run "fuser /var/mail/root". There may be a hung sendmail process keeping the file locked.
Try opening the mail by using the command
"elm -f /var/mail/root"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 06:01 PM
02-14-2008 06:01 PM
Re: Problems with elm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 06:05 PM
02-14-2008 06:05 PM
Re: Problems with elm
mode: 775
group: mail
(user: bin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 08:51 PM
02-14-2008 08:51 PM
Re: Problems with elm
/var/mail is a folder under /var
/var/mail has perms of 775 and bin:mail as the owner:group
/var/mail is not full
fuser shows nothing holding the file (the file has been removed and the server has been rebooted)
I'm still at a loss
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 11:44 PM
02-14-2008 11:44 PM
Re: Problems with elm
You could just give up on new-fangled mailers like elm and go back to the tried and true mailx(1). :-)
At least see if mailx has the same lock issue:
$ mailx
...
? x
(Use "x" to exit without changing anything.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 05:10 AM
02-15-2008 05:10 AM
Re: Problems with elm
Check if there is something wrong with the root account in /etc/passwd
Does it open other mailboxes (other than root)
run "ls /var/mail | od -c " to see if there are any special hidden characters in /var/mail, also /var/mail itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 07:49 AM
02-15-2008 07:49 AM
Re: Problems with elm
What are the permissions of elm itself?
they should be
mode: 2555
user: bin
group: mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 03:54 PM
02-15-2008 03:54 PM
Re: Problems with elm
I'm getting occassional messages in my /var/adm/syslog/mail.log as follows:
Feb 15 18:32:29 Server sendmail[29985]: m1F5KLq00589: timeout waiting for inpu
t from local during Draining Input
Nothing looks unusual about root in /etc/passwd. It matches what we have on our other systems that are working fine.
Running the "ls /var/mail | od -c" command did not reveal any hidden characters.
/usr/bin/elm has the proper perms and ownership.
I appreciate all of the help. I'm really stumped on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2008 04:29 AM
02-16-2008 04:29 AM
Re: Problems with elm
In fact the problem may not be with sendmail either. If you are running some kind of mail preprocessing such as procmail or spam filtering the problem may be there as it is kept and never gates to sendmail. Eventually sendmail times out waiting.
Is any mail delivered to sendmail in the mail.log or is it all trappped and sendmail times out?
Can you email locally within the server from one account to another? Use mailx to send a test message. (mailx can run in sending mode only, to just send a message, as opposed to elm which starts in reading and sending mode that's why it tries to open the mailbox).
Create two test accounts if you have to, say test1, test2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2008 04:22 PM
02-19-2008 04:22 PM
Re: Problems with elm
The mail.log looks clean as the mail does get sent out.
I'm not sure where to go from here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2008 05:10 PM
02-19-2008 05:10 PM
Re: Problems with elm
What are the permissions of sendmail itself?
/usr/sbin/sendmail
mode:7555 (that is -r-sr-sr-t)
user: root
group: mail
Do some more comparison between servers.
Look in /etc/mail and into sendmail.cf, sendmail.cw and see if you notice anything unusual.
mail the following locally
echo TEST | sendmail -v root
and check the mail.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2008 08:54 PM
02-26-2008 08:54 PM
Re: Problems with elm
# who gets all local email traffic ($R has precedence for unqualified names)
DHserver2.$m
If I take this entry out for DH and restart sendmail, when I attempt to send mail to root (or anybody) on this box, sendmail hangs. When I put the entry back, it begins working again. All mail that would normally to THIS server is going to SERVER2.
I'm not sure who made the change. I'm sure it was in an attempt to get this working. But I would like to resolve why I'm having the original problem. Any other thoughts?
PS - The perms/ownership for sendmail are correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 08:57 AM
02-27-2008 08:57 AM
SolutionAlso do a diff of /etc/mail/sendmail.cf with /usr/newconfig/etc/mail/sendmail.cf to see what changes have been made.
Temporarily save your /etc/mail/sendmail.cf and copy over the /usr/newconfig/etc/mail/sendmail.cf file. Remember to shutdown/restart sendmail as you change the cf file. Sendmail should be functioning properly with the generic file from /usr/newconfig/etc/mail/sendmail.cf
Then you take it from there...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 05:19 AM
04-29-2008 05:19 AM