Mail qui ne sort pas de mon serveur

Bonsoir,
Peut etre que mon problème dépasse le cadre du forum, en fait je ne vois pas d’ ou il vient, donc je me risque ici.

Je souhaite auto héberger un forum phpbb sur un serveur sous Squeeze, qui tourne en test actuellement sans problème en local sur mon réseau.
Le seul truc qui coince, c’ est l’ envoi de mail. Im y a rien à faire.

Au début, je pensais que c’ était le port 25 bloqué par mon Fai, mais j’ ai testé avec les ports 225 et 587 sans succès. Pire, en désespoir de cause, j’ ai mis les adresses des serveurs smtp de deux adresses mails que je dispose, Orange et Free, rien ne part… Il y a un script de test sur le site de phpbb, (pour voir si la fonction mail de son Fai fonctionne) , à chaque fois l’ essai est concluant, un message vient de m’ être envoyé sur l’ adresse mail donnée lors du test, mais je ne le reçois jamais. Test effectué avec deux adresses mail, et j’ ai jeté un oeil à chaque fois sur mes indésirables.

Alors problème avec mon Fai ? Je le crois de moins en moins, avec phpbb ? Avec mon serveur ?

Si quelqu’ un a une idée…

Bonne soirée !

Que te racontent les logs (/var/log/mail.log, mail.err, …) ? :017

Salut et merci de ton aide.
Je ne sais pas si les logs vont m’ aider, je ne me sers pas d’ un serveur mail présent sur mon serveur, mais du script présent dans phpbb.

Mes logs sont donc vides, mis à part cat mail.log
mais est ce que cela à rapport à mon problème :

Removed 0 of 0 greylist directories in 0 seconds

Bonne soirée !

Et tu ne peux pas faire causer ton script php ? Mode debug ?

Salut merci pour ta réponse.
Comme je ne connaissais pas le debug mode, j’ ai fait une recherche sur Google et sur le forum de phpbb, et je suis tombé sur ce lien : forums.phpbb-fr.com/discus-reche … l#p1197221

C’ est ça que tu veux me faire faire, du moins le rajout de cette ligne :

@define('DEBUG', true); ?

Bonne journée !

Bonsoir à tous.
Je ressors ce topic, j’ en suis malheureusement toujours au même point.

Pire, je pensais que cela venait de mon Fai (Orange), j’ en ai changé, je suis chez Free maintenant, le problème reste entier.
Petit résumé : j’ heberge en local un forum phpbb, sur un serveur tournant avec Squeeze (lamp) . Il tourne à merveille, sauf un détail : je ne peux utiliser la fonction mail, donc je ne peux envoyer de mail de notification. Avec exactement les mêmes parametres, chez mon hébergeur Online, cela fonctionne.

Je suis bien embété, car si je ne peux envoyer de mail à partir de mon serveur, je ne peux pas héberger mon forum sur mon serveur perso.

Merci à tous pour votre aide, bonne soirée !

free bloque le smtp sortant par défaut, il faut configurer la box pour que ça passe.
Ca peut venir de là.

Salut,
Oui effectivement, j’ avais décoché la croix qui bloquait par défaut le port 25, mais le résultat reste le même…

Fais un tcpdump du port 25 et essaye de lancer un mail pour voir si il y a effectivement communication avec l’extérieur… Vérifies si dans les options PHP il n’y a pas un blocage des fonctions de mail vers l’extérieur (pour prévenir un utilisation en relais d’un script mal foutu)

Salut,
J’ avance un peu. Je peux maintenant envoyer des mails en passant par le serveur smtp de Free, chose que je ne pouvais pas faire avec mon ancien Fai (Orange) , même avec son smtp. Donc il y a du mieux, mais j’ aimerai comprendre pourquoi la fonction mail de phpbb ne fonctionne toujours pas sur mon serveur, alors qu’ avec mon hébergeur cela fonctionne sans problème.

[quote] Vérifies si dans les options PHP il n’y a pas un blocage des fonctions de mail vers l’extérieur (pour prévenir un utilisation en relais d’un script mal foutu)
[/quote]

Ou puis je voir ça ?

Merci pour ton aide, bon après midi.

Vérifies ta configuration dans /etc/apache2/php.ini, mais je ne sais pas si php a une telle limitation, sur ma version je n’en vois pas mais je n’utilise pas mail avec php.

Re,
Je suis en train de voir mais je n’ ai pas de /etc/apache2/php.ini

