• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Resolved Checking which site is sending spam

Erick Nunes

Basic Pleskian
Hello, I would like to know how to find out which site from my plesk server is firing a lot of spam.

With what commands or log files do I see this?

Thank you.
 
First thing i'd check is the number of SMTP connections per each email account;

# zgrep 'sasl_method=LOGIN' /usr/local/psa/var/log/maillog* | awk '{print $9}' | sort | uniq -c | sort -nr | head

If nothing looks out of the norm there, it's like something exploiting the PHP mail function. You can create a wrapper script which will basically add additional header information to the messages so that you can identify the source;

Many email messages are sent from PHP scripts on a server. How to find domains on which these scripts are running if Postfix is used?

You can also run the following which will show you in real time what PHP scripts are being hit;

# lsof +r 1 -p `ps axww | grep httpd | grep -v grep | awk ' { if(!str) { str=$1 } else { str=str","$1}}END{print str}'` | grep vhosts | grep php
 
Thank you !

Just a question, is the last command returning correct? Follow the return print
 

Attachments

  • Screenshot at Feb 16 00-11-40.png
    Screenshot at Feb 16 00-11-40.png
    19.2 KB · Views: 31
Negative, the last time I used that was on a Plesk 10 box so it may not be accurate anymore. Sorry about that.
 
Back
Top