<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Resolutin_to_Spamming_%28Qmail_%26_Zimbra%29</id>
	<title>Resolutin to Spamming (Qmail &amp; Zimbra) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Resolutin_to_Spamming_%28Qmail_%26_Zimbra%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Resolutin_to_Spamming_(Qmail_%26_Zimbra)&amp;action=history"/>
	<updated>2026-07-27T11:12:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Resolutin_to_Spamming_(Qmail_%26_Zimbra)&amp;diff=4335&amp;oldid=prev</id>
		<title>Admin: Auto-created from uploaded PDF text extraction</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Resolutin_to_Spamming_(Qmail_%26_Zimbra)&amp;diff=4335&amp;oldid=prev"/>
		<updated>2026-07-26T16:27:10Z</updated>

		<summary type="html">&lt;p&gt;Auto-created from uploaded PDF text extraction&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Auto-generated from the uploaded PDF [[:File:Resolutin_to_Spamming_(Qmail_&amp;amp;_Zimbra).pdf|Resolutin_to_Spamming_(Qmail_&amp;amp;_Zimbra).pdf]]. This is an extracted-text rendering for searchability; see the original PDF for exact formatting, diagrams, tables, and images.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Analyzing &amp;amp; Resolution:&lt;br /&gt;
                                To Spamming&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Spamming Architecture:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                              ISGEC&lt;br /&gt;
                                              Client 4,5,6..&lt;br /&gt;
                            Client 3                               Operating&lt;br /&gt;
  INTERNET                                                         Zimbra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                             Sysnet&lt;br /&gt;
&lt;br /&gt;
                             Client 2&lt;br /&gt;
                                              Tetra_Relay_Server&lt;br /&gt;
Spammer..                                             (Qmail)&lt;br /&gt;
(123@adc.com)&lt;br /&gt;
                                                                   Operating&lt;br /&gt;
                                                                   Qmail&lt;br /&gt;
                            Heromoto&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                            Client 1&lt;br /&gt;
&lt;br /&gt;
Description:&lt;br /&gt;
Above diagram explins below points:&lt;br /&gt;
&lt;br /&gt;
1) Spammer is anyone who is located at external world from the domain network with&lt;br /&gt;
miscellaneous prospectus to stole, corrupt or hamper the operation of server(s).&lt;br /&gt;
&lt;br /&gt;
2) Spammer is located at any location on the internet.&lt;br /&gt;
&lt;br /&gt;
3) It tries to attack client servers {like heromotocorp, sysnet, blsinternational (critical)}.&lt;br /&gt;
Now either the client’s mail are being relayed independantly from their own server or&lt;br /&gt;
through tetra servers.&lt;br /&gt;
&lt;br /&gt;
4) Now the server may be running either qmail/postfix or Zimbra mail server. So the&lt;br /&gt;
workaround for stopping spamming in regard to both type of servers are described below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                    Zimbra Server:&lt;br /&gt;
After getting the information about spam either throgh (Nagios/Call/Email), I perform&lt;br /&gt;
the following steps:&lt;br /&gt;
&lt;br /&gt;
1. Login into the reported server’s admin panel &amp;amp; check the realy information in MTA&lt;br /&gt;
server section.&lt;br /&gt;
2. Unlink relay IP with the corresponding server by removing the IP &amp;amp; port and save the&lt;br /&gt;
configuration in Zimbra Admin Panel of client server.&lt;br /&gt;
3. Now login into the reported server with provided credetails. Then switch with zimbra&lt;br /&gt;
server.&lt;br /&gt;
su ­ zimbra&lt;br /&gt;
postqueue ­q to chek the numbers of mailq&lt;br /&gt;
5. Check the email Id/username from which maximum number of email has been shooted&lt;br /&gt;
by the following command :&lt;br /&gt;
grep sasl_user /var/log/zimbra.log | sed &amp;#039;s/.*sasl_username=//g&amp;#039; | sort | uniq ­c | sort ­nr&lt;br /&gt;
| tail ­n 1000 | less&lt;br /&gt;
6. Try to read the content of the Email of suspicious email id by the following command&lt;br /&gt;
postcat ­p queue_id | less&lt;br /&gt;
7. If content is not genuine/malicious, remove those emails by the following command:&lt;br /&gt;
postqueue ­p |grep &amp;quot;EMAIL_ID&amp;quot; |awk {&amp;#039;print $1&amp;#039;} |grep ­v @ | tr ­d &amp;#039;*!&amp;#039;| postsuper ­d ­&lt;br /&gt;
8. Also,we can check the supicious account by monitioring the overseas domain email ID&lt;br /&gt;
and their content.&lt;br /&gt;
9. Change the password of the concern Email ID by Admin panel&lt;br /&gt;
                                       OPTIONAL..&lt;br /&gt;
10. If needed, we can check the Spammers IP Address from log &amp;amp; will enter that entry in&lt;br /&gt;
IPTABLES . (I havn’t done this yet!!)&lt;br /&gt;
To do so:&lt;br /&gt;
1. cat /var/log/zimbra.log | less (Will check Spammer’s IP, which will be there with&lt;br /&gt;
Spammer Email ID)&lt;br /&gt;
Then we can block it by creating a REJECT rule for that IP either on the MailServer or&lt;br /&gt;
on our relay server. Then restart Iptables service (I havn’t done this yet!!)&lt;br /&gt;
&lt;br /&gt;
We will keep monitor the mailq by postqueue ­q | less for 10/15 minutes(depends on&lt;br /&gt;
Spamming level)&lt;br /&gt;
After making sure the mailq is genuine, we can relay to the suggested relay server.&lt;br /&gt;
Even, after linking with relay server, we will keep eye on mailq for some time.&lt;br /&gt;
&lt;br /&gt;
                                          QMAIL Server:&lt;br /&gt;
&lt;br /&gt;
1. Log in on the qmail server with root and check mail queue with this command.&lt;br /&gt;
&lt;br /&gt;
qmHandle ­l | less&lt;br /&gt;
&lt;br /&gt;
2. To know which user account has been compromised. this command shows which user sending&lt;br /&gt;
maximum mail.&lt;br /&gt;
qmHandle ­l |grep From:|sort|uniq ­c|sort ­nr|head&lt;br /&gt;
OR&lt;br /&gt;
qmHandle ­l|less&lt;br /&gt;
&lt;br /&gt;
3. get message ID&lt;br /&gt;
qmHandle ­m&amp;#039;message ID&amp;#039;|less&lt;br /&gt;
&lt;br /&gt;
4. Change password for it first and delete mail in queue.&lt;br /&gt;
&lt;br /&gt;
5. You can delete mail from queue using different option to from qmHandle -h (help)&lt;br /&gt;
qmHandle ­h&amp;#039;Subject: limited offer&amp;#039;&lt;br /&gt;
or&lt;br /&gt;
qmHandle ­d1234 ­d2345 ­d3456&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>