Matching & Removing

Posted on 2010-01-12
Medium Priority
Last Modified: 2012-05-08
Hi guys,

I've a situation, have a list of email address, almost 5000, when I send to them an email, got some back with some error, let's assume they are more than 2000.

Keep in mind in these they came back with different headings:

From: Mail Delivery System <mailer-daemon@perfora.net>
Subject: Mail delivery failed: returning message to sender

From: Mail Delivery System <MAILER-DAEMON@p02c11m025.mxlogic.net>
Subject: Mail delivery failed

From:mailer-daemon@<so and so>.com
Subject:Delivery Notification

From: postmaster@<so and so>.COM
From: Mail Delivery Subsystem <mailer-daemon@<so and so>.com>
Subject:Delivery Status Notification (Failure)

From:Yahoo! Groups <notify@yahoogroups.com>
Subject:Unable to deliver your message

some more subject lines are unable to deliver or failure notice or Delivery Notification

and now there is 2nd category, where got out of office or Vacation reply or whatever

Now the question, how to remove these failure ones in a separate list and these out of office ones in seperate one, because they are good ones, but the person is not there at this point in time or either he/she asked to send to some other email address.

Basically would like to segregate the good ones with the bad ones, or either can say, those which are not working at this point in time.

I know this is a little confusing question, but need some help for cleaning my email database, as it is pretty big.

I can do this cleaning either on linux or windows, whatever and where you want me to do, or if there any tool or any db or any thing, how I can fix this problem, as sending emails to these bogus addresses for quite some time.

Big Thanks in advance, for the one who can fix this problem.
Best regards,
Question by:el123
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
  • 5
  • 4
  • 2
  • +3
LVL 13

Expert Comment

ID: 26295743
I am assuming that you want to be able to move some failed mails in one folder and others in another. If that's the case, you can setup a a Rule to accomplish that. If, it's not what you want, please let us know.

Expert Comment

ID: 26295803
If you are not too concerned about whether the process is manual or automated, then maybe this will help:

It will most likely require a manual process of capturing your database in something like Excel.  You'll then be able to export your addresses in (for example) CSV format.

You can then go in and 'clean-up' your database manually, removing the redundant addresses as you receive the non-delivery reports.

The pro is that Excel is fantastic for manupilating huge amounts of data like this, faily easily.

The con is that it is a lot of manual work.

As for automating the process, I would imagine that you could design a program to do it for you, but that's a whole different ball-game.

Good luck!

Author Comment

ID: 26296165
Gurus ... you both are very much correct, and thanks a lot too,
ok first come first:

- jaynir: I've already done this, I've all the error ones are coming to my Outlook folder error ... till here its good, but now how to match and remove from the primary list ... this is the task ... please assist

now the 2nd:
mediabrand: need your help in this regard, I've all the list and can put it in an excel sheet or note pade or in whatever format I can do this, too, but how to remove or ... don't know how to do this

let's assume, I put a rule using outook and now I've 3 folders, one is getting all the error ones, one is getting all the out of office ones ... and the 3rd one is just not rule, this'll be the primary palace where all are coming ... now how to remove this ... please assist, or if you have any formula or any thing that'll be great or if you can suggest any other tool, program or any thing, that'll be of great help.

Thanks again.
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

LVL 11

Expert Comment

ID: 26296790
Hello. Check this, maybe is too much for your problem but there are several softwares there. Some of them may fix your needs.


Expert Comment

ID: 26296822

That's the thing - you will have to manually remove each one from your list.  
LVL 30

Accepted Solution

Kerem ERSOY earned 750 total points
ID: 26302457

You can use procmail with the returning mails.

* ^Subject:.*(returned|failure|delivery).*

Will place all returned delivery mail to a folde called returned.
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 26302464

Author Comment

ID: 26303756
I'm not using unix for email blast, using a 3 party tool, for this email sending, simple light weight ... just for sending emails ... that's it.

And all the replies got into my inbox, whatever email I wrote in this tool ... as Sender's email address:

Please suggest/advice, how I can remove these bad email address, what I can do easily, can forward these Error email addresses into one folder, and then from there, I can dump them in text file format, now the task is to compare from the original file (where all the email addresses are already written) and remove these email addresses which are present in this Bad Email addresses file.

Waiting to hear back ... Gurus!
LVL 38

Expert Comment

ID: 26501358
See this for Spam Fighter Pro.  Has numerous filters and traps (costs $29).

Author Comment

ID: 26502544
thanks puppydogbuddy, but I think you didn't get the question,

it is not to remove or block spam ... we are trying to remove the error-ed email addresses, means that we have sent email to 100 email addresses, and from them 33 was error-ed,for any reason, now we just want to move these error-ed email addresses to another file ... basically removed from the main 100 list ... I'm sure, this'll be clear ... please assist.

- EL
LVL 38

Expert Comment

ID: 26502566
you need to read the product pariculars a little more carefully.  It is much more than a spam blocker....it lets you set rules and filters to redirect emails as well.
LVL 38

Expert Comment

ID: 26503351
See this link for some of the things you should factor into email filters and blocks (rules)in addition to duplications and redirections:

Author Comment

ID: 26530948
puppydogbuddy, I've read it and tried to set the rules too, its like the same as outlook ... whatever I can understand, please help me, if heading in the wrong direction :-(
I create the rules, now the error-ed emails are going to a different folder, then the good one ... right, this is the same as outlook, but ...

now the actual task:

I want to remove these error-ed email addresses from the master list, enable not to send email to the same wrong addresses ... how I can achieve this, this is the problem, they both are in 2 different folders ...

because master list is in .txt format, I can have the error-ed email addresses too, in a txt file ... but now how to match and remove these wrong addresses from the master list ... this is the actual work ...

can you please assist? ... thanks
LVL 38

Assisted Solution

puppydogbuddy earned 750 total points
ID: 26551994

Author Closing Comment

ID: 31676249
Close Partially

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 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