Le Jeu 10 décembre 2009 21:33, Laurent HENRY a écrit :
> Bonjour,

Bonjour Laurent,

>      Je constate une erreur sous sendmail (sur opensuse 11.0)
>
> Dans les logs sendmail, je vois:
> Dec 10 16:50:01 smtp2 sendmail[27737]: NOQUEUE: SYSERR(mail): can not
> chdir(/var/spool/mqueue/): Permission denied
> Dec 10 17:00:01 smtp2 sendmail[28680]: NOQUEUE: SYSERR(mail): can not
> chdir(/var/spool/mqueue/): Permission denied

Humm, un problème de permissions.

> les permissions du répertoire sont:
>  var/spool/clientmqueue # l
> total 16
> drwxrwx---  2 mail mail  176 déc. 10 20:59 ./
> drwxr-xr-x 18 root root  464 juin  2  2009 ../

Pareil... avec opensuse 11.1. Et je reçois des mails...

f...@testsuse:~> su - -c "ls -al /var/spool/clientmqueue/"
Mot de passe :
total 16
drwxrwx---  2 mail mail 4096 Dec 15 00:30 .
drwxr-xr-x 14 root root 4096 Dec 14 23:42 ..
-rw-------  1 mail mail   53 Dec 15 00:30 sm-client.pid
-rw-rw----  1 root mail 1448 Dec 15 00:30 sm-client.st

> En parcourant divers forums, il est question de mettre le répertoire en
> chmod
> 777 ou autre.

Mouais, pas une bonne idée.

Question, qui lance sendmail-client sur ton serveur? mail ?

f...@testsuse:~> ps aux | grep send
root      7089  0.0  0.1  65388  2460 ?        Ss   00:30   0:00 sendmail:
accepting connections
mail      7100  0.0  0.0  34548  1704 ?        Ss   00:30   0:00 sendmail:
Queue control
mail      7101  0.0  0.1  34760  2256 ?        S    00:30   0:00 sendmail:
running queue: /var/spool/clientmqueue

humm, il y a des choses intéressantes dans /etc/sysconfig/sendmail :
## Type:        string
## Default:     "-L sendmail-client -Ac -qp1m"
#
# with what parameters should sendmail _client_ be started?
# This is used to start the sendmail client daemon which runs as user
# mail and look at /var/spool/clientmqueue/ for any mail which should
# put to port 25 (smtp port) of localhost on which the master sendmail
# is listen.
# "-Ac" will force sendmail to use submit.cf. "-qp1m" will look every
# minute with the help of a persistent child for the queue to deliver
# mails to the port 25 of localhost where master sendmail daemon is listen.
# Note: to ensure that local mails will be delivered as fast as possible
# the full qualified host name should be part of SENDMAIL_LOCALHOST.
#
SENDMAIL_CLIENT_ARGS="-L sendmail-client -Ac -qp1m"

A plus
Fred

-- 
Nop

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Répondre à