<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ravi</id>
	<title>TetraWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ravi"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Special:Contributions/Ravi"/>
	<updated>2026-07-25T07:21:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Over_Quota_List_In_Zimbra&amp;diff=1743</id>
		<title>Over Quota List In Zimbra</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Over_Quota_List_In_Zimbra&amp;diff=1743"/>
		<updated>2014-12-02T18:07:37Z</updated>

		<summary type="html">&lt;p&gt;Ravi: Created page with &amp;quot;category:Heromotocorp Biz category:Tetra Clients  == &amp;#039;&amp;#039;&amp;#039;Command to find all Over Quota Users in zimbra - for HEROMOTOCORP.BIZ&amp;#039;&amp;#039;&amp;#039; ==    postqueue -p | grep -A1 &amp;quot;Over qu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Heromotocorp Biz]]&lt;br /&gt;
[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Command to find all Over Quota Users in zimbra - for HEROMOTOCORP.BIZ&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 postqueue -p | grep -A1 &amp;quot;Over quota&amp;quot; | grep @ | sort | uniq&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Spam_Issue_on_Triburg_and_its_troubleshoot_of_which_account_got_compromised_in_ZImbra&amp;diff=1742</id>
		<title>Spam Issue on Triburg and its troubleshoot of which account got compromised in ZImbra</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Spam_Issue_on_Triburg_and_its_troubleshoot_of_which_account_got_compromised_in_ZImbra&amp;diff=1742"/>
		<updated>2014-12-02T18:07:04Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Another Method For Finding the Authenticated User For Spamming */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Triburg]]&lt;br /&gt;
&lt;br /&gt;
==ISSUE==&lt;br /&gt;
&lt;br /&gt;
One of the account got compromised and Spam mails were sent using that account credentials . &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finding Methodology ==&lt;br /&gt;
&lt;br /&gt;
# check the mailq ( as zimbra user ) if traces of those mails are available &lt;br /&gt;
# Check /var/log/zimbra.log and identify the IP&lt;br /&gt;
# Check /opt/zimbra/log/audit.log for the authentication information against that IP and at that time &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Finding ==&lt;br /&gt;
&lt;br /&gt;
Check the mailq , but only the bounce traces of mails were available , which did not reveal the sender information , but showed that Spamming has been done via this server &lt;br /&gt;
&lt;br /&gt;
Next , Checked the zimbra.log found traces of the spam mail ID. &lt;br /&gt;
&lt;br /&gt;
 Feb  6 04:15:49 mail postfix/qmgr[17520]: AB0B2B4B8096: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1293, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:49 mail postfix/qmgr[17520]: 2CF51190049: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 29F4F190048: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 5932E190042: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 62B5D1901C1: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
