I’ve recently being trying to get my part in the mail hubs finished before heading off on paternity leave for a month. I had great fun today trying to get Mailscanner and Sophos syslogging properly. I’d installed all the software, stoked it up and found that though it was running nothing was getting logged. After checking sysylog.conf and running logger it seemed that the problem was with the perl Sys::Syslog module. After much fiddling around I upgraded it to 0.18 from 0.13 and Sophos started logging, which was great. Fired up MailScanner again but still no logs :(

I decided it was time to delve into the logging code for MailScanner and I noticed that if the OS was detected as Solaris it set the logging mode to udp. This won’t work on our Solaris 10 zones so I altered the code to use native mode. Fired it up again and it worked! I always seem to have to fiddle with MailScanner to get it to log properly, so I’m making a note of what I got up to here so it’s easier in a years time when I have to fiddle again :)