apache2.conf envvars magic mods-enabled sites-available conf.d httpd.conf mods-available ports.conf sites-enabled

Tu veux peut etre avoir le contenu de apache2.conf :

[code] Based upon the NCSA server configuration files originally by Rob McCool.

This is the main Apache server configuration file. It contains the

configuration directives that give the server its instructions.

See http://httpd.apache.org/docs/2.2/ for detailed information about

the directives.

Do NOT simply read the instructions in here without understanding

what they do. They’re here only as hints or reminders. If you are unsure

consult the online docs. You have been warned.

The configuration directives are grouped into three basic sections:

1. Directives that control the operation of the Apache server process as a

whole (the ‘global environment’).

2. Directives that define the parameters of the ‘main’ or ‘default’ server,

which responds to requests that aren’t handled by a virtual host.

These directives also provide default values for the settings

of all virtual hosts.

3. Settings for virtual hosts, which allow Web requests to be sent to

different IP addresses or hostnames and have them handled by the

same Apache server process.

Configuration and logfile names: If the filenames you specify for many

of the server’s control files begin with “/” (or “drive:/” for Win32), the

server will use that explicit path. If the filenames do not begin

with “/”, the value of ServerRoot is prepended – so “foo.log”

with ServerRoot set to “/etc/apache2” will be interpreted by the

server as “/etc/apache2/foo.log”.

Section 1: Global Environment

The directives in this section affect the overall operation of Apache,

such as the number of concurrent requests it can handle or where it

can find its configuration files.

ServerRoot: The top of the directory tree under which the server’s

configuration, error, and log files are kept.

NOTE! If you intend to place this on an NFS (or otherwise network)

mounted filesystem then please read the LockFile documentation (available

at URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile);

you will save yourself a lot of trouble.

Do NOT add a slash at the end of the directory path.

#ServerRoot “/etc/apache2”

The accept serialization lock file MUST BE STORED ON A LOCAL DISK.

LockFile ${APACHE_LOCK_DIR}/accept.lock

PidFile: The file in which the server should record its process

identification number when it starts.

This needs to be set in /etc/apache2/envvars

PidFile ${APACHE_PID_FILE}

Timeout: The number of seconds before receives and sends time out.

Timeout 300

KeepAlive: Whether or not to allow persistent connections (more than

one request per connection). Set to “Off” to deactivate.

KeepAlive On

MaxKeepAliveRequests: The maximum number of requests to allow

during a persistent connection. Set to 0 to allow an unlimited amount.

We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

KeepAliveTimeout: Number of seconds to wait for the next request from the

same client on the same connection.

KeepAliveTimeout 15

Server-Pool Size Regulation (MPM specific)

prefork MPM

StartServers: number of server processes to start

MinSpareServers: minimum number of server processes which are kept spare

MaxSpareServers: maximum number of server processes which are kept spare

MaxClients: maximum number of server processes allowed to start

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0

worker MPM

StartServers: initial number of server processes to start

MaxClients: maximum number of simultaneous client connections

MinSpareThreads: minimum number of worker threads which are kept spare

MaxSpareThreads: maximum number of worker threads which are kept spare

ThreadLimit: ThreadsPerChild can be changed to this maximum value during a

graceful restart. ThreadLimit can only be changed by stopping

and starting Apache.

ThreadsPerChild: constant number of worker threads in each server process

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0

event MPM

StartServers: initial number of server processes to start

MaxClients: maximum number of simultaneous client connections

MinSpareThreads: minimum number of worker threads which are kept spare

MaxSpareThreads: maximum number of worker threads which are kept spare

ThreadsPerChild: constant number of worker threads in each server process

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestsPerChild 0

These need to be set in /etc/apache2/envvars

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

AccessFileName: The name of the file to look for in each directory

for additional configuration directives. See also the AllowOverride

directive.

AccessFileName .htaccess

The following lines prevent .htaccess and .htpasswd files from being

viewed by Web clients.

<Files ~ “^.ht”>
Order allow,deny
Deny from all
Satisfy all

DefaultType is the default MIME type the server will use for a document

if it cannot otherwise determine one, such as from filename extensions.

If your server contains mostly text or HTML documents, “text/plain” is

a good value. If most of your content is binary, such as applications

or images, you may want to use “application/octet-stream” instead to

keep browsers from trying to display binary files as though they are

text.

DefaultType text/plain

HostnameLookups: Log the names of clients or just their IP addresses

e.g., www.apache.org (on) or 204.62.129.132 (off).

