count total emails sent

dcslp

New member
Joined
Nov 24, 2010
Messages
4
is there a way for me to track the number of emails sent out from my server? i use my server for newsletter sending and i had a godaddy simple control panel that kept the number of all the emails sent out. is this possible in directadmin?
 
been there done that!! no luck!! anything else? any scripts or anything?
 
eximstats is a good tool. You can run it daily to prepare reports for previous day and examine it from web interface or by email:

For Linux:

Code:
EXIM_LOG="/var/log/exim/mainlog.1";
DIR="/var/www/html/eximstats";
CUR_DIR="${DIR}/`date --date=yesterday +%Y/%m/%d`";
if [ ! -d "${CUR_DIR}" ]; then
    mkdir -p ${CUR_DIR};
    echo "Options +Indexes" > "${DIR}/.htaccess"
    echo "Allow from 127.0.0.1" >> "${DIR}/.htaccess"
    echo "Deny from all" >> "${DIR}/.htaccess"
fi;
/usr/sbin/eximstats -html ${EXIM_LOG} > ${CUR_DIR}/index.html

Run it after logrotate, remember to use delaycompress for Exim mainlog rotation.


Or write a simple PHP plugin to display built in Directadmin counters.
 
Last edited:
how much would you charge me to install it for me? im in meetings all day today
 
Don't forget that login information sent in PMs is stilll sent over the Internet in plaintext.

Jeff
 
Back
Top