on 21-10-2016 08:47
Introduction
There have been a number of threads on the boards lately where people have been seeing the password prompt pop up when trying to send e-mails.
While the symptom is the same for many users, there are actually a number of possible causes.
Broadly speaking they fall into two categories.
1. Username/Password incorrect - The server sends a 535 Authentication details invalid
2. Authentication refused for other reasons - The server sends 525 Authentication denied
To find out more it's necessary to turn on E-Mail logging in a mail client and view the logs to see which error was returned.
The aim of this post is to show how to turn on logging in 2 popular email applications.
Microsoft Outlook
Mozilla Thunderbird
Unfortunately mobile clients such as those in the Iphone and Android phones don't come with an easy option to do this. And while Windows Live Mail does include a logging option. I personally find more and more reasons NOT to use Live Mail.
Warning
When posting logs post as little as possible - as a rule it's only necessary to post the actual Authentication results line.
Outlook and Thunderbird both hide the password used in the logs, but a number of people who've posted logs from other sources in the past have actually posted their email address and password.
For Example
auth login 334 VXNlcm5hbWU6 bXlhZGRyZXNzQGJsdWV5b25kZXIuY28udWs= 334 UGFzc3dvcmQ6 cGFzc3dvcmQ= 235 ... authentication succeeded
All that's needed is the line in green IN FULL - in this case a successful send.
NEVER POST THE LINES IN RED without changing them. They are your email address and password. They are not encrypted.
To find my address and password just paste the lines in red individually here https://www.base64decode.org/ and press decode.
Microsoft Outlook
To turn on logging in Outlook do the following.
Note when logging is enabled you will get a warning when you start Outlook. clicking the warning will automatically turn off logging if you forget to do step 6 but the change will only take effect after Outlook has been closed.
To find the log file in Outlook 2016 do the following.
2016.10.11 20:06:43 SMTP (smtp.blueyonder.co.uk): [tx] AUTH LOGIN 2016.10.11 20:06:43 SMTP (smtp.blueyonder.co.uk): <rx> 334 VXNlcm5hbWU6 2016.10.11 20:06:43 SMTP (smtp.blueyonder.co.uk): [tx] <base 64 username> 2016.10.11 20:06:43 SMTP (smtp.blueyonder.co.uk): <rx> 334 UGFzc3dvcmQ6 2016.10.11 20:06:43 SMTP (smtp.blueyonder.co.uk): [tx] ***** 2016.10.11 20:06:43 SMTP (smtp.blueyonder.co.uk): <rx> 235 ... authentication succeeded
Mozilla Thunderbird
Using information from here http://kb.mozillazine.org/Session_logging_for_mail/news#Using_Thunderbird - I've created a batch file to start a special session of Thunderbird with logging turned on for SMTP.
Things to note:
tbirdlog.bat
@echo off REM Check if there's a log folder already created if exist %~dp0tbirdlog goto continue REM If not then create it echo creating log folder %~dp0tbirdlog md %~dp0tbirdlog :continue REM Set logging environment variables set NSPR_LOG_MODULES=SMTP:5 set NSPR_LOG_FILE=%~dp0tbirdlog\tbird.log start thunderbird
Setting up
Go to the location you've stored the file and double click it.
The first time it's run you'll see a folder tbirdlog appear in the same folder as the bat file, The command window will close and Thunderbird will start up.
Try sending and close Thunderbird in order to save the log file.
Double click the tbirdlog folder to open it and double click tbird.log to open the file in notepad.
This time were looking for the following lines.
19720[1511140]: PLAIN auth 19720[1511140]: Logging suppressed for this command (it probably contained authentication information) 19720[1511140]: SMTP entering state: 0 19720[1511140]: SMTP Response: 235 ... authentication succeeded
Again the main thing we need is the line in green.
Note: The bat file is 100% safe. I've put in a lot of time helping out on this board as a Superuser. I have no intention of ruining all that good work by distributing files that will damage anyone's systems. It makes no changes to the Thunderbird installation. I do intend to modify it to add timestamps as currently it overwrites the previous log file when run. But I will leave the original up if I do so.
Ravenstar68
I'm a Very Insightful Person, I'm here to share knowledge, I don't work for Virgin Media. Learn more
Have I helped? Click Mark as Helpful Answer or use Kudos to say thanks