Le 06/06/2011 19:14, Wietse Venema a écrit :
St?phane MERLE:
Hi,
Le 06/06/2011 18:43, Wietse Venema a ?crit :
St?phane MERLE:
Hi,
I can see in my logs that postfix is "waiting" for 10s between each email.
What are the name and arguments of the program that is waiting?
this is a php script using the mail command ...
$retour=mail($to, $subject, $message, $headers, $option5);
This uses /usr/sbin/sendmail. It places your messages into the
/var/spool/postfix/maildrop directory, where they wait to be picked
up by Postfix (but only when Postfix is running).
I though that I was dealing directly with postfix from php cli .... (I
am using ubuntu 10.04LTS).
so the one doing a 10s pause is sendmail ?
I tried to check the size of the spool and here is what I get (start to
go down) :
# mailq | wc -l
57962
# durep -td=1
[ /home/spool/postfix 328.6M (2 files, 17 dirs) ]
215.5M [################### ] 65.57% defer/
112.9M [########## ] 34.35% deferred/
220.5K [ ] 0.07% lib/
29.8K [ ] 0.01% incoming/
21.7K [ ] 0.01% etc/
8.0K [ ] 0.00% smtp_scache.db
8.0K [ ] 0.00% smtpd_scache.db
2.1K [ ] 0.00% bounce/
17b [ ] 0.00% pid/
14b [ ] 0.00% usr/
0b [ ] 0.00% trace/
0b [ ] 0.00% saved/
0b [ ] 0.00% public/
0b [ ] 0.00% maildrop/
0b [ ] 0.00% private/
0b [ ] 0.00% hold/
0b [ ] 0.00% flush/
0b [ ] 0.00% corrupt/
0b [ ] 0.00% active/
#
and I got a few mails in the deferred queue (most orange and yahoo,
probably the one doing the reverse dns check) :
T 5 10 20 40 80 160 320
640 1280 1280+
TOTAL 14488 0 0 80 8 50 212 448 1077
1128 11485
orange.fr 6888 0 0 0 0 1 9 145 431
530 5772
yahoo.fr 3717 0 0 72 7 22 82 104 259
339 2832
wanadoo.fr 3564 0 0 0 0 25 118 194 377
214 2636
yahoo.com 156 0 0 5 0 0 2 2 7
23 117
it seems to get better and better so I am assuming that the dns
propagation is finally done.
Thanks for your help, usually this server is working like a charm ...
Stéphane
Like, looking at the mail logfile, with all the warnings where
Postfix is trying to tell you that there is a problem.
http://www.postfix.org/DEBUG_README.html#logging
Wietse