The default is off because it’d be overall better for the net if people

had to knowingly turn this feature on, since enabling it means that

each client request will result in AT LEAST one lookup request to the

nameserver.

HostnameLookups Off

ErrorLog: The location of the error log file.

If you do not specify an ErrorLog directive within a

container, error messages relating to that virtual host will be

logged here. If you do define an error logfile for a

container, that host’s errors will be logged there and not here.

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel: Control the number of messages logged to the error_log.

Possible values include: debug, info, notice, warn, error, crit,

alert, emerg.

LogLevel warn

Include module configuration:

Include mods-enabled/.load
Include mods-enabled/
.conf

Include all the user configurations:

Include httpd.conf

Include ports listing

Include ports.conf

casper@casper-sheeva:/etc/apache2$ cat apache2.conf

Based upon the NCSA server configuration files originally by Rob McCool.

This is the main Apache server configuration file. It contains the

configuration directives that give the server its instructions.

See http://httpd.apache.org/docs/2.2/ for detailed information about

the directives.

Do NOT simply read the instructions in here without understanding

what they do. They’re here only as hints or reminders. If you are unsure

consult the online docs. You have been warned.

The configuration directives are grouped into three basic sections:

1. Directives that control the operation of the Apache server process as a

whole (the ‘global environment’).

2. Directives that define the parameters of the ‘main’ or ‘default’ server,

which responds to requests that aren’t handled by a virtual host.

These directives also provide default values for the settings

of all virtual hosts.

3. Settings for virtual hosts, which allow Web requests to be sent to

different IP addresses or hostnames and have them handled by the

same Apache server process.

Configuration and logfile names: If the filenames you specify for many

of the server’s control files begin with “/” (or “drive:/” for Win32), the

server will use that explicit path. If the filenames do not begin

with “/”, the value of ServerRoot is prepended – so “foo.log”

with ServerRoot set to “/etc/apache2” will be interpreted by the

server as “/etc/apache2/foo.log”.

Section 1: Global Environment

The directives in this section affect the overall operation of Apache,

such as the number of concurrent requests it can handle or where it

can find its configuration files.

ServerRoot: The top of the directory tree under which the server’s

configuration, error, and log files are kept.

NOTE! If you intend to place this on an NFS (or otherwise network)

mounted filesystem then please read the LockFile documentation (available

at URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile);

you will save yourself a lot of trouble.

Do NOT add a slash at the end of the directory path.

#ServerRoot “/etc/apache2”

The accept serialization lock file MUST BE STORED ON A LOCAL DISK.

LockFile ${APACHE_LOCK_DIR}/accept.lock

PidFile: The file in which the server should record its process

identification number when it starts.

This needs to be set in /etc/apache2/envvars

PidFile ${APACHE_PID_FILE}

Timeout: The number of seconds before receives and sends time out.

Timeout 300

KeepAlive: Whether or not to allow persistent connections (more than

one request per connection). Set to “Off” to deactivate.

KeepAlive On

MaxKeepAliveRequests: The maximum number of requests to allow

during a persistent connection. Set to 0 to allow an unlimited amount.

We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

KeepAliveTimeout: Number of seconds to wait for the next request from the

same client on the same connection.

KeepAliveTimeout 15

Server-Pool Size Regulation (MPM specific)

prefork MPM

StartServers: number of server processes to start

MinSpareServers: minimum number of server processes which are kept spare

MaxSpareServers: maximum number of server processes which are kept spare

MaxClients: maximum number of server processes allowed to start

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0

worker MPM

StartServers: initial number of server processes to start

MaxClients: maximum number of simultaneous client connections

MinSpareThreads: minimum number of worker threads which are kept spare

MaxSpareThreads: maximum number of worker threads which are kept spare

ThreadLimit: ThreadsPerChild can be changed to this maximum value during a

graceful restart. ThreadLimit can only be changed by stopping

and starting Apache.

ThreadsPerChild: constant number of worker threads in each server process

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0

event MPM

StartServers: initial number of server processes to start

MaxClients: maximum number of simultaneous client connections

MinSpareThreads: minimum number of worker threads which are kept spare

MaxSpareThreads: maximum number of worker threads which are kept spare

ThreadsPerChild: constant number of worker threads in each server process

MaxRequestsPerChild: maximum number of requests a server process serves

StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestsPerChild 0

These need to be set in /etc/apache2/envvars

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

AccessFileName: The name of the file to look for in each directory

for additional configuration directives. See also the AllowOverride

