Le 06/06/2011 22:40, Stéphane MERLE a écrit :
Le 06/06/2011 19:59, Wietse Venema a écrit :
Wietse:
What are the name and arguments of the program that is waiting?
Stephane:
this is a php script using the mail command ...
$retour=mail($to, $subject, $message, $headers, $option5);
Wietse:
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).
Stephane:
I though that I was dealing directly with postfix from php cli .... (I
am using ubuntu 10.04LTS).
Postfix installs its own sendmail command, to avoid breaking PHP
etc. This was a smarter move than having to re-educate people.
yes, I must agree on that ! (that's just confusing because the
/usr/sbin/sendmail is not a script but a binary ... so I though that
was the mta)
so to make sure :
1 - for the 10s pause between emails, it's due to the sendmail command ?
# dpkg -S sendmail | grep bin
postfix: /usr/sbin/sendmail
2 - their is no way to "purge" (erase/delete) the messages that I can
see in the mailq but not in the qshape (deferred/active/incoming/hold
or even maildrop, I tried all of them)
3 - the folder "defer" that I can see in the spool tree is not a queue
as all the files inside are just logs and not email.
basically no way to avoid the 10s wait, no way to empty the "unknown"
queue. I just need a lot of nerves and wait ...
I think I found most of the explanations in :
http://www.postfix.org/sendmail.1.html
and especially the queue_run_delay I think ... (a lot of parameter to
handle so not really sure ...)
Thanks anyway !
Stéphane
am I right with all that ?
Thanks you all for your patience and help !!
Stéphane