mail: Write error in copymt()

I hate Monday's...

Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
You have new mail.
DONE!
root@bender:/> mail
mail: Write error in copymt()

Google seems to come up short for this error...

Please provide those outputs:
uptime
who -r
uname -a
ls -l /etc/mail/sendmail*
mailq -sv
grep -i mail /var/adm/messages or messages.0
/usr/sbin/sendmail -bv address

Hi ippy98,

the copymt() function within the mail app is resonsible for copying mail to a temporary location (see also OpenSolaris's OpenGrok). This temporary location is usually /var/tmp, so I would suppose you have a problem with either /var/tmp or the place where your mail is coming from. Can you manually open /var/mail/root? What does df say about /var/tmp? If df doesn't indicate a problem (e.g. full filesystem) truss the mail application and post it's output to one of those pastebins please.

  • less $MAIL (or less /var/mail/root)
  • df -k /var/tmp
  • truss -o mail.truss mail

Sebastian