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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-29-2011, 07:04 PM   #1
camperjohn64
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
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2011, 07:25 AM   #2
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Are you actually receiving emails at [email protected]?
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2011, 11:09 AM   #3
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
Quote:
Originally Posted by Babaganoosh View Post
Are you actually receiving emails at [email protected]?
Yes. It will be something like [email protected]

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
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2011, 09:40 AM   #4
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
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.

Last edited by Babaganoosh; 04-01-2011 at 09:42 AM..
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2011, 10:45 AM   #5
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
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.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2011, 07:32 PM   #6
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
Quote:
Originally Posted by Babaganoosh View Post
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 am going to try this on the weekend and let you know how it goes. It's the last thing that is holding me back from my iPhone version of my website.
__________________
www.gimmiegirlproductions.com
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.