Merci epo pour ton aide.
En fait, je me rends compte que je n'y suis pas encore. J'ai le message suivant quand j'envoie un mail via un formulaire web :
Summary:
SELinux is preventing the sendmail from using potentially mislabeled files
./mail (etc_mail_t).
Detailed Description:
SELinux has denied the sendmail access to potentially mislabeled files ./mail.
This means that SELinux will not allow httpd to use these files. Many third
party apps install html files in directories that SELinux policy cannot predict.
These directories have to be labeled with a file context which httpd can access.
Allowing Access:
If you want to change the file context of ./mail so that the httpd daemon can
access it, you need to execute it using chcon -t httpd_sys_content_t './mail'.
You can look at the httpd_selinux man page for additional information.
Additional Information:
Source Context system_u:system_r:httpd_t:s0
Target Context system_u:object_r:etc_mail_t:s0
Target Objects ./mail [ dir ]
Source sendmail
Source Path /usr/sbin/sendmail.sendmail
Port <Unknown>
Host localhost.localdomain
Source RPM Packages sendmail-8.14.2-4.fc9
Target RPM Packages
Policy RPM selinux-policy-3.3.1-79.fc9
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name httpd_bad_labels
Host Name localhost.localdomain
Platform Linux localhost.localdomain 2.6.25-14.fc9.i686 #1
SMP Thu May 1 06:28:41 EDT 2008 i686 i686
Alert Count 62
First Seen Sat 12 Jul 2008 10:35:46 PM CEST
Last Seen Tue 29 Jul 2008 10:32:01 PM CEST
Local ID 8a6cbd5e-6470-4218-9506-31a6ddfca733
Line Numbers
Raw Audit Messages
host=localhost.localdomain type=AVC msg=audit(1217363521.386:27): avc: denied { search } for pid=3605 comm="sendmail" name="mail" dev=sda3 ino=163932 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_mail_t:s0 tclass=dir
host=localhost.localdomain type=SYSCALL msg=audit(1217363521.386:27): arch=40000003 syscall=195 success=no exit=-13 a0=bf957c58 a1=bf957ae4 a2=64dff4 a3=b80584e2 items=0 ppid=2267 pid=3605 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=system_u:system_r:httpd_t:s0 key=(null)
J'imagine que c'est classique, d'autant plus que c'est clair. Mais quand je lance la command :
chcon -t httpd_sys_content_t './mail' dans /bin il me redonne la main sans rien faire apparemment !?
Au delà de ce problème, mon objectif est que tous les mails sortant soient redirigé vers
root@localhost.domain (ou qqch. du style) et que root puisse les consulter via Evolution.
J'ai donc configurer Evolution de la manière suivante pour un compte que j'ai appelé "root" dont le mail est "
root@localhost.localdomain". Dans l'onglet "receiving email", j'ai mis :
Server Type -> local delivery
path -> /var/spool/mail/root
J'ai juste ?