|
Tempus Heart
Registered User
Join date: 16 Jan 2006
Posts: 13
|
05-09-2006 22:29
Hey, I host a webpage on dreamhost.com and I was told to set up .procmail to process mail for auto-forward to a PHP program on my server. PHP would not be the big problem for me, but I have never tampered with how emails work. I can access the hidden files in the root of my account at dreamhost.com.
What I want help with, if I send an email to my server, how do I auto-forward it using .procmail? I have a site on how to set up .procmail, but I don't get it to work.
I've been looking around in the forums. I've found snipplets of how to do this and that, but I never actually found how to set it up.
|
|
Leonard Churchill
Just a Horse
Join date: 19 Oct 2005
Posts: 59
|
05-10-2006 14:58
_____________________
"Give me a fish and I eat for a day. Teach me to fish and I eat for a lifetime." - Chinese Proverb Always check the Wiki and/or Script Library
|
|
Tempus Heart
Registered User
Join date: 16 Jan 2006
Posts: 13
|
05-10-2006 16:47
From: Tempus Heart I've been looking around in the forums. I've found snipplets of how to do this and that, but I never actually found how to set it up. Did you read what I wrote? And yes, I know how to use vBulletin. http://www.albinoblacksheep.com/flash/posting.php
|
|
Champie Jack
Registered User
Join date: 6 Dec 2003
Posts: 1,156
|
05-10-2006 17:08
who are you talking to?
|
|
Tempus Heart
Registered User
Join date: 16 Jan 2006
Posts: 13
|
05-10-2006 18:44
He posts several links to threads I've been reading. He obviously didn't know I knew there was a search funtion in these forums.
|
|
Leonard Churchill
Just a Horse
Join date: 19 Oct 2005
Posts: 59
|
05-10-2006 19:17
Sorry for trying to help, dude. I read those threads, and while I don't have Dreamhost as an ISP, I can see how to set up my ISP to do what you want with that info. I assumed you did not read them completely; my bad, I apologize.
I would contact some of those residents who indicated they did have Dreamhost and ask them how they did it - unless you have already done that, in which case I withdraw that idea.
Optionally, as your question is about your ISP (and you indicated you did something but it did not work) you may find faster response asking them on the Dreamhost forum than here in the LSL Scripting Tips forum. Unless you did that, in which case all I can wish you is hope someone else can help you.
Best wishes.
_____________________
"Give me a fish and I eat for a day. Teach me to fish and I eat for a lifetime." - Chinese Proverb Always check the Wiki and/or Script Library
|
|
Eddy Stryker
libsecondlife Developer
Join date: 6 Jun 2004
Posts: 353
|
05-10-2006 19:47
/54/8c/53510/1.htmlThat post explains everything you need to get it working (I'm on DreamHost and have procmail forwarding to a PHP script), do you need help on what to do first, or is something specific not working, or are you looking to hire someone to do it for you? 1) Login to your control panel and set up a user specifically for SL stuff. You can't just make a new mail user, it has to be a full new user due to a limitation in something or other. 2) Once your /home/mysluser/ is setup and you can SSH in under this login, create a file in that home directory called .forward.postfix containing this line: "|/usr/bin/procmail -t" 3) Create a .procmailrc file in the home directory containing something like this: :0 * ^TO_youraddress@yourdomain\.com |/path/to/php /home/youraccountname/path/to/your/email/handler 4) Create ~/path/to/your/email/handler, here is an example: #!/usr/bin/perl #use strict; open (SBOUT,">/home/youraccountname/email.txt"  or die "Can't open email.txt: $!"; # continiously read from stdin while( <> ) { #read a line from stdin and decide what it contains chomp( $line = $_ ); print SBOUT "$line\n"; }
|
|
Tempus Heart
Registered User
Join date: 16 Jan 2006
Posts: 13
|
05-10-2006 20:02
From: Leonard Churchill Sorry for trying to help, dude. I read those threads, and while I don't have Dreamhost as an ISP, I can see how to set up my ISP to do what you want with that info. I assumed you did not read them completely; my bad, I apologize.
I would contact some of those residents who indicated they did have Dreamhost and ask them how they did it - unless you have already done that, in which case I withdraw that idea.
Optionally, as your question is about your ISP (and you indicated you did something but it did not work) you may find faster response asking them on the Dreamhost forum than here in the LSL Scripting Tips forum. Unless you did that, in which case all I can wish you is hope someone else can help you.
Best wishes. Yes, I've talked with dreamhost, suggesting procmail but they didn't do scripting support, which i can understand. I use my local mail adresss [email]user@xxx.dreamhost.com[/email] as suggested in some of the other threads to be able to fetch offline messages, anyway, I think it's just a matter of getting the .procmailrc right now, as I have found the server location for it. Thanks Eddie, I'll try that,
|