HostOnNet Blog

Tag Archives: exim

Exim Mail Server

To list all mails in queue To see total number of mails in Queue, run To view body of a mail, run To see header of a mail, run To find scripts that send email in Cpanel server, run


Deleting spam mails with exiqgrep

exiqgrep is a command to search in exim mail queue. To freeze all mail from a domain, run To freeze all mails by recipient domain, run To delete all frozen mails, run


How to solve 451 Temporary local problem – please try later error in exim mail server

My domain is hosted on a linux server and I am using Exim mail server on the same. Today when I tried to send an email via webmail, got the following error message: Tried in all interfaces such as Horde,


PHP Script to alert if mail queue size is above X on Cpanel Server

I created a php script to alert if mail queue size if above 100. <?php $cmd =  ‘/usr/sbin/exim -bpc’; $num_mails = exec($cmd); if ($num_mails > 100) { $hostname = exec(‘/bin/hostname’); $subject = ‘Mail queue alert on ‘ . $hostname; $mail_text


eximrm – delete mails in exim queue

Create file /usr/local/bin/eximrm with following content chmod 755 the file Now running the command “eximrm” will delete mails in Exim mail queue.


Error – Mail Server Upgrade in Progress

Today i restored a Cpanel Server after OS reload. Copying files from OLD HD to New HD take several hours, the work started at 11 PM and i have got the server up and running by 5 AM. All web