Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 16:18:31

Author Topic: email pipe to php  (Read 4091 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
email pipe to php
« on: 2015-04-15, 15:31:20 »
How to do pipe an email to a php script? On cPanel it's very simple but on Kloxo-MR. I am having trouble with it. I'm not use to it yet. So far this is what I am doing.

Mail Forward / Aliases >> Add Forword

emailaddress@domain.com
| php -q /home/username/domaindir/script.php

Am I missing something?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: email pipe to php
« Reply #1 on: 2015-04-15, 15:38:03 »
Try add to '/home/lxadmin/mail/domains/<domain>/<account>/.qmail'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: email pipe to php
« Reply #2 on: 2015-04-15, 16:41:11 »
I am not exactly sure what you mean. Can you give me a little more details?


| php -q /home/username/domaindir/script.php
/home/lxadmin/mail/domains/<domain>/<account>/.qmail

???

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: email pipe to php
« Reply #3 on: 2015-04-15, 16:44:53 »
See to /home/lxadmin/mail/domains/<domain>/<account>/.qmail (change <domain> with your real domain and and <account> with your real mail account; example for mustafa@bigraf.com is '/home/lxadmin/mail/domains/bigraf.com/mustafa/.qmail'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: email pipe to php
« Reply #4 on: 2015-04-15, 17:23:44 »

Is this right?

| php -q /home/lxadmin/mail/domains/mydomain.com/myaccountusername/myscript.php/.qmail

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: email pipe to php
« Reply #5 on: 2015-04-15, 17:27:22 »
better use lxphp.exe instead php in code.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: email pipe to php
« Reply #6 on: 2015-04-15, 17:56:01 »
I think we might misunderstand this. What I am trying to do is pipe all email that to to myemailbox@mydomain.com to a php script in an app.

This is how I did it with cPanel >> Forwarders >> Add Forwarder

Address to Forward: myemailaddress@domain. com

Advanced Options: >> Pipe to a program:      |/home/username/public_html/scriptdirectory/script.php

So that's how I was able to set it up and it was running. Now I am moving to Kloxo-MR and can't figure out how.
« Last Edit: 2015-04-15, 17:58:42 by LotsOfQ »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: email pipe to php
« Reply #7 on: 2015-04-15, 18:53:31 »
I am not sure mail forward possible add pipe in panel. But, I will investigate.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: email pipe to php
« Reply #8 on: 2015-04-16, 07:30:53 »
Please let me know your finding because I really in need of it.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: email pipe to php
« Reply #9 on: 2015-04-16, 07:42:34 »
Still investigate.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: email pipe to php
« Reply #10 on: 2015-04-18, 19:13:13 »
Any updates on this?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: email pipe to php
« Reply #11 on: 2015-04-19, 08:29:59 »
No. Because fix another issue where I think more importance.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.024 seconds with 18 queries.

web stats analysis