Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
09-24-2004, 01:20 AM
#1
LQ Newbie
Registered: Sep 2004
Posts: 6
Rep:
Red hat Sendmail Problem
Mail Content
The original message was received at Fri, 24 Sep 2004 01:01:28 +0800 from [211.162.59.193]
----- Transcript of session follows -----
procmail: Error while writing to "/var/spool/mail/backup"
backup... Deferred: local mailer (/usr/bin/procmail) exited with EX_TEMPFAIL
Warning: message still undelivered after 4 hours Will keep trying until message is 5 days old
Attached Txt File
Reporting-MTA: dns; localhost.localdomain
Arrival-Date: Fri, 24 Sep 2004 01:01:28 +0800
Final-Recipient: RFC822;
JOJO@CERTOSA.COM
X-Actual-Recipient: RFC822;
backup@localhost.loca ldomain
Action: delayed
Status: 4.2.0
Diagnostic-Code: X-Unix; 75
Last-Attempt-Date: Fri, 24 Sep 2004 05:32:55 +0800
Will-Retry-Until: Wed, 29 Sep 2004 01:01:28 +0800
how can i fix it ??/
thx for help
09-24-2004, 01:34 AM
#2
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
Uh... Does /var/spool/mail exist? If so, what permissions are set for it?
Does /var/spool/mail/backup exist? With what permissons?
To answer these, open a terminal window, and type
ls -ld /var/spool/mail
ls -l /var/spool/mail/backup
and post the result.
Groetjes,
Kees-Jan
09-24-2004, 04:40 AM
#3
LQ Newbie
Registered: Sep 2004
Posts: 6
Original Poster
Rep:
ls -ld /var/spool/mail
drwxrwxr-x 2 root mail 4096 ?? 24 17:38 /var/spool/mail
ls -l /var/spool/mail/backup
-rw------- 1 backup mail 2147483369 9月 24 17:40 /var/spool/mail/backup
Sometime this problem will issue ,but something haven't this problem
09-24-2004, 06:39 AM
#4
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
I would guess that procmail refuses to write mail to /var/spool/mail/backup, because it has insufficient permissions.
Try typing (as root)
chmod g+rw /var/spool/mail/backup
and see if that improves things.
Groetjes,
Kees-Jan
09-24-2004, 10:17 AM
#5
LQ Newbie
Registered: Sep 2004
Posts: 6
Original Poster
Rep:
Quote:
Originally posted by kees-jan
I would guess that procmail refuses to write mail to /var/spool/mail/backup, because it has insufficient permissions.
Try typing (as root)
chmod g+rw /var/spool/mail/backup
and see if that improves things.
Groetjes,
Kees-Jan
thank you very much
but this problem just happen in sometime
09-24-2004, 11:17 AM
#6
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
I understand.
That means I can't much help you, unless you know exactly when this happens.
Is there an /etc/procmailrc? What is in it?
Is there an ~backup/.procmailrc? What is in it?
(Try typing
cat /etc/procmailrc
cat ~backup/.procmailrc
)
Groetjes,
Kees-Jan
09-24-2004, 08:50 PM
#7
LQ Newbie
Registered: Sep 2004
Posts: 6
Original Poster
Rep:
Quote:
Originally posted by kees-jan
I understand.
That means I can't much help you, unless you know exactly when this happens.
Is there an /etc/procmailrc? What is in it?
Is there an ~backup/.procmailrc? What is in it?
(Try typing
cat /etc/procmailrc
cat ~backup/.procmailrc
)
Groetjes,
Kees-Jan
both no such file or directory
anyway, very thx for your help
09-25-2004, 02:42 AM
#8
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
Very well. Log in as user backup, and create a file ~/.procmailrc with the following content:
Code:
LOGFILE=${HOME}/procmail.log
VERBOSE=yes
LOGABSTRACT=all
Make sure it is readable only by user backup by typing
Code:
chmod 600 ~/.procmailrc
Now, if this problem happens again, the file ~backup/procmail.log should contain an additional errormessage.
Groetjes,
Kees-Jan
09-25-2004, 04:37 AM
#9
LQ Newbie
Registered: Sep 2004
Posts: 6
Original Poster
Rep:
From
patrick@preford.com.hk Sat Sep 25 17:34:57 2004
Subject: Mail Delivery (failure
stephen@certosa.com )
Folder: **Requeued** 42025
procmail: [10633] Sat Sep 25 17:34:57 2004
procmail: Assigning "LOGABSTRACT=all"
procmail: Locking "/var/spool/mail/backup.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/backup"
procmail: Opening "/var/spool/mail/backup"
procmail: Acquiring kernel-lock
procmail: Error while writing to "/var/spool/mail/backup"
procmail: Truncated file to former size
procmail: Unlocking "/var/spool/mail/backup.lock"
procmail: Notified comsat: "backup@:**Requeued**"
09-25-2004, 05:06 AM
#10
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
Ok, that doesn't help much. Procmail still complains that it can't write, without much extra information.
Maybe your harddisk is full? try
If you have diskspace left, you could try to write to /var/spool/mail/backup yourself, and see what happens, like so (as root)
Code:
cd /var/spool/mail
cp -p backup backup.bak
ls / >> backup
cat backup
This should display the content of the mailbox of user "backup", with the content of your root directory (/) appended.
don't forget to restore the backup of your mailbox, like so:
Code:
rm backup
mv backup.bak backup
If this succeeds as root, you could try this procedure as user backup and as user mail.
Groetjes,
Kees-Jan
09-25-2004, 08:53 AM
#11
LQ Newbie
Registered: Sep 2004
Posts: 6
Original Poster
Rep:
Quote:
Originally posted by kees-jan
Ok, that doesn't help much. Procmail still complains that it can't write, without much extra information.
Maybe your harddisk is full? try
If you have diskspace left, you could try to write to /var/spool/mail/backup yourself, and see what happens, like so (as root)
Code:
cd /var/spool/mail
cp -p backup backup.bak
ls / >> backup
cat backup
This should display the content of the mailbox of user "backup", with the content of your root directory (/) appended.
don't forget to restore the backup of your mailbox, like so:
Code:
rm backup
mv backup.bak backup
If this succeeds as root, you could try this procedure as user backup and as user mail.
Groetjes,
Kees-Jan
my harddisk have enough space , and i try write , also no proble
All times are GMT -5. The time now is 08:31 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News