If you removed the mailscanner.* files underneath /var/lib/dpkg/info, then that would be consistent with what dpkg -l said. If you didn't, mailscanner has been purged already and needs to be fixed, and if you did, then you just needed to purge mailscanner which you did by hand.
-- MailScanner when removed leaves script in cron.daily https://launchpad.net/bugs/80406 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs