HostOnNet Blog

Exim Mail Server

Looking for Linux Server Admin or WordPress Expert? We can help.

To list all mails in queue

exim -bp

To see total number of mails in Queue, run

exim -bpc

To view body of a mail, run

exim -Mvb MAIL_ID_HERE

To see header of a mail, run

exim -Mvh MAIL_ID_HERE

To find scripts that send email in Cpanel server, run

grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n

Posted in Linux

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.