&lt;br /&gt;
The From ID 041700@unmsm.edu.pe  is the spammer. We had to check for its traces the previous logs  /var/log/zimbra.log.1 , and discovered the IP address &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Feb  6 00:59:43 mail postfix/qmgr[17520]: 16DBEB4B801C: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=893, nrcpt=5 (queue active)&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20130206T004632-03538: &amp;lt;041700@unmsm.edu.pe&amp;gt; -&amp;gt;  &amp;lt;chizobamjames@gmail.com&amp;gt;,&amp;lt;chizoba.j@rediff.com&amp;gt;,&amp;lt;chizoba.j@rediffmail.com&amp;gt;,&amp;lt;don_chizzy2000@yahoo.com&amp;gt;,&amp;lt;don_chizzy@ymail.com&amp;gt; SIZE=893 Received: from     mail.triburg.co.in ([127.0.0.1]) by localhost (mail.triburg.co.in [127.0.0.1]) (amavisd-new, port 10024) with ESMTP; Wed,  6 Feb 2013 00:59:43 +0530 (IST)&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) Checking: uv8HJES+YMct &#039;&#039;&#039;[101.63.8.198]&#039;&#039;&#039; &amp;lt;041700@unmsm.edu.pe&amp;gt; -&amp;gt; &amp;lt;chizobamjames@gmail.com&amp;gt;,&amp;lt;chizoba.j@rediff.com&amp;gt;, &amp;lt;chizoba.j@rediffmail.com&amp;gt;,&amp;lt;don_chizzy2000@yahoo.com&amp;gt;,&amp;lt;don_chizzy@ymail.com&amp;gt;&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) Open relay? Nonlocal recips but not originating: chizobamjames@gmail.com, chizoba.j@rediff.com, chizoba.j@rediffmail.com , don_chizzy2000@yahoo.com , don_chizzy@ymail.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then the authentication information was discovered from /opt/zimbra/log/audit.log&lt;br /&gt;
&lt;br /&gt;
 2013-02-06 00:50:33,034 INFO  [btpool0-474://localhost/service/soap/AuthRequest] &#039;&#039;&#039;[name=imran.khan@triburg.co.in;ip=101.63.8.198&#039;&#039;&#039;;ua=zclient/6.0.14_GA_2928;]  security - cmd=Auth; account=imran.khan@triburg.co.in; protocol=soap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Password was of the compromised account was immediately changed .&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Another Method For Finding the Authenticated User For Spamming==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr | tail -n 1000 | less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:-&lt;br /&gt;
&lt;br /&gt;
Step 1.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log&lt;br /&gt;
will print all the lines containing &amp;quot;sasl_user&amp;quot; in /var/log/zimbra.log&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # Nov 25 11:18:40 mail postfix/smtpd[30849]:C16F52C8400A:client=unknown[106.67.154.16],sasl_method=PLAIN,sasl_username=taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039;&lt;br /&gt;
Output is then passed through pipe symbol to the right where everything before and including &amp;quot;sasl_username=&amp;quot; in the previous output is replaced to null. So the Output is only email-ID.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort&lt;br /&gt;
It will sort all the email-IDs in the previous step.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # tanushka.Gwalior@herofincorp.biz&lt;br /&gt;
  # tanushka.Gwalior@herofincorp.biz&lt;br /&gt;
  # tanushka@heromotocorp.biz&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
  # twincity.khanna@herofincorp.biz&lt;br /&gt;
  # udaya.hospet@heromotocorp.biz&lt;br /&gt;
  # union.JAMSHEDPUR@herofincorp.biz&lt;br /&gt;
  # union.JAMSHEDPUR@herofincorp.biz&lt;br /&gt;
  # unique.Batala@herofincorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 4.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c&lt;br /&gt;
It will uniquely count each email-ID in the previous step and will print with a number it was occured.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # 3 navkar.Dhule@herofincorp.biz&lt;br /&gt;
  # 7 navkar.dhule@heromotocorp.biz&lt;br /&gt;
  # 3 nimar.khargone&lt;br /&gt;
  # 5 northern.akbarpur@herofincorp.biz&lt;br /&gt;
  # 2 northern.kanpur&lt;br /&gt;
  # 9 northern.kanpur@herofincorp.biz&lt;br /&gt;
  # 2 ommotors.chennai@herofincorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr&lt;br /&gt;
It will sort the output in previous step with number.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # 2288 kalptarumotors@heromotocorp.biz&lt;br /&gt;
  # 25 carlatazzioli@hmclcolombia.com&lt;br /&gt;
  # 20 leydyjimenez@hmclcolombia.com&lt;br /&gt;
  # 18 marcelamunoz@hmclcolombia.com&lt;br /&gt;
  # 17 juan.marin@hmclcolombia.com&lt;br /&gt;
  # 13 leonardo.meza@hmclcolombia.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr | tail -n 1000 | less&lt;br /&gt;
It will print last 1000 lines.&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Spam_Issue_on_Triburg_and_its_troubleshoot_of_which_account_got_compromised_in_ZImbra&amp;diff=1741</id>
		<title>Spam Issue on Triburg and its troubleshoot of which account got compromised in ZImbra</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Spam_Issue_on_Triburg_and_its_troubleshoot_of_which_account_got_compromised_in_ZImbra&amp;diff=1741"/>
		<updated>2014-12-02T18:06:48Z</updated>

		<summary type="html">&lt;p&gt;Ravi: /* Another Method For Finding the Authenticated User For Spamming */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Triburg]]&lt;br /&gt;
