Fixed v15 sendmail : password encryption problem

Feb 26, 2013
100
0
TCC 15.00.31 x64 Windows 7 [Version 6.1.7601]
TCC Build 31 Windows 7 Build 7601 Service Pack 1

The smtp password is encrypted and stored in tcmd.ini successfully but it appears that TCC is not decrypting the password correctly before logging onto the server:

1. Start TCC, in the option/internet tab enter smtp details including password and press OK
2. Send a test e-mail with sendmail - it works OK.
3. Examine tcmd.ini and the mail password can be seen to be encrypted.
4. Quit TCC and restart it so that TCMD.INI is read again
5. Send another e-mail - the send fails with error:
TCC: SMTP protocol error. 535 5.7.3 Authentication unsuccessful.
6. Quit TCC and manually edit tcmd.ini to replace the encrypted password with the clear text version
7. Start TCC and send an e-mail - it works OK.

So it would appear that TCC is not decrypting the password correctly (or perhaps not at all) when reading it from tcmd.ini

Dan
 
Dec 2, 2008
224
2
Canada
I have something similar with JABBER and server, username and password from the TCMD.INI. I get an attempt to connect using ip 0.0.0.0. If I use the same info stored in the TCMD.INI on the command line using the command line options and data, it works.


Craig
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I have something similar with JABBER and server, username and password from the TCMD.INI. I get an attempt to connect using ip 0.0.0.0. If I use the same info stored in the TCMD.INI on the command line using the command line options and data, it works.

Also not reproducible here. Can you give me the exact info you're entering in OPTION (minus the password!) and the exact command line you're using?

(This cannot have anything to do with the password encryption, as the server name is not encrypted.)
 
Feb 26, 2013
100
0
I've been trying for two hours to reproduce this, but it's working perfectly for me.

Are you entering *all* of the SMTP fields?

The above steps are repeatable for me. There are values in all of the SMTP fields on the option/internet page, I set the port to 587 as that's what my mail provider requires. Auto SSL is not checked. I'm still using build 31 to check this, I will update to build 32 shortly and try again.
 
Feb 26, 2013
100
0
The above steps are repeatable for me. There are values in all of the SMTP fields on the option/internet page, I set the port to 587 as that's what my mail provider requires. Auto SSL is not checked. I'm still using build 31 to check this, I will update to build 32 shortly and try again.

I'm seeing the same problem with build 32. This is what I did

1. Ran the updater to install b32
2. Manually edited TCMD.INI so that the mail password is in clear text
3. Ran TCC, sent a test e-mail, it worked OK.
4. Entered mail password in option/internet tab, clicked OK, looked at TCMD.INI and mail password is now encrypted.
5. Sent a test e-mail, it worked OK
6. Quit TCC and restarted to force read of TCMD.INI
7. Sent a test e-mail, it failed with error
TCC: SMTP protocol error. 535 5.7.3 Authentication unsuccessful.

However, on further testing I have more information. I have run all tests to date on TCC in a TCMD tab. I tried using TCC standalone with the above steps and I can get it to work, the problem seems to be related to how the option dialogue is launched.

If I type OPTION at the command line, either standalone or in a TCMD tab, enter a mail password into the internet tab and examine TCMD.INI I see a specific encrypted string, and sendmail works OK. However, if I launch the option dialogue from the TCMD menu bar (Options/Configure TCC), enter *the same* mail password into the internet tab and examine TCMD.INI I see a *different* encrypted string, and sendmail fails as described above. I have checked the title bar of the option dialogue and the same TCMD.INI filename appears however it is launched.

Therefore it seems there's a problem with the encryption when the option dialogue is launched by TCMD and not a problem with the decryption. My workaround is therefore to make all settings by typing OPTION at the command line and avoid launching the dialogue from the TCMD menu bar.

Dan
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Therefore it seems there's a problem with the encryption when the option dialogue is launched by TCMD and not a problem with the decryption. My workaround is therefore to make all settings by typing OPTION at the command line and avoid launching the dialogue from the TCMD menu bar.

WAD - choosing the TCC configuration dialog from TCMD does *not* affect any existing TCC sessions (and never has). You should also make sure that you are using the same TCMD.INI in both TCMD and TCC. (Compare the filename on the dialog title bar when invoking OPTION from the TCC command line and when invoking the TCC configuration from TCMD.)
 
Feb 26, 2013
100
0
WAD - choosing the TCC configuration dialog from TCMD does *not* affect any existing TCC sessions (and never has). You should also make sure that you are using the same TCMD.INI in both TCMD and TCC. (Compare the filename on the dialog title bar when invoking OPTION from the TCC command line and when invoking the TCC configuration from TCMD.)

Not sure I agree Rex. If you read my last post you will see that I said that TCMD and TCC are using the same tcmd.ini file. The issue is also not with *current* TCC sessions. If I update TCC options via the TCMD dialogue and tcmd.ini is updated, then surely the next TCC that starts should read that file and use the settings.

The problem I am seeing is that if I save a mail password via an option dialogue launched from the TCMD menu bar the encrypted string saved in TCMD.INI is wrong and will not work with all subsequently launched sessions of TCC.
 
Dec 2, 2008
224
2
Canada
From testing I have noticed that there is something wrong with the TCMD option Editor Dialog. After noticing this I tried to add new TAB information. Originally I called my first TAB, Primary, but after entering information for the second TAB and "Apply" and "OK", the new TAB information didn't show up in the TCMD.INI file, in fact the information for TAB 1 "Primary" disappeared.
 
