View previous topic :: View next topic |
Author |
Message |
zubator Apprentice
Joined: 16 Sep 2004 Posts: 174 Location: Moscow
|
Posted: Mon Nov 15, 2004 11:01 pm Post subject: dead.letter |
|
|
копался тут в домашнем каталоге и нашел файл сабжевый, только вот не пойму что это за файл, я его точно не создавал, посмотрел с помощью file и мне вот что выдало
dead.letter: ISO-8859 text, with CRLF, CR, LF line terminators
че за файл такой весом 2 Гб!!!!!!!! посмотрел его содержимое, а там оказали записи того что я проигрывал с помощью mpg123 и mplayer, странно..... |
|
Back to top |
|
|
zubator Apprentice
Joined: 16 Sep 2004 Posts: 174 Location: Moscow
|
Posted: Mon Nov 15, 2004 11:12 pm Post subject: |
|
|
причем он заново создается ...... и растет в размере и постоянно что-то логит , щя буду следить...))... |
|
Back to top |
|
|
hermes_jr l33t
Joined: 26 Feb 2004 Posts: 701 Location: Moscow, Russia
|
Posted: Mon Nov 15, 2004 11:16 pm Post subject: |
|
|
https://forums.gentoo.org/viewtopic.php?t=138159
g4c9z wrote: |
I've discovered that in general, dead.letter is often created by cron jobs. It seems like you can prevent it from appearing by changing the line
MAILTO=root
in /etc/crontab to
MAILTO=""
What the line was doing, according to "man 5 crontab", was e-mailing the user it's set to each time a cron job is run, giving them the output of the job. Since I and many people don't have an e-mail server to send the mail, it goes in this file (and prints an error message to /var/log/messages). For me, this was causing /root/dead.letter to grow really big (over half a GB) and screwing up my file backups.
I wonder why the default /etc/crontab for Gentoo has MAILTO=root in it. Default settings should always do nothing unless doing something is always good (and creating a 1/2 GB junk file in /root is definitely not good).
|
Irrumator wrote: |
Time to sort this mess out. dead.letter is left by mailer programs when they can't contact your MTA. Example scenario - 'mutt' tries to contact the MTA (usually by localhost) to send your letter, however, it fails, and leaves the letter in your homedir.
This usually mean that the mailer (or MUA, Mail User Agent) is misconfigured and is trying to send mail the wrong way. The dead.letter showing up in your homedir is the output of some script that is supposed to run and email the output to the user it is run as. However, the mailer that it uses can't find the MTA (you are probably using your ISPs SMTP servers, or as it's called a smarthost) and thus just dumps the contents in your homedir.
The solution is to install something like exim4 that is configured for local delivery, or better yet, just have it handle all your mail needs - local mails should be handled by exim4, mails to the outside world should be sent off to your smarthost.
|
Ммм?
Last edited by hermes_jr on Mon Nov 15, 2004 11:23 pm; edited 1 time in total |
|
Back to top |
|
|
zubator Apprentice
Joined: 16 Sep 2004 Posts: 174 Location: Moscow
|
Posted: Mon Nov 15, 2004 11:19 pm Post subject: |
|
|
ЮЮЮЮЮЮЮЮ, АКЮЦНДЮПЧ, РЕОЕПЭ БЯЕ ЪЯМН |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|