Hello,
I have a solaris 10 server running Oracle. The oracle app created a file larger than 2gb in /var/mail directory. when tried to run mailx under that user, it'll report:
mail: can't stat mailfile.
I believe this is a normal behavior for Oracle to create the log file in the /var/mail directory with larger than 2gb.
The Os is using vxfs so the 2gb file limitation should not be an issue.
example:
# pwd
/var/mail
# ls -lh
total 11266464
drwxrwxr-x 2 root mail 96 Nov 9 13:56 :saved
-rw-rw---- 1 test mail 2.4G Nov 10 13:30 test
-rw------- 1 ambi other 2.0G Nov 10 14:44 ambi
-rw-rw---- 1 root mail 516K Dec 16 2009 root
# mail
mail: Cannot stat mailfile
If I remove the file(ambi), then I can send mail with no problem
# rm ambi
# pwd
/var/mail
# ls -lh
total 7072144
drwxrwxr-x 2 root mail 96 Nov 9 13:56 :saved
-rw-rw---- 1 test mail 2.4G Nov 10 13:30 test
-rw-rw---- 1 root mail 516K Dec 16 2009 root
# mail
No mail.
Please let me know if you need more info.
Thank You.
bb
chgroup mail /var/mail/ambi
i.e. if you create any file in /var/mail/filename where mail is not the group do you get the same issue.
Is the file created by oracle has the correct format for a mailbox?
I think the normal location would be within $ORA_HOME/var/log
/var/mail should only have mailboxes created by MTA/MDA.