View Single Post
Old 18 Feb 2017, 08:11 AM   #4
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,929
Arrow Detailed Thunderbird SMTP debugging

I have several troubleshooting ideas, but I warn you that some of these require that many details be carefully followed. I assume that you are using the SMTP server of your ISP to send email.
  • First start Thunderbird. Go to Help>About Thunderbird. What version are you using? The latest for Windows seems to be 45.7.1.
  • Activate monitoring tools using both of these:
    • Tools>Activity Manager
    • Tools>Error Console
    • Click Clear in each of these tool windows.
  • Send an email. Do you see any errors in either window? You will probably see a pop-up showing that the message is being sent, and the Activity Manager may show some green flashing messages. Any messages which remain will probably be green and should not indicate an error.
The next test is much harder to set up and interpret but will tell us many details:
  • Close Thunderbird (this is very important).
  • Start a command prompt window. You may be able to do this by right-clicking the Windows icon in the lower left corner and choosing Command Prompt, or if you have a Cortana "Ask me anything" box at the bottom enter cmd and press enter.
  • Enter the following text in the Command Prompt box. The easiest way is to select all of the text in the box below, then use right-click-Copy, then use right-click-Paste in the Command Prompt box. Then press the Enter key on your keyboard to execute the command.
    Code:
    set NSPR_LOG_MODULES=SMTP:5,TIMESTAMP
  • In a similar fashion, enter the following text in the Command Prompt box and execute it with Enter:
    Code:
    set NSPR_LOG_FILE=%HOMEDRIVE%%HOMEPATH%\Desktop\tbird_log.txt
  • Now type (or copy) this third command in the Command Prompt window and press Enter:
    Code:
    start thunderbird
  • Thunderbird should now be running. It's important that you start it with the command I gave for logging to work.
  • Send an email with Thunderbird as you would normally. After clicking Send, wait about a minute to be sure the send completes if you have a slow connection or minor errors. Then close Thunderbird (this is very important).
  • Look on your Windows desktop for a new folder named tbird_log.txt. Double-click this folder to view it in Notepad.
  • Each line of the log contains a date/time stamp followed by some unimportant labels then a colon:. Most lines then contain SMTP followed by some status information. The first few lines probably look something like this (using the Fastmail SMTP server):
    Code:
    2017-02-17 23:42:30.209000 UTC - 15652[d11140]: SMTP Connecting to: smtp.fastmail.com
    2017-02-17 23:42:30.322000 UTC - 15652[d11140]: SMTP entering state: 0
    2017-02-17 23:42:30.322000 UTC - 15652[d11140]: SMTP Response: 220 smtp.fastmail.com ESMTP ready
    2017-02-17 23:42:30.322000 UTC - 15652[d11140]: SMTP entering state: 14
    2017-02-17 23:42:30.322000 UTC - 15652[d11140]: SMTP Send: EHLO [192.168.1.11]
    2017-02-17 23:42:30.368000 UTC - 15652[d11140]: SMTP entering state: 0
    2017-02-17 23:42:30.368000 UTC - 15652[d11140]: SMTP Response: 250-smtp.fastmail.com
  • Eventually you will probably see some steps similar to:
    Code:
    trying auth method 0x200
    SMTP entering state: 16
    SMTP AuthLoginStep1() for ......
  • That is the login to the SMTP server using your password. If this is successful, a few steps later you should see an OK response such as:
    Code:
    STMP entering state: 0
    SMTP Response: 235 2.0.0 OK
  • A few steps later you should see the start of the actual email transfer with the From address:
    Code:
    Send: MAIL FROM:<.....> .....
  • And then a few steps later (after an Ok response) you should see the recipient address:
    Code:
    Send: RCPT TO:<......>
  • A few steps later (after another Ok response) you should see the message body, which is only shown in this log as:
    Code:
    SMTP Send:  DATA
  • After the message body is terminated with a . character, you should see QUIT then Bye.
  • If there is a problem during the SMTP transactions described above, you should see some type of error indicated in the log. For example, if you don't have the correct SMTP submission server name configured in Thunderbird you may not get the ESMTP ready response or you may see errors when the login authentication is performed.
  • The logging only works when Thunderbird is started from the command line as described. So it won't slow down normal use of Thunderbird and you don't need to remove anything.
Bill
n5bb is offline   Reply With Quote