Summary: | Does not recognise/use the port number set in the smtp account settings dialog | ||
---|---|---|---|
Product: | [Applications] kdepimlibs | Reporter: | mps <moabi2000> |
Component: | mailtransport | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kdepim-bugs |
Priority: | NOR | ||
Version: | 4.1 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | Fixed since at least 4.3 I think. | |
Sentry Crash Report: | |||
Attachments: | Wireshark capture file (packet data) showing that kmail does not use the port number set in the configuration dialog. |
Description
mps
2008-05-16 17:58:30 UTC
Note that this is a problem with the smtp server on localhost, not with the uuplus smtp programme. If I run uuplus smtp on another machine (physical or virtual), kmail connects just fine. I'm no C++ expert, but from a bit of grepping in src/kdepim/kmail , it looks like the POP seetings dialog has code like this: mServerTest->setPort( encryptionType, mPop.ui.portEdit->value() ) where it is setting the port based on the value in the UI. On the other hand, the smtp equivalent (eg in AccountWizard::smtpCapabilities) just has : mTransport->setPort( useSSL ? 465 : 25 ); ie the port number is hardcoded to 465 or 25 depending on whether SSL is requested or not and it doesn't refer to the port number selected manually in the text box in the UI at all. Am I on the right track here? Looks like there is similar stuff for Imap (eg: account->setPort( useSSL ? 993 : 143 );) so anyone trying to use a non-standard port is out of luck. cheers M. To try and work out what is going on here, I fired up wireshark. With the host set to 'localhost' and the portnumber set to 1025 in the kmail accounts - smtp dialog, I click on 'check what the server supports'. The attached wireshark packet file shows the traffic generated. I'm not an expert but it looks like kmail is not using the port number that is set in the options dialog, but simply defaulting to the standard port 25. If I run the uuplus server on standard port 25 (requires running as root, which I don't want to do as a matter of course) then kmail connects without a problem. So it is clearly kmail not using the correct port number that creates the problem. I did this test with revision 830974. Thanks M. Created attachment 26110 [details]
Wireshark capture file (packet data) showing that kmail does not use the port number set in the configuration dialog.
|