&lt;br /&gt;
==ISSUE==&lt;br /&gt;
&lt;br /&gt;
One of the account got compromised and Spam mails were sent using that account credentials . &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finding Methodology ==&lt;br /&gt;
&lt;br /&gt;
# check the mailq ( as zimbra user ) if traces of those mails are available &lt;br /&gt;
# Check /var/log/zimbra.log and identify the IP&lt;br /&gt;
# Check /opt/zimbra/log/audit.log for the authentication information against that IP and at that time &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Finding ==&lt;br /&gt;
&lt;br /&gt;
Check the mailq , but only the bounce traces of mails were available , which did not reveal the sender information , but showed that Spamming has been done via this server &lt;br /&gt;
&lt;br /&gt;
Next , Checked the zimbra.log found traces of the spam mail ID. &lt;br /&gt;
&lt;br /&gt;
 Feb  6 04:15:49 mail postfix/qmgr[17520]: AB0B2B4B8096: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1293, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:49 mail postfix/qmgr[17520]: 2CF51190049: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 29F4F190048: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 5932E190042: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 62B5D1901C1: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
&lt;br /&gt;
The From ID 041700@unmsm.edu.pe  is the spammer. We had to check for its traces the previous logs  /var/log/zimbra.log.1 , and discovered the IP address &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Feb  6 00:59:43 mail postfix/qmgr[17520]: 16DBEB4B801C: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=893, nrcpt=5 (queue active)&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20130206T004632-03538: &amp;lt;041700@unmsm.edu.pe&amp;gt; -&amp;gt;  &amp;lt;chizobamjames@gmail.com&amp;gt;,&amp;lt;chizoba.j@rediff.com&amp;gt;,&amp;lt;chizoba.j@rediffmail.com&amp;gt;,&amp;lt;don_chizzy2000@yahoo.com&amp;gt;,&amp;lt;don_chizzy@ymail.com&amp;gt; SIZE=893 Received: from     mail.triburg.co.in ([127.0.0.1]) by localhost (mail.triburg.co.in [127.0.0.1]) (amavisd-new, port 10024) with ESMTP; Wed,  6 Feb 2013 00:59:43 +0530 (IST)&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) Checking: uv8HJES+YMct &#039;&#039;&#039;[101.63.8.198]&#039;&#039;&#039; &amp;lt;041700@unmsm.edu.pe&amp;gt; -&amp;gt; &amp;lt;chizobamjames@gmail.com&amp;gt;,&amp;lt;chizoba.j@rediff.com&amp;gt;, &amp;lt;chizoba.j@rediffmail.com&amp;gt;,&amp;lt;don_chizzy2000@yahoo.com&amp;gt;,&amp;lt;don_chizzy@ymail.com&amp;gt;&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) Open relay? Nonlocal recips but not originating: chizobamjames@gmail.com, chizoba.j@rediff.com, chizoba.j@rediffmail.com , don_chizzy2000@yahoo.com , don_chizzy@ymail.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then the authentication information was discovered from /opt/zimbra/log/audit.log&lt;br /&gt;
&lt;br /&gt;
 2013-02-06 00:50:33,034 INFO  [btpool0-474://localhost/service/soap/AuthRequest] &#039;&#039;&#039;[name=imran.khan@triburg.co.in;ip=101.63.8.198&#039;&#039;&#039;;ua=zclient/6.0.14_GA_2928;]  security - cmd=Auth; account=imran.khan@triburg.co.in; protocol=soap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Password was of the compromised account was immediately changed .&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Another Method For Finding the Authenticated User For Spamming==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr | tail -n 1000 | less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:-&lt;br /&gt;
&lt;br /&gt;
Step 1.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log&lt;br /&gt;
will print all the lines containing &amp;quot;sasl_user&amp;quot; in /var/log/zimbra.log&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # Nov 25 11:18:40 mail postfix/smtpd[30849]:C16F52C8400A:client=unknown[106.67.154.16],sasl_method=PLAIN,sasl_username=taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039;&lt;br /&gt;
Output is then passed through pipe symbol to the right where everything before and including &amp;quot;sasl_username=&amp;quot; in the previous output is replaced to null. So the Output is only email-ID.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort&lt;br /&gt;
It will sort all the email-IDs in the previous step.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # tanushka.Gwalior@herofincorp.biz&lt;br /&gt;
  # tanushka.Gwalior@herofincorp.biz&lt;br /&gt;
  # tanushka@heromotocorp.biz&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
  # twincity.khanna@herofincorp.biz&lt;br /&gt;
  # udaya.hospet@heromotocorp.biz&lt;br /&gt;
  # union.JAMSHEDPUR@herofincorp.biz&lt;br /&gt;
  # union.JAMSHEDPUR@herofincorp.biz&lt;br /&gt;
  # unique.Batala@herofincorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 4.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c&lt;br /&gt;
It will uniquely count each email-ID in the previous step and will print with a number it was occured.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # 3 navkar.Dhule@herofincorp.biz&lt;br /&gt;
  # 7 navkar.dhule@heromotocorp.biz&lt;br /&gt;
  # 3 nimar.khargone&lt;br /&gt;
  # 5 northern.akbarpur@herofincorp.biz&lt;br /&gt;
  # 2 northern.kanpur&lt;br /&gt;
  # 9 northern.kanpur@herofincorp.biz&lt;br /&gt;
  # 2 ommotors.chennai@herofincorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr&lt;br /&gt;
It will sort the output in previous step with number.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # 2288 kalptarumotors@heromotocorp.biz&lt;br /&gt;
  # 25 carlatazzioli@hmclcolombia.com&lt;br /&gt;
  # 20 leydyjimenez@hmclcolombia.com&lt;br /&gt;
  # 18 marcelamunoz@hmclcolombia.com&lt;br /&gt;
  # 17 juan.marin@hmclcolombia.com&lt;br /&gt;
  # 13 leonardo.meza@hmclcolombia.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr | tail -n 1000 | less&lt;br /&gt;
It will print last 1000 lines.&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Spam_Issue_on_Triburg_and_its_troubleshoot_of_which_account_got_compromised_in_ZImbra&amp;diff=1735</id>
		<title>Spam Issue on Triburg and its troubleshoot of which account got compromised in ZImbra</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Spam_Issue_on_Triburg_and_its_troubleshoot_of_which_account_got_compromised_in_ZImbra&amp;diff=1735"/>
		<updated>2014-11-27T02:32:25Z</updated>

		<summary type="html">&lt;p&gt;Ravi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Triburg]]&lt;br /&gt;
