|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have recently started using Postfix and the mail command in PHP. (MAC
OS X) An interesting phenomena is occuring. If i send two emails from the php script, on a number of occasions only one goes straight out through postfix. The other seems to be triggered when i at anytime in the future then send out another message. The delay can even be 12 hours. It seems that Postfix is picking the message up, but only delivering it when another email is then fired at it!!! is there anyway of telling postfix to clear or flush the queue. I dont think this is a PHP issue? A bit of a newbie, but any suggestion appreciated. David |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
David wrote:
The delay can even be 12 hours. > > It seems that Postfix is picking the message up, but only delivering it > when another email is then fired at it!!! Postfix doesn't work that way. It's sending and receiving processes are independent of each other, controlled by a parent master process. Try sending some test emails: The "mailq" command will show you whether or not a message is in the Postfix queue, and any reason why it's delivery has been delayed. The delivery queue can be manually kicked off with the command "postfix flush" or "sendmail -q". Also, you will want to watch the syslog files in a separate window, usually something like: tail -f /var/log/maillog -- Greg |
|
![]() |
| Outils de la discussion | |
|
|