Archived Forum Post

Index of archived forum posts

Question:

Problem with SMPT, StartTLS over Port 587 (MS VC++6.0 Chilkat v9.5.0.48)

May 04 '15 at 02:22

My program worked fine for an half year, but since last week the automated mail sending fails (i changed nothing). My customer uses web.de (a german email provider) and i think they (web.de) changed something. web.de uses for smtp, StartTLS over port 587.

Here is the lastErrorText:

SendEmail:

DllDate: Mar  6 2015
ChilkatVersion: 9.5.0.48
UnlockPrefix: XXXXXXXXXXX
Username: WIN7-DEVELOPER:heribert
Architecture: Little Endian; 32-bit
Language: Visual C++ 6.0
VerboseLogging: 0
sendEmailInner:
    getAllRecipientAddressesA:
        (leaveContext)
    renderToMime:
        createEmailForSending:
            xSigningAlg: sha1
            Auto-generating Message-ID
            clone2:
                assembleMimeBody:
                    parseEmailAddressList:
                        (leaveContext)
                    emitAsMimeField:
                        (leaveContext)
                    parseEmailAddressList:
                        (leaveContext)
                    emitAsMimeField:
                        (leaveContext)
                    parseEmailAddressList:
                        (leaveContext)
                    emitAsMimeField:
                        (leaveContext)
                    getEncodedBody:
                        (leaveContext)
                    (leaveContext)
                createFromMimeText:
                    loadMimeComplete:
                        loadMimeHeaderText:
                            (leaveContext)
                        parseMimeBody:
                            setMimeBodyByEncoding:
                                (leaveContext)
                            (leaveContext)
                        (leaveContext)
                    loadFromMimeTextProcessing:
                        (leaveContext)
                    createFromMimeObject:
                        parseEmailAddressList:
                            (leaveContext)
                        parseEmailAddressList:
                            (leaveContext)
                        parseEmailAddressList:
                            (leaveContext)
                        emitAsMimeField:
                            (leaveContext)
                        parseEmailAddressList:
                            (leaveContext)
                        emitAsMimeField:
                            (leaveContext)
                        parseEmailAddressList:
                            (leaveContext)
                        emitAsMimeField:
                            (leaveContext)
                        loadMimeHeaderText:
                            (leaveContext)
                        (leaveContext)
                    (leaveContext)
                (leaveContext)
            (leaveContext)
        assembleMimeBody:
            parseEmailAddressList:
                (leaveContext)
            emitAsMimeField:
                (leaveContext)
            parseEmailAddressList:
                (leaveContext)
            emitAsMimeField:
                (leaveContext)
            getEncodedBody:
                (leaveContext)
            (leaveContext)
        renderToMime: Elapsed time: 47 millisec
        (leaveContext)
    sendMimeInner:
        ensureSmtpSession:
            ensureSmtpConnection:
                SmtpHost: smtp.web.de
                SmtpPort: 587
                SmtpUsername: xxxx@web.de
                SmtpSsl: 0
                StartTLS: 1
                smtpConnect:
                    smtpHostname: smtp.web.de
                    smtpPort: 587
                    connectionIsReady:
                        Need new SMTP connection
                        (leaveContext)
                    smtpSocketConnect:
                        socket2Connect:
                            connect2:
                                connectSocket:
                                    connect_ipv6_or_ipv4:
                                        resolveHostname6:
                                            getAddressInfo:
                                                (leaveContext)
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                (leaveContext)
                            (leaveContext)
                        socketOptions:
                            SO_SNDBUF: 262144
                            SO_RCVBUF: 4194304
                            TCP_NODELAY: 1
                            (leaveContext)
                        (leaveContext)
                    smtpGreeting:
                        readSmtpResponse:
                            SmtpCmdResp: 220 web.de (mrweb103) Nemesis ESMTP Service ready
                            (leaveContext)
                        (leaveContext)
                    startTLS:
                        Will be using STARTTLS...
                        sendCmdToSmtp:
                            SmtpCmdSent: EHLO WIN7-DEVELOPER<CRLF>
                            (leaveContext)
                        readSmtpResponse:
                            SmtpCmdResp: 250-web.de Hello WIN7-DEVELOPER [79.208.92.99]
                            SmtpCmdResp: 250-SIZE 141557760
                            SmtpCmdResp: 250-AUTH LOGIN PLAIN
                            SmtpCmdResp: 250 STARTTLS
                            (leaveContext)
                        sendCmdToSmtp:
                            SmtpCmdSent: STARTTLS<CRLF>
                            (leaveContext)
                        readSmtpResponse:
                            SmtpCmdResp: 220 OK
                            (leaveContext)
                        terminateConnection:
                            (leaveContext)
                        clientHandshake:
                            cacheClientCerts:
                                (leaveContext)
                            clientHandshake2:
                                sendClientHello:
                                    TlsClientHello_buildMessage:
                                        (leaveContext)
                                    sendHandshakeMessages:
                                        (leaveContext)
                                    (leaveContext)
                                readHandshakeMessages:
                                    processHandshakeRecord:
                                        processHandshakeMessage:
                                            processServerHello:
                                                (leaveContext)
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                readHandshakeMessages:
                                    processHandshakeRecord:
                                        processHandshakeMessage:
                                            processIncomingCertificates:
                                                loadX509DerAlt:
                                                    der_to_xml:
                                                        (leaveContext)
                                                    (leaveContext)
                                                loadX509DerAlt:
                                                    der_to_xml:
                                                        (leaveContext)
                                                    (leaveContext)
                                                loadX509DerAlt:
                                                    der_to_xml:
                                                        (leaveContext)
                                                    (leaveContext)
                                                (leaveContext)
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                handleServerCert:
                                    readHandshakeMessages:
                                        processHandshakeRecord:
                                            processHandshakeMessage:
                                                (leaveContext)
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                buildClientKeyExchange:
                                    buildClientKeyExchangeRsa:
                                        getServerCertPublicKey:
                                            x509_getPublicKey:
                                                (leaveContext)
                                            (leaveContext)
                                        RsaPubKeyDerToKey:
                                            DecodeToAsn:
                                                (leaveContext)
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                sendClientKeyExchange:
                                    sendHandshakeMessages:
                                        (leaveContext)
                                    (leaveContext)
                                sendChangeCipherSpec:
                                    (leaveContext)
                                derive_keys:
                                    (leaveContext)
                                sendHandshakeMessages:
                                    (leaveContext)
                                readHandshakeMessages:
                                    (leaveContext)
                                readHandshakeMessages:
                                    processHandshakeRecord:
                                        processHandshakeMessage:
                                            processFinished:
                                                (leaveContext)
                                            (leaveContext)
                                        (leaveContext)
                                    (leaveContext)
                                saveSecureRenegInfo:
                                    (leaveContext)
                                (leaveContext)
                            (leaveContext)
                        checkServerCert:
                            (leaveContext)
                        checkServerCertRequirement:
                            (leaveContext)
                        TLS connection established.
                        (leaveContext)
                    ehloCommand:
                        sendCmdToSmtp:
                            SmtpCmdSent: EHLO WIN7-DEVELOPER<CRLF>
                            (leaveContext)
                        readSmtpResponse:
                            SmtpCmdResp: 250-web.de Hello WIN7-DEVELOPER [79.208.92.99]
                            SmtpCmdResp: 250-SIZE 141557760
                            SmtpCmdResp: 250 AUTH LOGIN PLAIN
                            (leaveContext)
                        (leaveContext)
                    (leaveContext)
                (leaveContext)
            ensureSmtpAuthenticated:
                smtpAuthenticate:
                    smtp_host: smtp.web.de
                    smtp_port: 587
                    smtp_user: xxxxx@web.de
                    smtpAuthenticate:
                        login_method: LOGIN
                        auth_login:
                            smtpSendGet2:
                                sendCmdToSmtp:
                                    SmtpCmdSent: AUTH LOGIN<CRLF>
                                    (leaveContext)
                                readSmtpResponse:
                                    SmtpCmdResp: 334 VXNlcm5hbWU6
                                    (leaveContext)
                                (leaveContext)
                            sendCmdToSmtp:
                                SmtpCmdSent: a2llc2RvcmZAd2ViLmRl<CRLF>
                                (leaveContext)
                            readSmtpResponse:
                                SmtpCmdResp: 334 UGFzc3dvcmQ6
                                (leaveContext)
                            sendCmdToSmtp:
                                SmtpCmdSent: {PasswordOrCredentials}
                                (leaveContext)
                            readSmtpResponse:
                                SmtpCmdResp: 535 Authentication credentials invalid
                                (leaveContext)
                            SMTP authentication failed after sending password.
                            Check your username/password or your SMTP server's auth settings
                            (leaveContext)
                        Failed to login using LOGIN method
                        (leaveContext)
                    ConnectionType: SSL/TLS
                    (leaveContext)
                (leaveContext)
            (leaveContext)
        (leaveContext)
    (leaveContext)
