Solved

Email Response With Some Tracking Number

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change time in cron 4 65
How to learn Linux? 10 43
networking details on centos 6.6 4 52
Reset Root Password on CentOS 6 4 44
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…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

910 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

27 Experts available now in Live!

Get 1:1 Help Now