Brilliant, but qmail needs...

Recommend this page to a friend!

      POP3 e-mail client  >  POP3 e-mail client package blog  >  How Can PHP Read Emai...  >  All threads  >  Brilliant, but qmail needs...  >  (Un) Subscribe thread alerts  
Subject:Brilliant, but qmail needs...
Summary:The Real Qmail Directive
Date:2009-08-21 17:37:23
Update:2009-08-21 18:59:27

  1. Brilliant, but qmail needs...   Reply   Report abuse  
NoiseEee - 2009-08-21 17:37:23
*Great* article, but I've found if you're using qmail, your .qmail file must *only* be:

| /usr/bin/php /path/to/script.php

(ie: starting with a pipe)

  2. Re: Brilliant, but qmail needs...   Reply   Report abuse  
Manuel Lemos - 2009-08-21 17:58:36 - In reply to message 1 from NoiseEee
You can do that but, as it was explained in the article, if you try to process messages as you receive them, you may loose them if the PHP script fails for some reason.

I use qmail too, but I use a POP3 account to deposit the messages that are received. Sometimes the site is under maintenance and the database is down, so I may not process messages in real time.

I just set a POP3 account to make messages go to a Maildir. While the site is down, the messages are dropped there. When the site is back up, a PHP script uses the POP3 client class to process all pending messages.

Anyway, you can still use the MIME parser class to process incoming messages even if you decide to process them in real time.

  3. Re: Brilliant, but qmail needs...   Reply   Report abuse  
NoiseEee - 2009-08-21 18:59:27 - In reply to message 2 from Manuel Lemos
Ahh yes, I understand your method. My original comment should then read "make sure you start with a | (pipe)" for the PHP command, everything else can stay :)


For more information send a message to info at phpclasses dot org.