How to resolve spamming issue with postfix

How to resolve the spamming issue with your postfix mailserver having CWP.

Before starting we should stop the postfix mailserver.

service postix stop

For start lets count the number of emails stuck in the mail server queue:

postqueue -p | grep -c "^[A-Z0-9]"

Select few similar emails and use IDs to check them

postqueue -p

you will get something like:
47071F9C08 2262516 Thu Jan 21 13:14:52 [email protected]

Now we need to read that email by ID

postcat -q 47071F9C08

By reading the content of the email we can determinate if that is a spam or not.
If the email is spam then you need to locate the source of it.

If the email source contains something similar like sasl login:
named_attribute: sasl_method=LOGIN
named_attribute: [email protected]

That means that “sasl” password login was hacked for the email account “[email protected]”.
To protect your server you need to change the email account password.

Once you have changed the account password then you should restart the postfix.

service postfix restart

Don’t forget to install mod security with automatic update of rules within you CWP to prevent any further hacking of your sites.

This article will be updated from time to time!!!

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Web hosting control panels
How to manually import emails

Instructions for manual import of the emails to your CWP server. 1. Create all required mailboxes via CWP2. Login in each created mailbox (this will create required file and folder structure)3. Copy the emails (like any other files) in /var/vmail/DOMAIN.COM/USERNAME4. Fix Permissions (chown uploaded files vmail:mail) Example path for email …

Linux Applications
[CyberPanel] Installation and starting usage of CyberPanel

Introduction: In this guide we will introduce you on how to install CyberPanel into your VPS. This is a control panel that eases the control on domains, databases, e-mails and users that are added to your server. For more information and updates on the CyberPanel, you can check the home …

Linux Applications
SSHFS: Installation and Mounting

Introduction SSHFS (SSH Filesystem) is a filesystem client to mount and interact with directories and files located on a remote server or workstation over a normal ssh connection. The client interacts with the remote file system via the SSH File Transfer Protocol (SFTP), a network protocol providing file access, file …