Koozali.org: home of the SME Server

how to know to what mail addresses a sender send mails?

Offline anaza19

  • *
  • 9
  • +0/-0
how to know to what mail addresses a sender send mails?
« 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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: how to know to what mail addresses a sender send mails?
« Reply #1 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.

Offline anaza19

  • *
  • 9
  • +0/-0
Re: how to know to what mail addresses a sender send mails?
« Reply #2 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?

Offline m

  • *****
  • 276
  • +0/-0
  • Peet
Re: how to know to what mail addresses a sender send mails?
« Reply #3 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

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: how to know to what mail addresses a sender send mails?
« Reply #4 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
« Last Edit: September 02, 2008, 03:41:27 AM by christian »
SME since 2003