All of the commands below are run as 'root'. /etc/init.d/exim stop mv /usr/sbin/sendmail /usr/sbin/sendmail.hidden pico /usr/sbin/sendmail Add the following: #!/usr/local/bin/perl # use strict; use Env; my $date = `date`; chomp $date; open (INFO, ">>/var/log/spam_log") || die "Failed to open file ::$!"; my $uid = $>; my @info = getpwuid($uid); if($REMOTE_ADDR) { print INFO "$date - $REMOTE_ADDR ran $SCRIPT_NAME at $SERVER_NAME n"; } else { print INFO "$date - $PWD - @infon"; } my $mailprog = '/usr/sbin/sendmail.hidden'; foreach (@ARGV) { $arg="$arg" . " $_"; } open (MAIL,"|$mailprog $arg") || die "cannot open $mailprog: $!n"; while ( ) { print MAIL; } close (INFO); close (MAIL); save and then chmod +x /usr/sbin/sendmail touch /var/log/spam_log chmod 0777 /var/log/spam_log /etc/init.d/exim start tail - f /var/log/spam_log pico /etc/logrotate.conf FIND: # no packages own wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } ADD BELOW: # SPAM LOG rotation /var/log/spam_log { monthly create 0777 root root rotate 1 } Save file and exit. chattr +i/usr/sbin/sendmail Courtesy of Mora @ alkema4host.com