&lt;br /&gt;
==ISSUE==&lt;br /&gt;
&lt;br /&gt;
One of the account got compromised and Spam mails were sent using that account credentials . &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finding Methodology ==&lt;br /&gt;
&lt;br /&gt;
# check the mailq ( as zimbra user ) if traces of those mails are available &lt;br /&gt;
# Check /var/log/zimbra.log and identify the IP&lt;br /&gt;
# Check /opt/zimbra/log/audit.log for the authentication information against that IP and at that time &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Finding ==&lt;br /&gt;
&lt;br /&gt;
Check the mailq , but only the bounce traces of mails were available , which did not reveal the sender information , but showed that Spamming has been done via this server &lt;br /&gt;
&lt;br /&gt;
Next , Checked the zimbra.log found traces of the spam mail ID. &lt;br /&gt;
&lt;br /&gt;
 Feb  6 04:15:49 mail postfix/qmgr[17520]: AB0B2B4B8096: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1293, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:49 mail postfix/qmgr[17520]: 2CF51190049: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 29F4F190048: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 5932E190042: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
 Feb  6 04:15:50 mail postfix/qmgr[17520]: 62B5D1901C1: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=1292, nrcpt=50 (queue active)&lt;br /&gt;
&lt;br /&gt;
The From ID 041700@unmsm.edu.pe  is the spammer. We had to check for its traces the previous logs  /var/log/zimbra.log.1 , and discovered the IP address &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Feb  6 00:59:43 mail postfix/qmgr[17520]: 16DBEB4B801C: from=&amp;lt;041700@unmsm.edu.pe&amp;gt;, size=893, nrcpt=5 (queue active)&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20130206T004632-03538: &amp;lt;041700@unmsm.edu.pe&amp;gt; -&amp;gt;  &amp;lt;chizobamjames@gmail.com&amp;gt;,&amp;lt;chizoba.j@rediff.com&amp;gt;,&amp;lt;chizoba.j@rediffmail.com&amp;gt;,&amp;lt;don_chizzy2000@yahoo.com&amp;gt;,&amp;lt;don_chizzy@ymail.com&amp;gt; SIZE=893 Received: from     mail.triburg.co.in ([127.0.0.1]) by localhost (mail.triburg.co.in [127.0.0.1]) (amavisd-new, port 10024) with ESMTP; Wed,  6 Feb 2013 00:59:43 +0530 (IST)&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) Checking: uv8HJES+YMct &#039;&#039;&#039;[101.63.8.198]&#039;&#039;&#039; &amp;lt;041700@unmsm.edu.pe&amp;gt; -&amp;gt; &amp;lt;chizobamjames@gmail.com&amp;gt;,&amp;lt;chizoba.j@rediff.com&amp;gt;, &amp;lt;chizoba.j@rediffmail.com&amp;gt;,&amp;lt;don_chizzy2000@yahoo.com&amp;gt;,&amp;lt;don_chizzy@ymail.com&amp;gt;&lt;br /&gt;
 Feb  6 00:59:43 mail amavis[3538]: (03538-09) Open relay? Nonlocal recips but not originating: chizobamjames@gmail.com, chizoba.j@rediff.com, chizoba.j@rediffmail.com , don_chizzy2000@yahoo.com , don_chizzy@ymail.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then the authentication information was discovered from /opt/zimbra/log/audit.log&lt;br /&gt;
