<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jedisaber.com/index.php?action=history&amp;feed=atom&amp;title=Spamming_Plesk</id>
	<title>Spamming Plesk - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jedisaber.com/index.php?action=history&amp;feed=atom&amp;title=Spamming_Plesk"/>
	<link rel="alternate" type="text/html" href="https://wiki.jedisaber.com/index.php?title=Spamming_Plesk&amp;action=history"/>
	<updated>2026-05-15T19:10:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.jedisaber.com/index.php?title=Spamming_Plesk&amp;diff=13000&amp;oldid=prev</id>
		<title>Admin at 02:12, 31 October 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.jedisaber.com/index.php?title=Spamming_Plesk&amp;diff=13000&amp;oldid=prev"/>
		<updated>2017-10-31T02:12:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:12, 31 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Print the messages in the queue with the UID:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Print the messages in the queue with the UID:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;postqueue -p&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;postqueue -p&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Print the email message in the terminal:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Print the email message in the terminal:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.jedisaber.com/index.php?title=Spamming_Plesk&amp;diff=12999&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Plesk is spamming!!  What to do: 1. Panic.  Postfix is really grumpy about working with you to figure out what it&#039;s doing.   &#039;&#039;&#039;E-mails in queue:&#039;&#039;&#039;&lt;br /&gt; &lt;pre&gt; function _line...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jedisaber.com/index.php?title=Spamming_Plesk&amp;diff=12999&amp;oldid=prev"/>
		<updated>2017-10-31T02:12:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Plesk is spamming!!  What to do: 1. Panic.  Postfix is really grumpy about working with you to figure out what it&amp;#039;s doing.   &amp;#039;&amp;#039;&amp;#039;E-mails in queue:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt; &amp;lt;pre&amp;gt; function _line...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Plesk is spamming!!&lt;br /&gt;
&lt;br /&gt;
What to do:&lt;br /&gt;
1. Panic.&lt;br /&gt;
&lt;br /&gt;
Postfix is really grumpy about working with you to figure out what it&amp;#039;s doing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;E-mails in queue:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function _line { echo &amp;quot;=======Emails in $DIR Queue=======&amp;quot;; };cd /var/spool/postfix;ls -l|egrep -o &amp;quot;deferred|hold|active|corrupt|defer|maildrop&amp;quot;|while read DIR; do _line; ls -lA $DIR|wc -l; echo; done;cd - 1&amp;gt;/dev/null;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Size of the queue:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
postqueue -p | grep -c &amp;#039;^[0-9A-Z]&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Print the messages in the queue with the UID:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;postqueue -p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Print the email message in the terminal:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;postcat -q $UID&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Check for originating scripts ==&lt;br /&gt;
&lt;br /&gt;
In the php mail log:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;grep eval /var/log/php_maillog| grep -Po &amp;quot;(?&amp;lt;=\[).*?(?=\()&amp;quot;|sort -b|uniq -c |sort -rnk1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No php maillog (Booo!) We can still check the mail headers... but this is very SLOW:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;for i in $(postqueue -p | grep &amp;#039;^[0-9A-Z]&amp;#039;| awk &amp;#039;{print $1}&amp;#039;); do postcat -q $i | grep &amp;#039;X-PHP-Originating-Script&amp;#039;; done |  cut -d&amp;#039;:&amp;#039; -f1- | sort -b|uniq -c|sort -rnk1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This finds the script from the above... I think...&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;find $PATH  -type f -exec grep -Ea -o Script\:\ [[:digit:]]+\:[[:alnum:]]+\.php {} \;|sort|uniq -c|sort -rnk1&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>