Solved

Email Response With Some Tracking Number

Posted on 2001-06-22
4
163 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I setup Wordpress to use Master / Slave MySQL database setup? 4 130
Moving from Mcrypt to OpenSSL 18 75
Linux MD5 Hash 7 97
IMAP copying tool 14 77
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses

752 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