Dec 2, 2008
224
2
Canada
One more thing, if I edit the TCMD.INI file with a text editor, thing seem to be okay, everything seem to show up in the Option Dialog, it isn't until I make a change that will ADD something new to the the TCMD.INI file things go bad. If I have a TAB 1 already in the TCMD.INI, I can edit it in the TCMD Option Editor Dialog and it seems to save okay, but if I add TAB 2 where there was no TAB 2 information all ready in the TCMD.INI file that is when things seem to disappear. If I use a text editor to put in TAB 2, I can edit it and save through the TCMD Option Editor Dialog without problems.
 
Dec 2, 2008
224
2
Canada
I am still having a problem with Jabber and the password from the TCMD.INI file. The if I was to use the following command line:

JABBER /B"MyBuddy" Test

I would get:

TCC: SASL authentication failed.

If I remove the encrypted jabber password from the TCMD.INI and replace it with the unencrypted text password in the TCMD.INI file it works.
 
Feb 26, 2013
100
0
I am still having a problem with Jabber and the password from the TCMD.INI file. The if I was to use the following command line:

JABBER /B"MyBuddy" Test

I would get:

TCC: SASL authentication failed.

If I remove the encrypted jabber password from the TCMD.INI and replace it with the unencrypted text password in the TCMD.INI file it works.

How are you invoking the OPTION dialogue to enter the jabber password? I found that for the sendmail password the resulting encrypted string is different when OPTION is launched from the command line to when it is started from the TCMD drop down menu (Options/Configure TCC), and I wonder if the same thing applies to the jabber password? In the case of sendmail it works correctly when the OPTION dialogue is launched by typing OPTION at the prompt.

Dan
 
Dec 2, 2008
224
2
Canada
How are you invoking the OPTION dialogue to enter the jabber password? I found that for the sendmail password the resulting encrypted string is different when OPTION is launched from the command line to when it is started from the TCMD drop down menu (Options/Configure TCC), and I wonder if the same thing applies to the jabber password? In the case of sendmail it works correctly when the OPTION dialogue is launched by typing OPTION at the prompt.

Dan
Yes, works for the OPTION from the command prompt but not the TCMD drop down.
 
Similar threads
Thread starter Title Forum Replies Date
newbie Upgrade from v15 to v21 Support 9
MickeyF problem using COM object in VBScript from v16 x64 TCC but not from v15 32-bit TCC Support 4
vefatica Fixed V14, V15, V16 now corrupt Support 4
S Documentation Webpage not showing latest V15 build Support 0
D Folder/List view changed in v15 Support 8
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
nikbackm Fixed v15: Issue with @select Support 3
nikbackm Registration problem with v15 Support 16
S list seems to loose focus v15 Support 2
Dan Glynhampton v15 installer question Support 2
G How to? v15: Can't alias Alt-Z Support 7
C Startup folder not working on v15 Support 6
G Fixed v15.00.27: @SELECT Support 10
H V15 Help: Error in ASSOCIATE topic Support 0
H V15 installer difficult to use with JAWS screen reader Support 0
nikbackm Fixed v15: VIEW - encoding and CSV issues Support 9
nikbackm v15: Problem with ALIAS in command group Support 10
Dan Glynhampton Documentation v15 help: Some trivial nitpicking. Support 1
Dan Glynhampton Documentation v15 help: Error in @ISSPACE topic Support 0
Dan Glynhampton Documentation v15 help: Error in @TASCII topic Support 0
Dan Glynhampton Documentation v15 help: A couple of typos Support 0
Dan Glynhampton Documentation v15 help: Minor niggles Support 0
Dan Glynhampton Documentation v15 help: Missing link Support 0
Dan Glynhampton Documentation v15 help: Syntax error in example of @DEC Support 0
Dan Glynhampton Documentation v15 help: More mailto: links Support 2
Dan Glynhampton Documentation v15 help: More odd mailto: links in the help Support 8
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
Dan Glynhampton Documentation v15 help: Error in @HTMLDECODE topic Support 0
Dan Glynhampton Documentation v15 help: Error in @TUPPER topic Support 0
Dan Glynhampton Documentation v15 help: Error on @TRIMALL function page Support 0
Dan Glynhampton Documentation v15 help: Strange links in @INT topic Support 0
Dan Glynhampton Documentation v15 help: Incorrect Links Support 0
Dan Glynhampton Documentation v15 help: Help for SCREENMONITOR command Support 0
Dan Glynhampton Documentation v15 help: ECHOXERR Help Page Title is Wrong Support 0
Dan Glynhampton Documentation Bad links in v15 help Support 0
Dan Glynhampton Documentation Bad Link/Missing Page in v15 help Support 0
vefatica V15's automatic error emails to JPSoft! Support 3
C v15 not on ftp site? Support 8
Peter Bratton Observations on v15 install Support 4
Jay Sage How to? SENDMAIL with G-Suite Mail Account Support 6
vefatica SENDMAIL via smtp.gmail.com? Support 3
C How to? inline IMG with sendmail? Support 7
R TCC-RT sendmail Support 8
R Fixed Sendmail parameter /USER= does not work Support 4
C sendmail in v20.00.25 x64 Support 7
Mordachai How to pass URL to sendmail? Support 10
J Sendmail, SSL and MS Servers Support 11
C SendMail and yahoo.com Support 1
C Sendmail w/GMail - problem Support 6
C Google Sendmail ? Support 15

Similar threads