{"id":1117,"date":"2011-12-07T11:09:10","date_gmt":"2011-12-07T11:09:10","guid":{"rendered":"https:\/\/www.uk-cheapest.co.uk\/support\/?p=1117"},"modified":"2011-12-09T15:24:04","modified_gmt":"2011-12-09T15:24:04","slug":"how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail","status":"publish","type":"post","link":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/","title":{"rendered":"How do I find the SPAM source on a Plesk server using qmail?"},"content":{"rendered":"<p><strong>Re: Finding spammers in Plesk, find source of spam on Plesk server<\/strong><\/p>\n<p>If you are hosting a Plesk server wilth multiple sites then eventually you will find that spam will appear from one of those sites and it will be difficult to determine where the spam is coming from. This will put your server IP at risk of being suspended by your server provider.<\/p>\n<p>First things first, let&#8217;s check to see if the spam is being sent by a mailbox user, this would indicate deliberate spamming from a client or a compromised password on a mailbox account.<\/p>\n<p><strong>Out of the ordinary authentications<\/strong><\/p>\n<p>A large number of authentications to a particular mailbox, ie. thousands, can indicate massive email activity, you can check this quickly as follows:<\/p>\n<pre># cat \/usr\/local\/psa\/var\/log\/maillog |grep -I \"LOGIN\"|awk {'print $12'}|sort|uniq -c|sort -n<\/pre>\n<p>If you cannot see anything out of the ordinary, the search continues.<\/p>\n<p><strong>The Maillog is your friend<\/strong><\/p>\n<p>Let&#8217;s take a look at the plesk qmail maillog:<\/p>\n<pre># tail -500 \/usr\/local\/psa\/var\/log\/maillog<\/pre>\n<p>Entries like the following indicate the domain and mailbox that the email is being sent from:<\/p>\n<pre>Dec  7 10:51:01 server qmail-local-handlers[29265]: from=info@spammerdomain.com<\/pre>\n<p>This leaves you no further work to do, possibly suspend the account and contact the client in question. You might want to clear the mail queue in the Plesk panel also.<\/p>\n<p><strong>Difficult to locate spammers<\/strong><\/p>\n<p>A more difficult situation is where the email is being sent using the Apache user or as anonymous. This type of email spam cannot so easily be traced to a sender as it is not being sent from a mailbox.<\/p>\n<p>These entries look something like this:<\/p>\n<pre>Dec \u00a07 10:50:17 server qmail-queue-handlers[29080]: from=anonymous@server.hostname.com<\/pre>\n<p>Or like this:<\/p>\n<pre>Dec \u00a07 10:50:17 server qmail: 1323255017.404624 info msg 47220220: bytes 501 from &lt;anonymous@server.hostname.com&gt; qp 29081 uid 48<\/pre>\n<p>It is not possible to determine the spammer from the maillog in this situation. These emails are being sent using a form processor or other PHP mailer \/ PERL mailer script.<\/p>\n<p><strong>Track, Trace and Remove<\/strong><\/p>\n<p>To solve this problem you need to<\/p>\n<ul>\n<li>Login to the Plesk Control Panel &gt; Home &gt; Mail Settings &gt; Mail Queue<\/li>\n<li>Click on one of the many SPAM emails you will see listed<\/li>\n<\/ul>\n<p>Look for this at the top of the mail header:<\/p>\n<pre>Received: (qmail 2583 invoked by uid 10211)<\/pre>\n<p>Once you have the UID (which in this case in 10211) you can now trace the client like this:<\/p>\n<pre># grep 10211 \/etc\/passwd<\/pre>\n<p>Which will show something like this:<\/p>\n<pre>dom74628:x:10211:2523::\/var\/www\/vhosts\/thespammerdomain.com:\/bin\/false<\/pre>\n<p>You can now proceed suspend the spam account and remove all the mails from the mail queue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Re: Finding spammers in Plesk, find source of spam on Plesk server If you are hosting a Plesk server wilth multiple sites then eventually you will find that spam will appear from one of those sites and it will be difficult to determine where the spam is coming from. This will put your server IP &#8230; <a title=\"How do I find the SPAM source on a Plesk server using qmail?\" class=\"read-more\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/\" aria-label=\"More on How do I find the SPAM source on a Plesk server using qmail?\">Read more&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"generate_page_header":"","footnotes":""},"categories":[166],"tags":[58,17,219],"class_list":["post-1117","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-plesk","tag-spam","tag-spammer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.4 (Yoast SEO v23.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How do I find the SPAM source on a Plesk server using qmail? - UK-Cheapest.co.uk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I find the SPAM source on a Plesk server using qmail?\" \/>\n<meta property=\"og:description\" content=\"Re: Finding spammers in Plesk, find source of spam on Plesk server If you are hosting a Plesk server wilth multiple sites then eventually you will find that spam will appear from one of those sites and it will be difficult to determine where the spam is coming from. This will put your server IP ... Read more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/\" \/>\n<meta property=\"og:site_name\" content=\"UK-Cheapest.co.uk\" \/>\n<meta property=\"article:published_time\" content=\"2011-12-07T11:09:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-12-09T15:24:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/IMG_3064.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"439\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"UKC\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:site\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"UKC\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/\",\"name\":\"How do I find the SPAM source on a Plesk server using qmail? - UK-Cheapest.co.uk\",\"isPartOf\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UK-Cheapest.co.uk\",\"item\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I find the SPAM source on a Plesk server using qmail?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#website\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\",\"name\":\"UK-Cheapest.co.uk\",\"description\":\"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security\",\"publisher\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#organization\",\"name\":\"UKC\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png\",\"contentUrl\":\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png\",\"width\":217,\"height\":55,\"caption\":\"UKC\"},\"image\":{\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ukchelpdesk\",\"https:\/\/www.instagram.com\/ukc_hosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746\",\"name\":\"UKC\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g\",\"caption\":\"UKC\"},\"sameAs\":[\"https:\/\/www.uk-cheapest.co.uk\"],\"url\":\"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How do I find the SPAM source on a Plesk server using qmail? - UK-Cheapest.co.uk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/","og_locale":"en_GB","og_type":"article","og_title":"How do I find the SPAM source on a Plesk server using qmail?","og_description":"Re: Finding spammers in Plesk, find source of spam on Plesk server If you are hosting a Plesk server wilth multiple sites then eventually you will find that spam will appear from one of those sites and it will be difficult to determine where the spam is coming from. This will put your server IP ... Read more...","og_url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/","og_site_name":"UK-Cheapest.co.uk","article_published_time":"2011-12-07T11:09:10+00:00","article_modified_time":"2011-12-09T15:24:04+00:00","og_image":[{"width":768,"height":439,"url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/IMG_3064.jpeg","type":"image\/jpeg"}],"author":"UKC","twitter_card":"summary_large_image","twitter_creator":"@ukchelpdesk","twitter_site":"@ukchelpdesk","twitter_misc":{"Written by":"UKC","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/","name":"How do I find the SPAM source on a Plesk server using qmail? - UK-Cheapest.co.uk","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website"},"breadcrumb":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-find-the-spam-source-on-a-plesk-server-using-qmail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"UK-Cheapest.co.uk","item":"https:\/\/www.uk-cheapest.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"How do I find the SPAM source on a Plesk server using qmail?"}]},{"@type":"WebSite","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","name":"UK-Cheapest.co.uk","description":"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security","publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization","name":"UKC","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","width":217,"height":55,"caption":"UKC"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ukchelpdesk","https:\/\/www.instagram.com\/ukc_hosting\/"]},{"@type":"Person","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746","name":"UKC","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f39b95f178ec21ebe3134a71baa1146d?s=96&d=mm&r=g","caption":"UKC"},"sameAs":["https:\/\/www.uk-cheapest.co.uk"],"url":"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1117"}],"collection":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/comments?post=1117"}],"version-history":[{"count":6,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1117\/revisions"}],"predecessor-version":[{"id":1120,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/1117\/revisions\/1120"}],"wp:attachment":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/media?parent=1117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/categories?post=1117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/tags?post=1117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}