Failed.
(leaveContext)

Any suggestions? Thanks for any Help!


Accepted Answer

I solved it now. The error was on the web.de-mail account at web.de. They configured their email-server new, so you have to activate "IMAP- and POP3 for external access" manually at the web.de e-mail-site. After activating, everything works fine (all email-clients (e.g. Thunderbird) and chilkat-library also).

BTW. My software works with any other server correct and now with web.de too (again).


Answer

it seem on user/password.. or smtp server authenthication..

SMTP authentication failed after sending password. Check your username/password or your SMTP server's auth

check your account..


Answer

Hi, the problem is not the chilkat library, its the web.de server. I've tested three different email clients and they all cannot connect to the server. I got always the message "User/password is wrong".

But the user/password is correct. I checked this first (i checked more the once...). The failure is the same on every other account there (i' have tested three different accounts). They worked since months fine without any problem but suddenly not.

So this is no chilkat problem...

Thx for the help!!


Answer

when you say "i checked account" , by wich way.?? does you tested connection by other way with this account, verified with the deutch server??

one possibility is that the server encounted problem or misconfiguration..

great part of my works is to make changes or tailoring due to stupidity or incompetence from "admins".. did your code works with other server with same requirements ?

don't exclude the fact that an "admin" did stupidity... and erased your account, or other thing..


Answer

SOLVED

The problem was not at the chilkat-library or any other client configuration. At web.de they switched off the POP3 and IMAP for external access. Every web.de user have to active this "feature" now manually at the web-site of the web.de account. =)

So thx a lot for ur help!