Posts

Showing posts from January, 2014

Find Spam Mail in Cpanel server:Exim

Image
                                                                            Find Spam Mail in Cpanel server:Exim ==================================== ==================================== #summary of mails in the mail queue.  exim -bpr | exiqsumm -c | head #To get all Message-ids of a Particular user  exiqgrep -f <userid@mail.com>| grep '<' |cut -d"<" -f1 |awk '{print $3}'  Provide username in above script #Print message header  exim -Mvh <message id> #Print message's body  exim -Mvb <message-id> #To Delete all mail queue of a user by Message-id exiqgrep -f <userid@mail.com>| grep '<' |cut -d"<" -f1 |awk '{print $3}' |xargs exim -Mrm =================================================================== #To check the script that will originate spam mails:  tail -f /var/log/exim_mainlog | grep cwd  grep "cwd=/home" /var/log/exim_mainlog | awk '{for(i=