Featured Posts

GoAccess is an interactive and website / web-server log analyzer tool currently better than the ApacheTop interface. It provides fast and valuable HTTP statistics for system administrators that require a visual...

Readmore

AjaxMyTop AjaxMyTop is a Web-based tool featuring an AJAX user interface for monitoring a MySQL server. Installing and configuring is fairly simple which you can done it within 2 minutes. [caption id="attachment_587"...

Readmore

Mod_spin is a content handler and/or a filter, meaning, for a specified file extension, mod_spin will read the file (or other input), parse it into an Abstract Syntax Tree (AST) and then replace the occurrences...

Readmore

Server Monitoring using DSTAT DSTAT an excellent tool which combines the overall stats of vmstat, iostat, netstat and ifstat. Dstat allows us to view all of the system resources in the real-time including the network bandwidth, network...

Readmore

BWM-NG Monitoring Network Bandwidth and Disk I/O using BWM-NG BWN-NG (Bandwidth-NG) is old and simple tool to monitor the bandwidth and disk I/O including the RAMdisk usage, this tool really helps the...

Readmore

  • Prev
  • Next

Clearning Postfix mail queue

Posted on : 10-08-2010 | By : admin | In : Plesk

0

Clearing all the mails in Postfix Mail Queue

If you encounter massive spam mails in the plesk mail queue, just execute the command to clear all the mails in the mail queue (make sure that you have figured out the spammer on the server before executing the command otherwise the spam mails will start filling the mail queue again and again).

1 -> Ssh the server as root.


2 – > Stop the postfix mail server to avoid mail queue crash.

/etc/init.d/postfix stop


3 -> Execute the following command :

# for i in `mailq|grep ‘@’ |awk {‘print $1′}|grep -v ‘@’`; do postsuper -d $i ; done


4 -> Now check the mail queue using the following command and make sure no mails inside the queue.

/usr/local/psa/admin/sbin/mailqueuemng


5 -> Start the postfix server again.

Tags : Clearning mails in plesk postfix , How to clear mails in plesk postfix , Clearing spams in plesk mail queue



Write a comment

You must be logged in to post a comment.