The following monster will parse the mail log and report on unique host connections along with a count.
cat /var/log/mail.log | \ grep ' connect from unknown' | \ awk '{ print $8 }' | \ sort | \ sed -n 's/.*\[\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\)\].*/\1/p' | \ awk '{count[$1]++} END {for (word in count) print count[word], word}' | \ sort -n