Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
def msgfactory(self, fp): try: return email.message_from_file(fp) except email.errors.MessageParseError: # Don't return None since that will # stop the mailbox iterator return '' def mailstats(self, user): if os.path.isfile('/var/spool/mail/'+user): fp=open('/var/spool/mail/'+user) else: print 'I cannot open mail for user',user sys.exit(1) str = self.msgfactory(fp) mbox = mailbox.UnixMailbox(fp, str) ..................
Join the community of 500,000 technology professionals and ask your questions.