directive.

AccessFileName .htaccess

The following lines prevent .htaccess and .htpasswd files from being

viewed by Web clients.

<Files ~ “^.ht”>
Order allow,deny
Deny from all
Satisfy all

DefaultType is the default MIME type the server will use for a document

if it cannot otherwise determine one, such as from filename extensions.

If your server contains mostly text or HTML documents, “text/plain” is

a good value. If most of your content is binary, such as applications

or images, you may want to use “application/octet-stream” instead to

keep browsers from trying to display binary files as though they are

text.

DefaultType text/plain

HostnameLookups: Log the names of clients or just their IP addresses

e.g., www.apache.org (on) or 204.62.129.132 (off).

The default is off because it’d be overall better for the net if people

had to knowingly turn this feature on, since enabling it means that

each client request will result in AT LEAST one lookup request to the

nameserver.

HostnameLookups Off

ErrorLog: The location of the error log file.

If you do not specify an ErrorLog directive within a

container, error messages relating to that virtual host will be

logged here. If you do define an error logfile for a

container, that host’s errors will be logged there and not here.

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel: Control the number of messages logged to the error_log.

Possible values include: debug, info, notice, warn, error, crit,

alert, emerg.

LogLevel warn

Include module configuration:

Include mods-enabled/.load
Include mods-enabled/
.conf

Include all the user configurations:

Include httpd.conf

Include ports listing

Include ports.conf

The following directives define some format nicknames for use with

a CustomLog directive (see below).

If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i

LogFormat “%v:%p %h %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” vhost_combined
LogFormat “%h %l %u %t “%r” %>s %O “%{Referer}i” “%{User-Agent}i”” combined
LogFormat “%h %l %u %t “%r” %>s %O” common
LogFormat “%{Referer}i -> %U” referer
LogFormat “%{User-agent}i” agent

Include of directories ignores editors’ and dpkg’s backup files,

see README.Debian for details.

Include generic snippets of statements

Include conf.d/

Include the virtual host configurations:

Include sites-enabled/
casper@casper-sheeva:/etc/apache2$
[/code]

Quand à tcpdump (je ne connaissais pas, donc j’ espère avoir tapé la bonne syntaxe) :

[code] tcpdump -i lo port 25
[ 3875.269596] device lo entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes

[/code]
Et là j’ ai envoyé un mail, il ne se passe rien…

Bonne soirée, merci de ton aide

essaye plutôt: tcpdump -i eth1 port 25.
Ton -i lo lui demande d’écouter sur le loopback, et je pense que c’est plutôt eth1 dans ton cas, vu le résultat de cat /etc/network/interfaces que tu as donné ici: viewtopic.php?f=3&t=29694 :

[quote="/etc/network/interfaces"]auto lo
iface lo inet loopback

reseau local

auto eth1
iface eth1 inet static
address 192.168.1.20
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.1.1
[/quote]

Oui très juste, désolé pour cette erreur.

La ça bouge plus on dirait quand je tente d’ envoyer un mail :