&lt;br /&gt;
 2013-02-06 00:50:33,034 INFO  [btpool0-474://localhost/service/soap/AuthRequest] &#039;&#039;&#039;[name=imran.khan@triburg.co.in;ip=101.63.8.198&#039;&#039;&#039;;ua=zclient/6.0.14_GA_2928;]  security - cmd=Auth; account=imran.khan@triburg.co.in; protocol=soap;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Password was of the compromised account was immediately changed .&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
--------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Another Method For Finding the Authenticated User For Spamming==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr | tail -n 1000 | less&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:-&lt;br /&gt;
&lt;br /&gt;
Step 1.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log&lt;br /&gt;
will print all the lines containing &amp;quot;sasl_user&amp;quot; in /var/log/zimbra.log&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # Nov 25 11:18:40 mail postfix/smtpd[30849]:C16F52C8400A:client=unknown[106.67.154.16],sasl_method=PLAIN,sasl_username=taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039;&lt;br /&gt;
Output is then passed through pipe symbol to the right where everything before and including &amp;quot;sasl_username=&amp;quot; in the previous output is replaced to null. So the Output is only email-ID.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 3.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort&lt;br /&gt;
It will sort all the email-IDs in the previous step.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # tanushka.Gwalior@herofincorp.biz&lt;br /&gt;
  # tanushka.Gwalior@herofincorp.biz&lt;br /&gt;
  # tanushka@heromotocorp.biz&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
  # taranangad.gwalior@heromotocorp.biz&lt;br /&gt;
  # twincity.khanna@herofincorp.biz&lt;br /&gt;
  # udaya.hospet@heromotocorp.biz&lt;br /&gt;
  # union.JAMSHEDPUR@herofincorp.biz&lt;br /&gt;
  # union.JAMSHEDPUR@herofincorp.biz&lt;br /&gt;
  # unique.Batala@herofincorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 4.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c&lt;br /&gt;
It will uniquely count each email-ID in the previous step and will print with a number it was occured.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # 3 navkar.Dhule@herofincorp.biz&lt;br /&gt;
  # 7 navkar.dhule@heromotocorp.biz&lt;br /&gt;
  # 3 nimar.khargone&lt;br /&gt;
  # 5 northern.akbarpur@herofincorp.biz&lt;br /&gt;
  # 2 northern.kanpur&lt;br /&gt;
  # 9 northern.kanpur@herofincorp.biz&lt;br /&gt;
  # 2 ommotors.chennai@herofincorp.biz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr&lt;br /&gt;
It will sort the output in previous step with number.&lt;br /&gt;
&lt;br /&gt;
eg,&lt;br /&gt;
  # 2288 kalptarumotors@heromotocorp.biz&lt;br /&gt;
  # 25 carlatazzioli@hmclcolombia.com&lt;br /&gt;
  # 20 leydyjimenez@hmclcolombia.com&lt;br /&gt;
  # 18 marcelamunoz@hmclcolombia.com&lt;br /&gt;
  # 17 juan.marin@hmclcolombia.com&lt;br /&gt;
  # 13 leonardo.meza@hmclcolombia.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 6.&lt;br /&gt;
  grep sasl_user /var/log/zimbra.log | sed &#039;s/.*sasl_username=//g&#039; | sort | uniq -c | sort -nr | tail -n 1000 | less&lt;br /&gt;
It will print last 1000 lines.&lt;/div&gt;</summary>
		<author><name>Ravi</name></author>
	</entry>
</feed>