Thursday, October 17, 2013

extracting mailing script out of exim queue, using awk

This is a nice command I came to:

exim -bp | awk '{ if ($3 neq '') system("exim -Mvh " $3) }' | grep Script | awk '{ print $3}' | sort

It prints the scripts of my server that have send mail.

It is also useful the mail.log php directive, that logs a lot of information of every script that send mail with mail() in php.

No comments:

Post a Comment