LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Red hat Sendmail Problem (https://www.linuxquestions.org/questions/linux-newbie-8/red-hat-sendmail-problem-234601/)

ferrar360355 09-24-2004 01:20 AM

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.localdomain
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

kees-jan 09-24-2004 01:34 AM

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

ferrar360355 09-24-2004 04:40 AM

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

kees-jan 09-24-2004 06:39 AM

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

ferrar360355 09-24-2004 10:17 AM

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

kees-jan 09-24-2004 11:17 AM

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

ferrar360355 09-24-2004 08:50 PM

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

kees-jan 09-25-2004 02:42 AM

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

ferrar360355 09-25-2004 04:37 AM

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**"

kees-jan 09-25-2004 05:06 AM

Ok, that doesn't help much. Procmail still complains that it can't write, without much extra information.

Maybe your harddisk is full? try
Code:

df /var/spool/mail
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

ferrar360355 09-25-2004 08:53 AM

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
Code:

df /var/spool/mail
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 10:02 AM.