<br>
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/webhostingchenna/domains/webhostingchennai.co.in/public_html/blog/wp-content/plugins/wp-linkbuilder/plugin/plugin_class.inc.php</b> on line <b>637</b><br>
{"id":853,"date":"2018-06-13T11:49:30","date_gmt":"2018-06-13T06:19:30","guid":{"rendered":"http:\/\/www.webhostingchennai.co.in\/blog\/?p=853"},"modified":"2019-03-11T12:03:39","modified_gmt":"2019-03-11T06:33:39","slug":"find-out-the-spam-mailing-script","status":"publish","type":"post","link":"https:\/\/www.webhostingchennai.co.in\/blog\/find-out-the-spam-mailing-script\/","title":{"rendered":"How to find out the spam mailing script\u2019s location"},"content":{"rendered":"<h4 class=""><span style="">How to find out the spam mailing script\u2019s location<\/span><\/h4>\n<p>The Exim <a href="">mail server<\/a> has a lot of options\/commands to find out the details of spammers easily from the command line.We can find out the mail queue details, spam mail sender details, spam mail counts etc from the link I mentioned above.<\/p>\n<p><a href=""><img data-recalc-dims=""><\/a><\/p>\n<p>Here is a piped-command to find out the spam mailing script\u2019s location\/folder in the server. It would be more helpful for us to identify the spam mail sending script and we can nullify it easily to stop spamming activity.<\/p>\n</p><p><strong>Steps to find the spam mailing script location?<\/strong><\/p>\n<p><strong>Step 1 :<\/strong>\u00a0SSH to your server as root user.<br>\n<strong>Step 2 :<\/strong>\u00a0Execute the command pasted below:<\/p>\n<pre># grep cwd \/var\/log\/exim_mainlog|grep -v \/var\/spool|awk -F\"cwd=\" '{print $2}'|awk '{print $1}'|sort|uniq -c|sort -n<\/pre>\n<p>The above command will displays the total count of emails sent and the corresponding directory\/location which generate the spam mails actually.<\/p>\n</p><pre><strong># grep cwd \/var\/log\/exim_mainlog|grep -v \/var\/spool|awk -F\"cwd=\" '{print $2}'|awk '{print $1}'|sort|uniq -c|sort -n<\/strong>\r\n     ...........\r\n     ...........\r\n    370 \/home\/$USER1\/public_html\r\n    386 \/home\/$USER2\/public_html\r\n    415 \/home\/$USER3\/public_html\r\n    470 \/home\/$USER4\/public_html\r\n    620 \/root\r\n   1409 \/home\/$USER5\/public_html\/link\r\n   6340 \/home\/$USER6\/public_html\r\n  63898 \/etc\/csf\r\n<\/pre>\n<p><strong>To find the domain which is being used by spammers<\/strong><\/p>\n<pre>exim -bpr | exiqsumm -c | head<\/pre>\n<p><strong>To remove the emails<\/strong>\u00a0<strong>being used by spammers<\/strong><\/p>\n<pre>exiqgrep -ir &lt;domain&gt; | xargs -n1 exim -Mrm<\/pre>\n<p>&nbsp;<\/p>\n</p><p>Hope this article helps you. For, cPanel related articles please <a href="">click here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":924,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15],"tags":[108,109],"class_list":["post-853","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exim","tag-finding-spam-mail-location","tag-spam-mail-script-location"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/06\/Spam.jpg?fit=678%2C340&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9NOHH-dL","jetpack-related-posts":[{"id":1650,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/20-exim-mail-queue-commands\/","url_meta":{"origin":853,"position":0},"title":"Top 20 Exim Mail Queue Commands","author":"Cavin","date":"September 24, 2021","format":false,"excerpt":"Top 20 Exim Mail Queue Commands In this post, we are going to see about some of the email queue commands. These commands are normally used by the root users to know about the email queues and why the mails are in queue. To proceed further, Lets see what is\u2026","rel":"","context":"In &quot;CentOS \/ REDHAT&quot;","block_context":{"text":"CentOS \/ REDHAT","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/centos-redhat\/"},"img":{"alt_text":"20 Exim Mail Queue Commands","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/exim20.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/exim20.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/exim20.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1877,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/domain-has-exceeded-the-max-defers-and-failures-per-hour\/","url_meta":{"origin":853,"position":1},"title":"Domain (example.com) has exceeded the max defers and failures per hour","author":"Cavin","date":"March 23, 2024","format":false,"excerpt":"If you are receiving an error similar to \"Domain example.com has exceeded the max defers and failures per hour (5\/5 (100%)) allowed\" in an email bounceback, it means that outgoing email from your domain has triggered a rule in the server that will stop any further email from going out\u2026","rel":"","context":"In &quot;cPanel&quot;","block_context":{"text":"cPanel","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/cpanel\/"},"img":{"alt_text":"max defers","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/maxdiffer-1024x457.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/maxdiffer-1024x457.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/maxdiffer-1024x457.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/maxdiffer-1024x457.png?resize=700%2C400 2x"},"classes":[]},{"id":2082,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/set-up-email-accounts-in-webuzo\/","url_meta":{"origin":853,"position":2},"title":"How to Set Up and Configure Email Accounts in Webuzo","author":"Cavin","date":"November 10, 2024","format":false,"excerpt":"Set Up and Configure Email Accounts in Webuzo - Setting up and managing email accounts is essential for running a professional website, whether for personal use, business, or organization. Webuzo makes it easy to set up and configure email accounts directly from its control panel, allowing you to create, manage,\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/11\/configure-email-accounts-in-webuzo-hero.jpg?fit=991%2C515&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/11\/configure-email-accounts-in-webuzo-hero.jpg?fit=991%2C515&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/11\/configure-email-accounts-in-webuzo-hero.jpg?fit=991%2C515&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/11\/configure-email-accounts-in-webuzo-hero.jpg?fit=991%2C515&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1856,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/why-are-my-emails-going-to-spam\/","url_meta":{"origin":853,"position":3},"title":"Why Are My Emails Going to Spam?","author":"Cavin","date":"March 10, 2024","format":false,"excerpt":"Why are my emails going to spam? Do you often find yourself asking this question? Well, you\u2019re not alone. Email marketing\u00a0has become an integral part of every business.\u00a0However, a major challenge businesses face is having their emails land in the recipient\u2019s spam folder instead of their inbox. This frustrating problem\u2026","rel":"","context":"In &quot;EMAIL&quot;","block_context":{"text":"EMAIL","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/email\/"},"img":{"alt_text":"spam","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/spam.png?fit=850%2C319&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/spam.png?fit=850%2C319&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/spam.png?fit=850%2C319&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/03\/spam.png?fit=850%2C319&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1194,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/cpanel-logs\/","url_meta":{"origin":853,"position":4},"title":"cPanel Logs &#8211; Apache, Access, Email, Error, FTP, MySQL, WHM","author":"Cavin","date":"February 19, 2019","format":false,"excerpt":"cPanel Logs - Apache, Access, Email, Error, FTP, MySQL, WHM cPanel uses a graphical interface to make web hosting super easy, but there are command line tools you could familiarize yourself with for advanced troubleshooting. cPanel logs most activity that happens on a server to log files so you can\u2026","rel":"","context":"In &quot;cPanel&quot;","block_context":{"text":"cPanel","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/cpanel\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/cpanel-logs.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/cpanel-logs.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2019\/02\/cpanel-logs.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2008,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/what-is-a-ptr-record\/","url_meta":{"origin":853,"position":5},"title":"What is a PTR Record?","author":"Cavin","date":"September 2, 2024","format":false,"excerpt":"PTR record resolves an IP address (made up of numbers and decimals) into a domain name (such as\u00a0example.com). The act of translating an IP address into a\u00a0domain\u00a0name is known as a\u00a0reverse lookup\u00a0in the Domain Name System (DNS). While we usually think of DNS as a means to go from a\u2026","rel":"","context":"In &quot;VPS&quot;","block_context":{"text":"VPS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/vps\/"},"img":{"alt_text":"PTR Record","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/09\/ptrrr.jpg?fit=792%2C411&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/09\/ptrrr.jpg?fit=792%2C411&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/09\/ptrrr.jpg?fit=792%2C411&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2024\/09\/ptrrr.jpg?fit=792%2C411&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":4,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions\/1164"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media\/924"}],"wp:attachment":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}</p></a></p></pre></strong></strong></p></pre></strong></p></strong></pre></pre></strong></strong></p></strong></p></a></p></a></p></span></h4>