Solved

Email Response With Some Tracking Number

Posted on 2001-06-22
4
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
MFCRich earned 50 total points
ID: 6225989
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
ID: 6226426
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
ID: 6233386
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
ID: 6234152
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

756 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