![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
Help - piping email to PHP program.
I need someone's help setting up a way to pipe incoming emails from *@uploads.mydomain.com to a php program
The problem is, I don't know how to set up emails and subdomains in postfix through webmin. I don't know how to tell postfix to handle emails from a subdomain and the documentation is not doing as I expect. Once the uploads.mydomain.com subdomain is setup, I can handle getting it to the PHP script, I just don't know how to tell postfix to handle the domain, and the subdomain. Does anyone have experience with Webmin and postfix? Or even just postfix? ![]() - I am using procmail and postfix - I have set up the DNS to handle the subdomain uploads.mydomain.com - I have successfully gotton ALL emails to go to my php script (yay) - I am UNABLE to get emails from the SUBDOMAINS to go to my php script. Here is the successful "redirect to PHP script", but I don't know how to tell postfix to handle the main domain and subdomain. What is a postfix virtual domain? What is transport mapping? Are users considered to be aliases? Hmmm.. ![]() I have one day to figure this out, it's a small detail and I'm sure I'm missing something.
__________________
www.gimmiegirlproductions.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Are you actually receiving emails at [email protected]?
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
Quote:
This will be for uploading from the iPhone/mobile. My old server had CPanel on it, and it was a point and click deal and it was working fine, but I didn't want to shell out $2000+ for Cpanel on the new server. You know something, I have all the configuration files from the old server. Where would I look to find out how to configure it? I'm a good programmer, and a lousy admin.
__________________
www.gimmiegirlproductions.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Forgot all about this thread. Hope you got it going. If not try this
check postfix main.cf and make sure your subdomain is listed. I think it needs to be defined in virtal_alias_domains. never tried it with a subdomain so not too sure on this /etc/postfix/virtual [email protected] babaganoosh then edit your /etc/aliases babaganoosh: "|/usr/bin/php -q /path/to/your/script" Then run the following commands postmap /etc/postfix/virtual /etc/init.d/postfix restart newaliases This works on Ubuntu 10.04 Edit: You do not need to set up a system user for your alias.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
alternatively you can have php check a pop3 email account with a catchall configured. There are classes available that do this for you.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
Quote:
__________________
www.gimmiegirlproductions.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |