Afficher un message
Vieux 01/03/2006, 09h31   #4
David
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How can I create a new mailbox in php?

pyda001@ec.auckland.ac.nz wrote:
> Hi David!
>
> Thanks for answering. No, I'm only adding the database entries. Could
> you tell me the best way to do a postmap and postfix reload in php?
> Should I set it up as a cron job or every time a user is added? I
> reccon we'll get a few new accounts every day, not more.
>
> Peder
>

Hi Peder,

I haven't tried personally, but php's exec command is probably what you
are after (http://www.php.net/manual/en/function.exec.php) but you'll
obviously need to confirm permissions will allow it.

As to your cron job idea, only you can answer this. The idea itself is
sound, it all depends on whether you're users are happy to wait for
their account to be available (ie. wait for the cron job to have run) or
whether they want/need it immediately (in which case a exec command in
php would be the way to go).

Good luck. David.
  Réponse avec citation
 
Page generated in 0,05644 seconds with 9 queries