Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Email Response With Some Tracking Number

Posted on 2001-06-22
4
Medium Priority
?
177 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

927 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