billcom 4 Report post Posted June 23, 2014 (edited) Bonjour le hub, Je cherche à faire un suivi des mails envoyé par la fonction mail de php sur mon serveur dédié. C'est un serveur qui ne me sert que pour les envoi de mailing. Et j'aurai voulu donc avoir des log pour savoir si tout se déroule bien au moment de l'envoi. Existe-t-il nativement quelque chose dans php/apache ? ou bien est-ce nécessaire de développer le System ? Edit : J'ai découvert cette information dans php.ini mais je n'ai pas l'impression que ça log les erreurs ou les succès http://www.php.net/manual/fr/mail.configuration.php#ini.mail.log Anthony Edited June 23, 2014 by billcom Share this post Link to post Share on other sites
Dan 177 Report post Posted June 23, 2014 Dans /var/log/exim/mainlog... tu trouveras ce que tu veux ! Share this post Link to post Share on other sites
billcom 4 Report post Posted June 23, 2014 Bonjour Dan Merci pour ton retour. Je n'ai à première vue pas ce fichier sur mon serveur . root@ksxxxxxx:/var/log# locate exim /etc/fail2ban/filter.d/exim.conf /usr/share/doc/amavisd-new/README.exim_v3.gz /usr/share/doc/amavisd-new/README.exim_v3_app.gz /usr/share/doc/amavisd-new/README.exim_v4 /usr/share/doc/amavisd-new/README.exim_v4_app.gz /usr/share/doc/amavisd-new/README.exim_v4_app2.gz /usr/share/doc/mailman/mailman-install/exim3-transport.html /usr/share/vim/vim73/syntax/exim.vim Il s'agit d'une installation "clé en main" d'ovh avec debian7 et ispconfig http://www.ovh.com/fr/serveurs_dedies/distributions/ispconfig.xml je vais voir pour activer ces logs Merci Share this post Link to post Share on other sites
Dan 177 Report post Posted June 23, 2014 Lance un "locate mainlog" ou un "locate mail.log" ! 1 Share this post Link to post Share on other sites
billcom 4 Report post Posted June 23, 2014 (edited) J'avais déjà testé le mainlog sans résultat mais le mail.log c'est bon root@ksxxxxxx:/var/log# locate mail.log /var/log/mail.log /var/log/mail.log.1 /var/log/mail.log.2.gz /var/log/mail.log.3.gz /var/log/mail.log.4.gz /var/log/ispconfig/httpd/mailing.sepro.org/mail.log /var/www/clients/client0/web1/log/mail.log Les 2 dernières lignes concernent un fichier que j'ai crée. et la première ligne est la bonne Merci Dan Edited June 23, 2014 by billcom Share this post Link to post Share on other sites
billcom 4 Report post Posted June 23, 2014 il ne me reste plus qu'a parser ça Share this post Link to post Share on other sites
Dan 177 Report post Posted June 23, 2014 Les lignes 2 à 5 sont bonnes aussi. Ce sont les anciens logs au format compressé (gzip). Share this post Link to post Share on other sites
billcom 4 Report post Posted June 23, 2014 ok merci Share this post Link to post Share on other sites