Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default Quick Python Script to assist with troubleshooting email

    Hi folks -

    Wrote this script last night mostly for myself, but thought others here might appreciate it.

    Basically it allows you to quickly test a client's POP3/IMAP/IMAP-SSL account and verify whether the username/password work, and if it does, how much mail is in the account.

    Good initial test with client's email accounts when they claim it doesn't work, if it doesn't work, it'll give you the error message returned.

    Script can be found here:
    http://aviator.elinuxservers.com/mailtroubleshoot.py

    Quick example:

    Code:
    nick@teleri/ttyp0(~)%] ./mailtroubleshoot.py
    
                            ---------------------------------------
                            POP3 / IMAP / IMAP-SSL Troubleshooter.
                            ---------------------------------------
    
    Please enter protocol you wish to check :imap
    Please enter server: httpme.com
    Please enter account: nick+httpme.com
    Please enter password:
    
    
    Attempting to login using username nick+httpme.com ....
    LOGIN failed
    or, if it works...

    Code:
     [nick@teleri/ttyp0(~)%] ./mailtroubleshoot.py 
      
                             --------------------------------------- 
                             POP3 / IMAP / IMAP-SSL Troubleshooter. 
                             --------------------------------------- 
      
     Please enter protocol you wish to check :imap-ssl 
     Please enter server: httpme.com 
     Please enter account: nick+httpme.com 
     Please enter password: 
      
      
     Attempting to login using username nick+httpme.com .... 
     Login successful to httpme.com using IMAP-SSL 
     This mailbox has 2448 messages, totaling 37393268 bytes.
    Mostly written to help me learn the pop3 and imap libs of Python, but should be useful regardless.
    Last edited by nickn; 04-13-2005 at 12:52 PM.

Similar Threads & Tags
Similar threads

  1. Need help with quick Grep Script
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-13-2008, 05:16 PM
  2. troubleshooting script permissions
    By sime in forum cPanel Developers
    Replies: 1
    Last Post: 08-02-2007, 01:57 PM
  3. Installed Chirpys Mailscanner/Clamav script - Quick query.
    By djblamire in forum cPanel Developers
    Replies: 16
    Last Post: 12-20-2006, 07:45 AM
  4. Can someone write me a quick chowing script?
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-17-2006, 11:09 PM
  5. Email troubleshooting..
    By host4good in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-18-2005, 05:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube