URL: https://linuxfr.org/forums/linux-debian-ubuntu/posts/probleme-lenteur-non-reception-sendmail Title: Probleme lenteur + non reception sendmail Authors: Rui AVELINO Date: 2006年01月24日T19:08:54+01:00 Tags: debian Score: 0 Bonjour, J'ai configuré sendmail sur un serveur sous débian mais je trouve l'envois de message (via des scripts php avec la fonction mail() ) affreusement lent. De plus la fonction mail renvois une erreur (false) pourtant le mail est bien envoyé... J'ai peur d'avoir fait une mauvaise config de sendmail (ou de php peut être) mon fichier de config sendmail est le suivant : sendmail.mc divert(-1)dnl #----------------------------------------------------------------------------- # $Sendmail: debproto.mc,v 8.12.3 2003年09月17日 18:35:09 cowboy Exp $ # # Copyright (c) 1998-2003 Richard Nelson. All Rights Reserved. # # ./cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure. # # sendmail.mc prototype config file for building Sendmail 8.12.3 # # Note: the .in file supports 8.7.6 - 8.12.7, but the generated # file is customized to the version noted above. # # This file is used to configure Sendmail for use with Debian systems. # # If you modify this file, you will have to regenerate /etc/mail/sendmail.cf # by running this file through the m4 preprocessor via one of the following: # * `sendmailconfig` # * `make` # * `m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf` # The first two options are preferred as they will also update other files # that depend upon the contents of this file. # # The best documentation for this .mc file is: # /usr/share/doc/sendmail-doc/cf.README.gz # #----------------------------------------------------------------------------- divert(0)dnl # # Copyright (c) 1998-2002 Richard Nelson. All Rights Reserved. # # This file is used to configure Sendmail for use with Debian systems. # define(`_USE_ETC_MAIL_')dnl include(`/usr/share/sendmail/cf/m4/cf.m4')dnl VERSIONID(`$Id: sendmail.mc,v 1.3 2004年08月18日 13:53:41 woakley Exp $') OSTYPE(`debian')dnl DOMAIN(`debian-mta')dnl dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE dnl # dnl # General defines dnl # dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot() dnl # into this directory before writing files. dnl # If *all* your user accounts are under /home then use that dnl # instead - it will prevent any writes outside of /home ! dnl # define(`confSAFE_FILE_ENV', `')dnl LOCAL_CONFIG FEATURE(`masquerade_envelope')dnl FEATURE(`use_cw_file')dnl FEATURE(`use_ct_file')dnl FEATURE(`smrsh')dnl FEATURE(access_db)dnl FEATURE(virtusertable)dnl FEATURE(`genericstable')dnl dnl FEATURE(`always_add_domain') DAEMON_OPTIONS(`Addr=XXX.XXX.XXX.XXX,Port=smtp,Name=MTA') dnl # dnl # Dialup/LAN connection overrides dnl # include(`/etc/mail/m4/dialup.m4')dnl include(`/etc/mail/m4/provider.m4')dnl dnl # MAILER_DEFINITIONS MAILER(local)dnl MAILER(smtp)dnl LOCAL_CONFIG ## Custom configurations below (will be preserved) Que j'ai pompé d'une machine qui marche parfaitement au exception près des lignes _DAEMON_OPTIONS(`Addr=XXX.XXX.XXX.XXX,Port=smtp,Name=MTA') undefine(`confHOST_STATUS_DIRECTORY')dnl _ Quelqu'un a déjà eu ce problème? Ou bien pourrait m'indiquer l'endroit qui pourrait poser problème? (j'espère d'ailleurs que ce n'est qu'un problème de config sendmail et non pas un facteur sendmail + config php ...) Merci d'avance ;)