Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Looks like this won't work with my hosting provider. I guess I'm stuck
using a cron job to poll the pop server, or switch hosting providers.
SmarterLinux.com provides great toll free support--there's just something
remarkable about being able to call them at 2:00am and get someone who is
awake. At least they were honest about not being able to support it.
----- Begin Pasted Message -----
Hello Bruce,
Unfortunately, the solution your LUG provided is not a possibility. It
assumes that mail is coming into the Linux server that also hosts your
website. The mail server is on a different physical machine. Also, the
IMail software that we use does not use an /etc/alias file for mail users.
It currently only supports forwarding to a single email address, a group of
email addresses, a program on the server, or a beeper/pager. I would
suggest using the cron job method. We will let you know when you have the
ability to set this up yourself, but until then you can contact us at any
time with the scripts location. Thank you!
Regards,
Andy Lowther
Email: EMAIL:PROTECTED
http://www.SmarterLinux.com
Get your FREE .com, .net, .org, .biz and .info domain name at
SmarterLinux.com!
Phone: International 302.731.4948 | Toll Free: 877-215-4678
----- Original Message -----
From: "Russell Horn" <EMAIL:PROTECTED>
To: "'MLUG Members'" <EMAIL:PROTECTED>
Sent: Tuesday, August 05, 2003 2:38 PM
Subject: RE: [MLUG] How do I get a PHP script to listen for incoming email
> >
> > The best idea I can come up with so far is to set up a cron job that
> > periodically logs into a POP account and downloads the mail.
> > Is there any
> > way I can trigger execution of the script when mail arrives
> > in the box
> > rather than constantly poll for mail?
> >
>
> You'll need access to the /etc/aliases file - alternatively you'll need
> to be able to use procmail or sieve or similar mail processing
> facilities offered by your host.
>
> There you can pipe email to another program for processing - that
> program could be your php script as a php shell script.
>
> You'd have something like this in /etc/aliases
>
> run-script: "|/usr/local/sbin/myscript.php"
>
> Then any email to EMAIL:PROTECTED will be passed to your myscript.php
> file - assuming it's executable and yu start the script with something
> like:
>
> #!/usr/bin/php
>
> Russell.
>
> _______________________________________________
> members mailing list
> EMAIL:PROTECTED
> http://mlug.missouri.edu/mailman/listinfo/members
>
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members