tcpdump -i eth1 port 25 [ 6248.219705] device eth1 entered promiscuous mode tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes 22:08:44.173115 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [S], seq 3217026634, win 5840, options [mss 1460,sackOK,TS val 599498 ecr 0,nop,wscale 5], length 0 22:08:44.217125 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [S.], seq 707676562, ack 3217026635, win 5792, options [mss 1460,sackOK,TS val 594006389 ecr 599498,nop,wscale 7], length 0 22:08:44.217185 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [.], ack 1, win 183, options [nop,nop,TS val 599503 ecr 594006389], length 0 22:08:44.258675 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 1:22, ack 1, win 46, options [nop,nop,TS val 594006647 ecr 599503], length 21 22:08:44.258716 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [.], ack 22, win 183, options [nop,nop,TS val 599507 ecr 594006647], length 0 22:08:44.259144 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [P.], seq 1:38, ack 22, win 183, options [nop,nop,TS val 599507 ecr 594006647], length 37 22:08:44.302043 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [.], ack 38, win 46, options [nop,nop,TS val 594006690 ecr 599507], length 0 22:08:44.304484 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 22:43, ack 38, win 46, options [nop,nop,TS val 594006693 ecr 599507], length 21 22:08:44.343867 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [.], ack 43, win 183, options [nop,nop,TS val 599516 ecr 594006693], length 0 22:08:44.386302 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 43:72, ack 38, win 46, options [nop,nop,TS val 594006774 ecr 599516], length 29 22:08:44.386330 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [.], ack 72, win 183, options [nop,nop,TS val 599520 ecr 594006774], length 0 22:08:44.386579 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [P.], seq 38:99, ack 72, win 183, options [nop,nop,TS val 599520 ecr 594006774], length 61 22:08:44.429204 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 72:86, ack 99, win 46, options [nop,nop,TS val 594006817 ecr 599520], length 14 22:08:44.429471 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [P.], seq 99:133, ack 86, win 183, options [nop,nop,TS val 599524 ecr 594006817], length 34 22:08:44.477236 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 86:203, ack 133, win 46, options [nop,nop,TS val 594006865 ecr 599524], length 117 22:08:44.500557 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [P.], seq 133:139, ack 203, win 183, options [nop,nop,TS val 599531 ecr 594006865], length 6 22:08:44.541041 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 203:216, ack 139, win 46, options [nop,nop,TS val 594006929 ecr 599531], length 13 22:08:44.541359 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [P.], seq 139:145, ack 216, win 183, options [nop,nop,TS val 599535 ecr 594006929], length 6 22:08:44.541430 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [F.], seq 145, ack 216, win 183, options [nop,nop,TS val 599535 ecr 594006929], length 0 22:08:44.582950 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 216:240, ack 145, win 46, options [nop,nop,TS val 594006971 ecr 599535], length 24 22:08:44.583014 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [R], seq 3217026779, win 0, length 0 22:08:44.583236 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [F.], seq 240, ack 145, win 46, options [nop,nop,TS val 594006971 ecr 599535], length 0 22:08:44.583265 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [R], seq 3217026779, win 0, length 0 22:08:44.584596 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [.], ack 146, win 46, options [nop,nop,TS val 594006972 ecr 599535], length 0 22:08:44.584624 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [R], seq 3217026780, win 0, length 0 22:08:45.248882 IP mx1.free.fr.smtp > 192.168.1.20.58204: Flags [P.], seq 216:240, ack 146, win 46, options [nop,nop,TS val 594007637 ecr 599535], length 24 22:08:45.248924 IP 192.168.1.20.58204 > mx1.free.fr.smtp: Flags [R], seq 3217026780, win 0, length 0 ^C 27 packets captu[ 6323.171931] device eth1 left promiscuous mode red 27 packets received by filter 0 packets dropped by kernel

Comment as tu su qu’il faisait -i lo??? Bon, visiblement le dialogue se fait, il faudrait dans ce cas capturer le traffic pour voir où ça coince dans le dialogue lorsque le mail n’est pas envoyé. la fonction PHP n’envoit pas de messages d’erreur?

ben…

[quote=“ungars”]Quand à tcpdump (je ne connaissais pas, donc j’ espère avoir tapé la bonne syntaxe) :

tcpdump -i lo port 25
[ 3875.269596] device lo entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes

[/quote]

[quote]la fonction PHP n’envoit pas de messages d’erreur?

[/quote] ?

Comment puis je voir ça ?

J’ ai un script qui permet de tester la fonction mail de son hébergeur, lorsque je le teste, pas de message d’ erreur, on me dit que le mail est bien parti, mais je ne le trouve pas : forums.phpbb-fr.com/documentatio … l#p1212321

Merci de me consacrer du temps, je vous dit à demain soir.

Bonne nuit !

ben…

[quote=“ungars”]Quand à tcpdump (je ne connaissais pas, donc j’ espère avoir tapé la bonne syntaxe) :

tcpdump -i lo port 25
[ 3875.269596] device lo entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes

[/quote][/quote]
:slightly_smiling: Pourtant j’ai regardé une deuxième fois… :confused:

Bon…

Pour le reste, la connexion avec le SMTP semble bien se faire, si le mail ne part pas, la fonction mail de PHP doit renvoyer une erreur, il faut intervenir dans le script. Une autre méthode est d’intercepter le dialogue avec le smtp via ethereal (oups! wireshark) et de l’analyser mais c’est plus compliqué (encore que).

Bonsoir,

Je viens de regarder dans les logs, après avoir envoyé un mail, il n’ y a rien…

En ce qui concerne Wireshark, je l’ ai déjà lancé sur une de mes machines, mais vu que là c’ est sur une machine distante, va falloir que je cherches un peu pour savoir comment faire.

Je vois ça demain soir. Merci encore et bonne soirée.

Si le problème est l’absence d’interface graphique, tshark est la version en console texte de wireshark.