Sendmail non lavora più

Salve a tutti,

abbiamo un server fadora con un form php che manda posta ad una casella esterna. Fino all’ultimo spegnimento della macchina tutto ok adesso ci siamo accorti che la posta non parte più.

Messaggi di errore che riusciamo a rintracciare (maillog):

Jun 25 08:55:38 localhost sendmail[2524]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 598: fileclass: cannot open ‘/etc/mail/trusted-users’: Permission denied

Jun 25 08:55:39 localhost sm-msp-queue[2531]: NOQUEUE: SYSERR(root): /etc/mail/submit.cf: line 0: cannot open: Permission denied

In partenza, al lancio dei demoni abbiamo un errore sul servizio sm-client sempre con un permission denied.

Qualcuno ha qualche suggerimento da dare ?
Grazie anticipato a tutti.

Enrico

ci fai vedere :

# ls -l /etc/mail/

[quote=geno]
ci fai vedere :

[code]

ls -l /etc/mail/

[/code][/quote]
Eccolo:
-rw-r–r-- 1 root root 469 22 nov 2007 access
-rw-r----- 1 root root 12288 10 gen 2008 access.db
-rw-r–r-- 1 root root 233 22 nov 2007 domaintable
-rw-r----- 1 root root 12288 10 gen 2008 domaintable.db
-r–r--r-- 1 root root 5584 22 nov 2007 helpfile
-rw-r–r-- 1 root root 64 22 nov 2007 local-host-names
-rw-r–r-- 1 root root 997 22 nov 2007 mailertable
-rw-r----- 1 root root 12288 10 gen 2008 mailertable.db
-rw-r–r-- 1 root root 1048 22 nov 2007 Makefile
-rw-r–r-- 1 root root 58642 25 giu 08:49 sendmail.cf
-rw-r–r-- 1 root root 7205 22 nov 2007 sendmail.mc
drwxr-xr-x 2 root root 4096 2 lug 2008 spamassassin
-rw-r–r-- 1 root root 40671 25 giu 08:50 submit.cf
-r–r--r-- 1 root root 41708 17 set 2007 submit.cf.bak
-r–r--r-- 1 root root 41716 22 nov 2007 submit.cf.rpmnew
-rw-r–r-- 1 root root 941 22 nov 2007 submit.mc
-rw-rw-rw- 1 root root 131 25 giu 08:46 trusted-users
-rw-r–r-- 1 root root 1847 22 nov 2007 virtusertable
-rw-r----- 1 root root 12288 10 gen 2008 virtusertable.db

I permessi mi sembrano corretti tranne il :

che io invece ho impostato cosi -rw-r–r-- .
Al momento non sono ancora riuscito a riprodurre l errore esatto …
ci fai vedere come è settata la linea 598 ?

# cat -n /etc/mail/sendmail.cf|head -598|tail -1

e anche

# head /etc/mail/submit.cf 

Ft/etc/mail/trusted-users

[quote]
e anche

[code]

head /etc/mail/submit.cf

[/code][/quote]

Copyright © 1998-2004 Sendmail, Inc. and its suppliers.

All rights reserved.

Copyright © 1983, 1995 Eric P. Allman. All rights reserved.

Copyright © 1988, 1993

The Regents of the University of California. All rights reserved.

By using this file, you agree to the terms and conditions set

forth in the LICENSE file which can be found at the top level of

the sendmail distribution.

ci fai vedera anche

# /etc/init.d/sendmail restart

magari puo esserci di aiuto
non capisco come ti possa negare il permesso sul file trusted-users…se qualcuno avesse delle idee
P.S.
Se ti rispondo con tempi bilblici è perché sono un po incasinato ultimamente :slight_smile:

Purtroppo non funziona, il demone non parte proprio figurati se restarta :cry:

che non funziona e quindi non restarta l avevo capito :slight_smile:
mi interessava vedere il messaggio di errore da terminale

Ecco la messaggistica che ricevo al restart:

Arresto di sm-client: [FALLITO]
Arresto di sendmail: [FALLITO]
Avvio di sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 598: fileclass: cannot open ‘/etc/mail/trusted-users’: Permission denied [FALLITO]
Avvio di sm-client: /etc/mail/submit.cf: line 0: cannot open: Permission denied [FALLITO]

Output:

# ll /etc/mail

[quote=MarioS]
Output:

[code]

ll /etc/mail

[/code][/quote]

totale 356
-rw-r–r-- 1 root root 469 22 nov 2007 access
-rw-r----- 1 root root 12288 10 gen 2008 access.db
-rw-r–r-- 1 root root 233 22 nov 2007 domaintable
-rw-r----- 1 root root 12288 10 gen 2008 domaintable.db
-r–r--r-- 1 root root 5584 22 nov 2007 helpfile
-rw-r–r-- 1 root root 64 22 nov 2007 local-host-names
-rw-r–r-- 1 root root 997 22 nov 2007 mailertable
-rw-r----- 1 root root 12288 10 gen 2008 mailertable.db
-rw-r–r-- 1 root root 1048 22 nov 2007 Makefile
-rw-r–r-- 1 root root 58642 25 giu 08:49 sendmail.cf
-rw-r–r-- 1 root root 7205 22 nov 2007 sendmail.mc
drwxr-xr-x 2 root root 4096 2 lug 2008 spamassassin
-rw-r–r-- 1 root root 40671 25 giu 08:50 submit.cf
-r–r--r-- 1 root root 41708 17 set 2007 submit.cf.bak
-r–r--r-- 1 root root 41716 22 nov 2007 submit.cf.rpmnew
-rw-r–r-- 1 root root 941 22 nov 2007 submit.mc
-rw-rw-rw- 1 root root 131 25 giu 08:46 trusted-users
-rw-r–r-- 1 root root 1847 22 nov 2007 virtusertable
-rw-r----- 1 root root 12288 10 gen 2008 virtusertable.db

Hai eliminato o fatto delle modifiche ai file?
Mi sembra che ne manchi qualcuno…

Che è successo il 25 giugno?
sendmail.cf/submit.cf/trusted-user sono stati modificati
a quella data.

per trusted-user ci sta una correzione manuale,
ma per gli altri due, di solito si modifica il
corrispondente “.mc”.

ma in questo caso…

@ bncrm
Puoi darci altri lumi?

P.S. mi scuso per il ritardo nella risposta…

Scusa tu per il MIO di ritardo.
Abbiamo reinstallato il server (per altri motivi) ed abbiamo quindi risolto il problema.
Grazie dell’aiuto.