1825922 Members
3013 Online
109689 Solutions
New Discussion

Re: FIND

 
Hunki
Super Advisor

FIND

I have this mail from a develop asking me to remove him from the distribution list, but I cannot find the script which generated the mail.I looked in cron , no luck , i grepped also in different dirs , no luck. Is there a way to find how this mail got generated.
8 REPLIES 8
Jeff_Traigle
Honored Contributor

Re: FIND

Possibly being emailed to an alias on the system. Check /etc/mail/aliases to see if his username shows up anywhere. If you modify that file, you must run newaliases afterwards to generate the new database file that sendmail actually uses.
--
Jeff Traigle
Steven E. Protter
Exalted Contributor

Re: FIND

find <script directory> -exec grep -l emailaddress {} \;

Example

find /usr -exec grep -l myaddress@yahoo.com {} \;


You can seach the whole system if you wish.


find / -exec grep -l myaddress@yahoo.com {} \;

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: FIND

Har to tell where it was generated - in /var/adm/syslog/maillog you fight be able to see when it was sent.

aliases would be the first place - he might be in there under a group...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Hunki
Super Advisor

Re: FIND

Its ( the mail ) from one of the application ids on the system to the develop.
Hunki
Super Advisor

Re: FIND

Currently searching the whole system as Steven suggested , doing a search through the subject which was there in the mail.
Jeff_Traigle
Honored Contributor

Re: FIND

Another place to look, in that case, is to see if there is a .forward file in the application account's home directory. This could also be used to distribute the mail to other people.
--
Jeff Traigle
Sanjay_6
Honored Contributor

Re: FIND

Hi,

Maybe you can find out the time the mail was received by the user and the id that sent it. Then check your /var/adm/syslog/mail.log file to see if it was sent from this server by that id and that may help you isolate the application that may have run at that time, maybe a cron job or something.

Hope this helps.

regds
Hunki
Super Advisor

Re: FIND

Hard to find...:-(