[Kde-pim] KMail and SMTP feature detection

Ingo Klöcker kloecker at kde.org
Thu May 27 22:40:31 BST 2010


On Thursday 27 May 2010, SegFault wrote:
> Hi,
> 
> I have setup a postfix+dovecot (vmail conf). All Is wroking great
> once kmail is configured, but during configuration I saw that SMTP
> security/crypto detection say all avaible. And I'm sure that my smtp
> reject any use witout encryption. And In the advanced pane, all
> identification are avaible, it's not the case
> 
> I first tought there the problem come from my postfix configuration,
> so I tried with gmail smtp, and worse, it said only ssh avaible, as
> it is TLS.
> 
> The feature detection of SMTP server seems very strange to me, and I
> would like to know if there is a documentation anywhere on how it
> works, what Kmail expect from SMTP to properly disable unavaible
> option ?

AFAIU the code we simply try to connect to the usual SMTP and SMTPS 
ports and then issue an EHLO (see 
ServerTestPrivate::sendInitialCapabilityQuery). The SMTP server is 
supposed to reply with a list of its capabilities/authentication 
methods. Afterwards, we try to start TLS and then again issue an EHLO to 
query the capabilities/authentication methods for TLS.

Unfortunately, the code is not easy to read because it mixes the checks 
for POP, IMAP and SMTP.

http://websvn.kde.org/branches/KDE/4.4/kdepimlibs/mailtransport/servertest.cpp?revision=HEAD&view=markup


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100527/0e49d68e/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list