Analysing Mail Logs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Analysing Mail Logs
# 1  
Old 10-14-2009
Analysing Mail Logs

Hello,

I have a list of e-mails. I need to know, which email-s from that list not use. I want to do this things:
- take email address from email list
- find this address in mail logs
- if, there is no record about this e-mail adress in list, show this e-mail address on screen

I did it by handle. How can i automize this process in bash?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problems in analysing SSH LOG users & time

Attached is the log file that I have generated through the following script: last | head -2 |sed '2q;d' |awk '{ print $1"\t"$2"\t"$3"\t\t"$4"\t"$5"\t"$6"\t"$7"\t"$8"\t" $9"\t"$10"\t"$11}'>>/var/log/logadmin/logtest.txt But now I'm unable to run the following operations on it: 1. Count... (1 Reply)
Discussion started by: Lionking93
1 Replies

2. AIX

Issue with nmon analysing

Dear Experts, Am using nmon analyser version 3.3g, and when i tried analyzing my current nmon file it was done successfully. But the problem is all my old nmon files are compressed. So i uncompressed and analyzed using the same analyzer. but got this error no valid input data! nmon run may... (8 Replies)
Discussion started by: jayadeava
8 Replies

3. Solaris

SunOS 5.9 mail logs

If someone sent me an email using mail, sendmail, or mailx would there be some supporting logs? I am unfamiliar w/ SunOS and looked in /var/log/syslog and /var/mail but didn't find anything matching my name. I just want to see some generic information like which command was used, the date, time,... (3 Replies)
Discussion started by: MaindotC
3 Replies

4. Shell Programming and Scripting

Reading and analysing data in a text file

Hi, I have below type of data in a text file in unix. Emp_Name Emp_Dept Raj 101 Amruta 100 Shilpa 100 Rohit 123 Amol 198 Rosh 101 Gaurav 198 Number of employees can be even more. Need a command or a... (2 Replies)
Discussion started by: rajneesh_kapoor
2 Replies

5. Solaris

Analysing a core dump.

Friends I was trying to analyse a core dump using pstack command in Sol5.9(Sparc) The output is as below. root: pstack core_mumux211_istauth_220_108_1229517198_21922 core 'core_mumux211_istauth_220_108_1229517198_21922' of 21922: istauth fe1afbb8 ttcdrv (c10e0, c1db4, 30ad8, bc950, 0, 0)... (1 Reply)
Discussion started by: efunds
1 Replies

6. UNIX for Dummies Questions & Answers

Analysing Log Files?

I'm not sure if this query is relevant to this forum but here goes anyways... I want analyse log files that do not appear to be of standard format. I have tried using Analog but cannot config it to read the files. Does anyone have any advice on working with log files taken from a Unix... (6 Replies)
Discussion started by: Sepia
6 Replies

7. HP-UX

Query: Analysing the Core file

Hi, Is there any way to find the mode of the binary file (debug or release) by analyzing the core file generated by that binary on the HPUX11i Platform? (5 Replies)
Discussion started by: Prajakta
5 Replies

8. UNIX for Dummies Questions & Answers

Help analysing progress of a log file

Is it possible to track the progress of a job (informatica) by analysing the progress of it's log file ? I have a long running job, and no way of tracking how far allong it is. Thanks. (4 Replies)
Discussion started by: cosmos328is
4 Replies

9. UNIX for Advanced & Expert Users

Analysing truss log

I am facing the following issue when using db2. The JDBC prepared statement command is sending an incorrect value to the database for search. I did a truss on the app and here is the log. I want to know what is the value that is getting passed. is it possible. 26867/68: send(62,... (2 Replies)
Discussion started by: buytamil
2 Replies

10. UNIX for Dummies Questions & Answers

Send mail when user logs in.

Hi All, I have a specific requirement hope you guys can help me resolve this problem. I want to send an email when a specific user logs in.. Eg: My User ID on the Unix box is VENKYA when I log into the System can we send a mail that I logged in. I am on a Sun Solaris Server. ... (3 Replies)
Discussion started by: venkyA
3 Replies
Login or Register to Ask a Question
CUFILTER(1p)						User Contributed Perl Documentation					      CUFILTER(1p)

NAME
cufilter - Filter emails through Mail::CheckUser SYNOPSIS
Add the following lines to your ~/.procmailrc: # Filter mail through Mail::CheckUser :0f | /usr/bin/cufilter DESCRIPTION
When email messages are filtered through this program using the procmail settings as outlined in the SYNOPSYS, the email address in the "From:" header is passed through Mail::CheckUser to ensure validity. If there is a problem with the email address, the "Subject:" header is modified to show which email address failed along with the failure reason. No messages are lost, but it provides an easy way for the mail client to organize, sort, or filter based on the subject tweaks. EXAMPLES
Lets say a spammer sends a message with the following headers: From: god@heaven.org To: you@host.com Subject: Happy Pill Then the new headers might change to the following: From: god@heaven.org To: you@host.com Subject: [CU!god@heaven.org!DNS failure: SERVFAIL] Happy Pill This makes it easy to filter for mail clients. INSTALL
This file can be installed into /usr/bin/cufilter and is intended to be utilized through the procmail functionality by adding the following lines to your ~/.procmailrc configuration. # Filter mail through Mail::CheckUser :0f | /usr/bin/cufilter AUTHORS
Rob Brown bbb@cpan.org COPYRIGHT
Copyright (c) 2003 Rob Brown bbb@cpan.org. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. $Id: cufilter,v 1.3 2003/09/18 15:36:26 hookbot Exp $ SEE ALSO
Mail::CheckUser(3), procmail(1). perl v5.14.2 2012-03-10 CUFILTER(1p)