mail: Write error in copymt()


 
Thread Tools Search this Thread
Operating Systems Solaris mail: Write error in copymt()
# 1  
Old 01-10-2010
mail: Write error in copymt()

I hate Monday's...

Code:
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...
# 2  
Old 01-10-2010
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

Last edited by incredible; 01-10-2010 at 09:57 AM..
# 3  
Old 01-18-2010
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. UNIX for Beginners Questions & Answers

How to write a UNIX script to send a mail to the respective individual users about their groups?

Hi Team, I got a requirement to send a mail to the individual users of a unix server about their respective groups. can some one help me to provide the script as I am unable to write that. I tried with below lines but I come out with errors. cat /etc/passwd | awk -F':' '{ print $1}' |... (6 Replies)
Discussion started by: harshabag
6 Replies

3. Shell Programming and Scripting

How to write this script:- check output word and send a mail?

Hi Guys, I am not Good at scripting. I need to write a script such that if output of command shows the particular word in output then send mail to abc@compay.com -bash-3.2$ ps -ef | grep bpbkar root 6040 1 0 13:05:19 ? 0:00 bpbkar -r 2678400 -ru root -dt 47395 -to 0... (20 Replies)
Discussion started by: manalisharmabe
20 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. Shell Programming and Scripting

how to write a shellscript to send a mail alert to the website user based on license expiration time

hi, i am very much new to shell scripting i have a requirement that i have to develop a License Renewal Alert system that has to give a alert mail to the users before 30days of user account expiration, by checking expiration date of the user with the data base, this system will... (0 Replies)
Discussion started by: deepu_Shscripts
0 Replies

6. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

7. Solaris

fssnap error :snapshot error: File system could not be write locked

Hi Guys. This is part of my filesystem structure : Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 47G 5.2G 42G 12% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% ... (2 Replies)
Discussion started by: aggadtech08
2 Replies

8. UNIX for Dummies Questions & Answers

cpio write i/o error

Hiyas. Last night I was testing one of our shell script (not made by me) that is having some problems. What it does is that it backups some oracle data to tape and it is failing. I put the commands manually that it uses inside it to make the backup, in order to debug where it was failing. I ran the... (6 Replies)
Discussion started by: fidodido
6 Replies

9. Shell Programming and Scripting

How can I write a HTML file in UNIX and sent it as a body of a mail

Hi, How can I write a HTML file in Unix. Once I do that, I want to send this file as a body of a mail, along with writing a subject for the mail I am sending through unix. How can that be done? (0 Replies)
Discussion started by: diwa81
0 Replies

10. UNIX for Dummies Questions & Answers

How do i write a mail from a script

Hi all, How do i send a mail using mailx r mail command from a script with the following information along with it a) the mail should be send to a person with a CC to some other person b)with a subject c) with a message. this mail has to be send withing a script so u cannot pass any... (4 Replies)
Discussion started by: arunava_maity
4 Replies
Login or Register to Ask a Question