Forwarding email to php pipe help


#1

I successfully got the script from this post to work:

PHP interface to DH Control Panel
http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_programming&Number=58295&page=2&view=collapsed&sb=5&o=31

But I also need to have forwarding-only addresses handled by a PHP script, as discussed here:

email to php pipe help
http://discussion.dreamhost.com/showflat.pl?Cat=0&Board=forum_programming&Number=81242&page=&view=&sb=&o=&vc=1

In the wiki it says “If you must have your own custom .procmailrc, you will only be able to set one up for mail accounts that are tied to shell/ftp accounts. You cannot access the .procmailrc file for mail accounts that use the autogenerated mXXXXXXX accounts.” http://wiki.dreamhost.com/Procmail

So is there any hope to have not just mXXXXXXX accounts, but forwarding-only addresses handled by a script? And if there’s hope (as Obama claims), how can I accomplish this?


#2

I thought the mXXXXXXX were the default mailboxes for users, not stand alone email accounts?

If my understanding is correct, the script should work fine as it’s creating email accounts and not users.

Have you tried a pipe script yet? If you’re struggling, there’s a couple of posts I made about this at the end of 2007.

Cheers,
Karl

web design, development & seo by DigitalVibe


#3

Thanks for the response.

My problem is with the pipe script. I was providing the other info about creating accounts just for background. I was guessing that the failed email script was due to the fact that it was for a forwarding email account instead of a real account.

So does anyone know if you can use procmail to make a forwarding email address go to a script? Or does that only work with real accounts?


#4

The way i did it (can’t remember the posts, but i made some about this last year) was:

create a mailbox - something like "pipebox@mydomain.com".

Create the forwarding addresses to forward to the pipe mailbox.

Get procmail to use the pipe mailbox.

I did similar so i could use eTicket (free php support ticketing system).

Cheers,
Karl

web design, development & seo by DigitalVibe