Solved

Email Response With Some Tracking Number

Posted on 2001-06-22
4
154 Views
Last Modified: 2013-12-16
Dear Sir,

What I want is, when some one send's me an email to my

any@mydomain.com it will autoresponse them that we have received his/her email with some tracking number
which is something like

wcws/track/0001  and those number will autogenerate when some one send me an email after this so the
number's will auto generate like wcws/track/0002 , wcws/track/0003

I wanted to know How I am going to do this. I am using Red Hat Linux 6.1 Dedicated Server, with Root
access, please let me know how I am going to do this. Thanks
0
Comment
Question by:sohaib69
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
MFCRich earned 50 total points
Comment Utility
You can do this with an alias. Set-up an email alias like this : any@mydomain.com "| acommand"

This will pipe each email into the standard input of "acommand" which will probably be a shell script you write. This script will get the headers as well as the body of the message and could do anything you imagine. See man newalias or man sendmail for the full poop.

You could probably use procmail to do the same thing but I'm not very familiar with it.
0
 
LVL 1

Author Comment

by:sohaib69
Comment Utility
Thanks for your post. Coud you please tell me how I will do it do u know any shell script by which I can do that, could you please help , I have a autoresponder set, on my server when ever any one send me an emai like asd@mydomain.com the email goes to my account with some thank you message, now please help me in setting up those tracking this..
0
 
LVL 4

Expert Comment

by:MFCRich
Comment Utility
How does your autoresponder know what to put in the thank-you message? It may have the ability to put generated infomation, like your tracking number, in the message. As for a script it would take me a while to come up with it but I don't have anything to test it on. Also I assume you want the tracking number stored somewhere on your machine and that could mean a database. www.freshmeat.net may be a place to look since other people undoubtedly do this.
0
 
LVL 1

Author Comment

by:sohaib69
Comment Utility
Whenever some one sents me an email the email goes to them like thank you - You know.. but I want something on that subject field saying some tracking number like 01 which will autogenerate .. which will store somewhere in my server. Is that possible..
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now