LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-17-2008, 03:09 PM   #1
linux88
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Help with linux event handler


Hi everyone, i am new to this and to the linuz enviornment as well. I just recently signed up for a dedicated server and wanted to do something in the SSH terminal but not sure as to how to move forward. So i was wondering if anyone could give me a hand on this.

Here is what i was trying to achieve:
I need emails that are addressed to a certain account on the server (ie: linux88@123.com) to be redirected to a script\ on my server in the cgi-bin\forward.pl

Can anyone help me out? i appreciate it alot.

Thanks
 
Old 09-17-2008, 04:35 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,285
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Hello and welcome to LQ.

Do you really need to use that forward.pl CGI script? If you do need to use it, does it accept an e-mail message on stdin? I mean, if your goal is to just forward e-mails then the easiest method would be to use Procmail.
 
Old 09-17-2008, 08:07 PM   #3
linux88
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Unspawn, I do want it to. the reason is that if the server does forward all emails coming into that linux88@123.com and forwards it to that cgi script(forward.pl), it means that i can then do what i want it to do from there onwards. but right now, since i dont know much about linux, i dont know how to login to the root of my mailbox with SSH and set those commands.
Does procmail forward to a cgi script? I am using a dedicated server with PleskOS. I cant seem to find the option in that software.

I appreciate all your help.
 
Old 09-18-2008, 12:20 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,285
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Quote:
Originally Posted by linux88 View Post
the reason is that (..) i can then do what i want it to do from there onwards.
Procmail can do a lot of conditional stuff. Maybe we could show some solutions if you post some examples (criteria) for routing e-mail certain ways.


Quote:
Originally Posted by linux88 View Post
Does procmail forward to a cgi script?
It definately can, as long as the script is accessable and accepts e-mail on stdin. Maybe post where you got the script from?


Quote:
Originally Posted by linux88 View Post
I am using a dedicated server with PleskOS.
I don't know zilch about PleskOS. Personally I find manual configuration more efficient, less errorprone, faster. But that's just my opinion.


Quote:
Originally Posted by linux88 View Post
I cant seem to find the option in that software.
Maybe you didn't pay enough :-]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Event Handler not running - NRPE: Unable to read output notque Linux - Software 7 04-05-2013 06:27 AM
Nagios Event Handler issue lil_drummaboy Linux - Networking 3 02-29-2008 03:03 AM
Gtkmm / UIManager / passing info to event handler cheeseplz Programming 4 10-18-2007 11:33 PM
Looking for Joystick to Mouse Event Handler that supports Acceleration / Keyboard... fragged Linux - Software 0 08-06-2007 08:17 AM
TCP-IP event-handler in a Linux server Zingaro2002 Linux - Networking 4 06-06-2002 10:05 AM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration