![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ssh port forward over three server | Art007 | UNIX for Advanced & Expert Users | 2 | 09-18-2008 08:28 AM |
| escaping / (forward slash) | farooqpervaiz | Shell Programming and Scripting | 1 | 08-07-2008 02:26 AM |
| Help with SED and forward slash | gseyforth | Shell Programming and Scripting | 3 | 05-26-2008 07:29 AM |
| UNIX and forward slashes | steverocliffe | UNIX for Dummies Questions & Answers | 1 | 07-19-2001 09:17 PM |
| .forward | MsGail | UNIX for Dummies Questions & Answers | 3 | 03-08-2001 10:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Forward Script
Here is wat iam looking for , I need a forward script which sends out a mail to a particular server say (B-server) as soon as it receives a mail from differnt server say A-server.
Lets say abc@xyz.com is sending a mail from server A to Server B then the script should automatically send a mail to def@rts.com on Server C Because i could able to send the mail to the server but my question here is ,do i need to schedule a job or sme thng which checks for the email in the inbound directory and if found shoots out the email to the desired destination problm,that would be great if i dnt have to schedule smthg. Any sample scripts will be of gr8help to me Can Any one help me with this script Thanks in Advance. Sri Last edited by sriharan; 10-07-2008 at 06:47 PM.. |
|
||||
|
Sounds like procmail. It simply triggers when you receive a message, so no additional hooks are required (but there are differences depending on how exactly you hook it in).
What do you mean by "server A", "server B", and "server C"? Do you need something to happen on a different server than the one where the message is received? Do you need the outgoing message to be sent from a different server than the one where the message is received? If either of these is yes, can you use ssh to accomplish that part? Procmail as such just kicks off a shell script so whatever you can script, you can use from Procmail. |
|
||||
|
thanks for the response
Thanks Era
for ur reply , i Never worked on procmail, Basically iam dealing with 3 servrs 1) Where a alert is Generated thru a Mail lets call it Server A 2) Server B which recives the alert mail from Server A and Shoots out a mail to Server C as soon as it recieves the Mail. Please Let me knw if iam not clear !! Thanks |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|