Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: anaza19 on September 01, 2008, 05:18:53 AM

Title: how to know to what mail addresses a sender send mails?
Post by: anaza19 on September 01, 2008, 05:18:53 AM
i would like to know to what addresses a certain user is sending mails...is there any way to know it? it's on  a SME server 7.3
Title: Re: how to know to what mail addresses a sender send mails?
Post by: CharlieBrady on September 01, 2008, 03:45:41 PM
i would like to know to what addresses a certain user is sending mails...is there any way to know it?

Log files.
Title: Re: how to know to what mail addresses a sender send mails?
Post by: anaza19 on September 01, 2008, 06:01:44 PM
HI Charlie brady ...can u tell me in what menu of Log file can i find them?
Title: Re: how to know to what mail addresses a sender send mails?
Post by: m on September 01, 2008, 08:29:55 PM
in what menu of Log file can i find them?
Have you ever looked at the Administration Manual?
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter10
Title: Re: how to know to what mail addresses a sender send mails?
Post by: christian on September 02, 2008, 03:22:22 AM
i would like to know to what addresses a certain user is sending mails...is there any way to know it? it's on  a SME server 7.3

I use the following script to find all emails sent TO and FROM a specific user:
Code: [Select]
egrep -A 1 -B 1 "userofinterest@mydomain.com" /var/log/qmail/current | mail -sUserofinterestEmailScan myuserid@mydomain.comBasically finds any instance of userofinterest and prints the line before and after which normally contains the from or to party. In my case I then send the output to my email address.

If you only want to find out who it was sent to then try the following:
Code: [Select]
egrep -A 1 "from <userofinterest@mydomain.com" /var/log/qmail/current | mail -sUserofinterestEmailScan myuserid@mydomain.com
Of course this is run from the command line and deals with recent history. For older logs you can also include seaching the files starting with "@" in the same directory.


Christian