Bug 289207 - KMail sometimes fails to send messages with cyrus-sasl-2.1.25
Summary: KMail sometimes fails to send messages with cyrus-sasl-2.1.25
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-17 15:19 UTC by Jakub Caban
Modified: 2018-06-23 16:38 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Caban 2011-12-17 15:19:58 UTC
Version:           4.8
OS:                Linux

Sometimes I got the following message when trying to send message via IMAP via KMail2:

E-mail sending failed: Failed to transport message. An error occurred during authentication: SASL(0): successful result:

and am therefore unable to send any message.

Since it occurs once it keeps occuring until I reboot my machine.

I have fill KDE SC 4.8beta2

Reproducible: Sometimes

Steps to Reproduce:
Send e-mail

Actual Results:  

E-mail sending failed: Failed to transport message. An error occurred during authentication: SASL(0): successful result:

Expected Results:  
E-mail sent

I'll gladly provide any possible additional information if directed where to look for.
Comment 1 Carl Symons 2011-12-24 17:13:09 UTC
Please post this in forum.kde.org in the Office & Productivity section
http://forum.kde.org/viewforum.php?f=20

Have you posted in forums.gentoo.org? A potential problem there is that some people would rather snark and complain than try to fix things, but maybe that's the Gentoo culture.

In these forums, you will find people who can help figure out what additional information might be needed...and give you suggestions about how to fix.
Comment 2 Jakub Caban 2011-12-24 21:30:37 UTC
Thanks for the suggestion.

I've created topics:

http://forum.kde.org/viewtopic.php?f=20&t=98327&p=209764
http://forums.gentoo.org/viewtopic-p-6910074.html

I hope it will help me find out the reason behind this strange behaviour.

Will update here if any solution or more concrete information will be found.
Comment 3 Stephan Menzel 2011-12-25 21:30:59 UTC
Same problem here with 4.7.4 and GMX imap but always reproducable. I think it didn't occur with 4.7.3 but since this is gentoo it might be some underlying package change as well. Sadly, this bug renders my kmail useless at the moment.

Merry Xmas everyone!

Stephan
Comment 4 Stephan Menzel 2011-12-25 21:32:57 UTC
Ooops, sorry. I misread. In fact, it happens here when accessing the IMAP for reading mail. The bug is about sending. But the error message is the same.
Comment 5 Stephan Menzel 2012-01-01 19:53:46 UTC
A little update here:
This appears to be fixed with what gentoo calls 4.7.4-r1. Just came with upstream and I can't reproduce the issue anymore. Don't know how / if this affects the original poster.

Thanks,
Stephan
Comment 6 Zhang Hongjiu 2012-01-05 14:51:31 UTC
I have this problem, too. I am also using Gentoo, and both kde-base/kmail-4.7.4 and kde-base/kmail-4.7.4-r1 have this problem.

I have successfully sent a mail this morning without any content in the mail, but then failed to sent any new mails, tested with no title or no content.

Error message is exactly as below:
"E-mail sending failed: Failed to transport message. An error occurred during
authentication: SASL(0): successful result:"

====AkonadiConsole report====
* 87 FETCH (UID 87 REV 0 REMOTEID "" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 712 DATETIME "05-Jan-2012 14:20:26 +0000" FLAGS ($QUEUED) ATR:AddressAttribute {98} 
65 OK UID FETCH completed 
66 UID FETCH 87 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
* 87 FETCH (UID 87 REV 0 REMOTEID "1325773226.R671.noctuorare" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 712 DATETIME "05-Jan-2012 14:20:26 +0000" FLAGS ($QUEUED) ATR:AddressAttribute {98} 
66 OK UID FETCH completed 
67 UID FETCH 87 ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
* 87 FETCH (UID 87 REV 0 REMOTEID "1325773226.R671.noctuorare" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 712 DATETIME "05-Jan-2012 14:20:26 +0000" FLAGS ($QUEUED) ATR:AddressAttribute {98} 
67 OK UID FETCH completed 
68 STATUS 4 (MESSAGES UNSEEN SIZE) 
* STATUS "Local Folders/outbox" (MESSAGES 2 UNSEEN 2 SIZE 1424) 
68 OK STATUS completed 
69 LSUB 4 0 () () 
* 4 3 (NAME "outbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "outbox" REMOTEREVISION "1325771528000" RESOURCE "akonadi_maildir_resource_16" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) SpecialCollectionAttribute "outbox" ENTITYDISPLAY "(\"outbox\" \"mail-folder-outbox\" \"\" ())") 
69 OK List completed 
70 BEGIN 
70 OK Begin completed 
71 UID FETCH 87 EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
* 87 FETCH (UID 87 REV 0 REMOTEID "1325773226.R671.noctuorare" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 712 DATETIME "05-Jan-2012 14:20:26 +0000" FLAGS ($QUEUED)) 
71 OK UID FETCH completed 
72 UID STORE 87 REV 0 (REMOTEID "1325773226.R671.noctuorare" +FLAGS ($ERROR) ATR:ErrorAttribute "Failed to transport message. An error occurred during authentication: SASL(0): successful result: " ATR:DispatchModeAttribute "never") 
* 87 FETCH (REV 1) 
72 OK DATETIME "05-Jan-2012 14:20:31 +0000" STORE completed 
74 COMMIT 
74 OK Commit completed 
75 UID FETCH 87 ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
* 87 FETCH (UID 87 REV 1 REMOTEID "1325773226.R671.noctuorare" MIMETYPE "message/rfc822" COLLECTIONID 4 SIZE 712 DATETIME "05-Jan-2012 14:20:31 +0000" FLAGS ($QUEUED $ERROR) ATR:AddressAttribute {98} 
75 OK UID FETCH completed 
76 STATUS 4 (MESSAGES UNSEEN SIZE) 
* STATUS "Local Folders/outbox" (MESSAGES 2 UNSEEN 2 SIZE 1424) 
76 OK STATUS completed 
77 LSUB 4 0 () () 
* 4 3 (NAME "outbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "outbox" REMOTEREVISION "1325771528000" RESOURCE "akonadi_maildir_resource_16" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) SpecialCollectionAttribute "outbox" ENTITYDISPLAY "(\"outbox\" \"mail-folder-outbox\" \"\" ())") 
77 OK List completed 

====emerge --info====
Portage 2.1.10.44 (hardened/linux/amd64/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.1.6-hardened x86_64)
=================================================================
System uname: Linux-3.1.6-hardened-x86_64-AMD_Athlon-tm-_II_Neo_K345_Dual-Core_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 05 Jan 2012 04:00:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo science sunrise gentoo-zh gentoo-haskell oss-overlay local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-talkplugin skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/var/pkg/dist"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y --quiet-build y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en zh_TW zh af ak am ar as as_IN ast az be be_BY bg bn bn_BD bn_IN bo br brx bs ca ca_XV ca@valencia crh cs csb cy da de de_FR dgo dz ee el en_CA en_US en_ZA eo es es_AR es_CL es_CR es_ES es_LA es_MX et et_EE eu fa fi fil fo fr fr_CA fy fy_NL ga ga_IE gd gl gu gu_IN ha he hi hi_IN hne hr hsb hu hy hy_AM ia id is it ja ka kk km kn kn_IN ko ko_KR kok ks ku ky la lb lg lo lt lv mai me mi mk ml ml_IN mn mni mr mr_IN ms mt my nb nb_NO nds ne nl nn nn_NO no nr ns nso oc om or or_IN pa pa_IN pap pl ps pt pt_BR pt_PT rm ro ru rw sa_IN sat sd se sh sh_YU son si sk sl sq sr sr@ijekavian sr@ijekavianlatin sr@latin sr@Latn sr_CS ss st sv sv_SE sw sw_TZ ta ta_IN ta_LK te te_IN tg th ti ti_ER tk tl tn tr ts tt ug uk ur_IN ur_PK uz uz@cyrillic ve ven vi wa xh zh_CN zh_HK zu"
MAKEOPTS="-j2"
PKGDIR="/var/pkg/bin"
PORTAGE_COMPRESS="/usr/bin/xz"
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/pkg/portage"
PORTDIR_OVERLAY="/var/pkg/science /var/pkg/sunrise /var/pkg/gentoo-zh /var/pkg/haskell /var/pkg/oss-overlay /var/pkg/usr"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gdbm gdu gif gpm gstreamer hardened iconv introspection ipv6 jpeg jpeg2k justify kde lame lcms ldap libnotify mad mms mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp oss pam pango pax_kernel pcre pdf png policykit ppds pppd qt3support qt4 readline samba sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification svg sysfs taglib tcpd theora threads tiff truetype udev unicode upnp urandom usb v4l vaapi vim-syntax vorbis wifi x264 xcb xcomposite xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="crypt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en zh_TW zh af ak am ar as as_IN ast az be be_BY bg bn bn_BD bn_IN bo br brx bs ca ca_XV ca@valencia crh cs csb cy da de de_FR dgo dz ee el en_CA en_US en_ZA eo es es_AR es_CL es_CR es_ES es_LA es_MX et et_EE eu fa fi fil fo fr fr_CA fy fy_NL ga ga_IE gd gl gu gu_IN ha he hi hi_IN hne hr hsb hu hy hy_AM ia id is it ja ka kk km kn kn_IN ko ko_KR kok ks ku ky la lb lg lo lt lv mai me mi mk ml ml_IN mn mni mr mr_IN ms mt my nb nb_NO nds ne nl nn nn_NO no nr ns nso oc om or or_IN pa pa_IN pap pl ps pt pt_BR pt_PT rm ro ru rw sa_IN sat sd se sh sh_YU son si sk sl sq sr sr@ijekavian sr@ijekavianlatin sr@latin sr@Latn sr_CS ss st sv sv_SE sw sw_TZ ta ta_IN ta_LK te te_IN tg th ti ti_ER tk tl tn tr ts tt ug uk ur_IN ur_PK uz uz@cyrillic ve ven vi wa xh zh_CN zh_HK zu" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Zhang Hongjiu 2012-01-05 16:57:30 UTC
I have not experienced this bug in the first 3 minutes after log-in, and later I would met this problem. akonadictl restart does not clear the problem. Re-logging in helps, but I have to do that every time I want to send emails.

I found things like "cannot insert xxxx in .local/share/.local-mail.directory/outbox/xxxxxx" in my .xsession-errors every time when I met this problem. But I forget to keep that, and I can no longer find these messages in my .xsession-errors. (Not sure why.)
Comment 8 Zhang Hongjiu 2012-01-07 19:59:27 UTC
I just downgrade my cyrus-sasl to 2.1.23-r6 and have not met the bug at the moment. A similar report is here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631127
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636534
Comment 9 Jakub Caban 2012-01-09 20:51:32 UTC
That is exactly the case here too. After downgrade everything runs smoothly as ever.
Comment 10 Christophe Marin 2012-01-09 22:31:49 UTC
in KMail settings / Accounts / Sending / <your default sending account> / Advanced

is "Send custom hostname to server" checked ?

Second thing to check: is your hostname valid ? It can contain only letters, digits and hyphen.
Comment 11 Jakub Caban 2012-01-09 22:33:42 UTC
Not checked, nothing there.
Comment 12 Christophe Marin 2012-01-09 22:34:41 UTC
(In reply to comment #10)
> 
> Second thing to check: is your hostname valid ? It can contain only letters,
> digits and hyphen.

I'm tired today: letters, numbers and hyphen (and cannot start with one)
Comment 13 Christophe Marin 2012-01-09 22:50:58 UTC
(In reply to comment #11)
> Not checked, nothing there.

what about your machine hostname ?
Comment 14 Jakub Caban 2012-01-09 22:53:33 UTC
hostname: vindor
domain: unknown (I mean - not set)
Comment 15 Christophe Marin 2012-01-09 23:08:11 UTC
I can reproduce with 2.1.25 if I change my hostname to something invalid (eg by running `hostname test_1` then starting kmail to compose a message).

That's not a KDE issue however
Comment 16 Christophe Marin 2012-01-09 23:18:46 UTC
Another way to check btw:
open one of the stuck messages in outbox, press V, look at the message_id line

Message-ID: <23297077.OxsPJrQ5vl@test_1> <-- this hostname is invalid
Comment 17 Daniel Weisser 2012-01-11 09:10:14 UTC
The same problem exists on Ubuntu 11.10.
The installed SASL library is 2.1.24~rc1.dfsg1+cvs2011-05-23-4ubuntu2
Kmail is 4:4.7.3-0ubuntu0.1
Comment 18 Christophe Marin 2012-01-11 09:18:51 UTC
(In reply to comment #17)
> The same problem exists on Ubuntu 11.10.
> The installed SASL library is 2.1.24~rc1.dfsg1+cvs2011-05-23-4ubuntu2
> Kmail is 4:4.7.3-0ubuntu0.1


read the comment #16 please
Comment 19 Zhang Hongjiu 2012-01-11 13:15:00 UTC
(In reply to comment #16)
> Another way to check btw:
> open one of the stuck messages in outbox, press V, look at the message_id line
> 
> Message-ID: <23297077.OxsPJrQ5vl@test_1> <-- this hostname is invalid

From: =?utf-8?B?56ug5a6P5Lmd?= <noctuorare@gmail.com>
To: plumerlis@gmail.com
Subject: =?UTF-8?B?5oiR5bCx5LiN5L+h5LuW5LiN5Ye66Yyv44CC?=
Date: Wed, 11 Jan 2012 21:14:03 +0800
Message-ID: <13145434.Q7iFLsd4rD@noctuorare>
User-Agent: KMail/4.7.4 (Linux/3.1.7-hardened; KDE/4.7.4; x86_64; ; )
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"

I think noctuorare is a valid one.
Comment 20 Jakub Caban 2012-01-12 22:17:20 UTC
Just got it:

Message-ID: <1408806.vIBKFaX05Y@vindor>
Comment 21 Zhang Hongjiu 2012-01-28 12:34:22 UTC
I have updated to KDE 4.8.0 and cyrus-sasl-2.1.25 and this does not happen any more.
Comment 22 Jakub Caban 2012-01-28 14:19:36 UTC
For me in 4.8.0 problem still exists.
Comment 23 Stephan Menzel 2012-01-28 22:35:45 UTC
I have just upgraded to 4.8.0 and cyrus-sasl 2.1.25 and the problem actually came back, after it went away when I commented on 1/1/2012. So the bug is not resolved. Furthermore, the upgrade (gentoo ~x86) involved only kde itself and nothing else. Especially not cyrus-sals which remained untouched < 2.2. So I suppose this means the bug is indeed in kmail and not in cyrus. Once again, kmail is dysfunctional because of this. Should I try to downgrade to 4.7.x? This is quite a big deal on gentoo, so I would only do this if there's reasonable hope.

Cheers,
Stephan
Comment 24 Jakub Caban 2012-01-28 23:01:44 UTC
For the easiest workaround, just downgrade cyrus-sasl.
Comment 25 Stephan Menzel 2012-01-29 14:08:13 UTC
Thanks, downgrading cyrus-sasl to 2.1.23 solved the problem. Until now I was under the impression that >= 2.2 causes this but apparently it's 2.1.25 already.
Comment 26 Allen Winter 2012-01-31 22:30:35 UTC
seems like we should close this one as UPSTREAM then.  Since there isn't anything we in KDEPIM can do to fix it.

Right Christophe?
Comment 27 Christophe Marin 2012-01-31 22:43:59 UTC
Upstream issue. reported there: https://bugzilla.cyrusimap.org/show_bug.cgi?id=3625

and discussed there: 

http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/2012-January/002416.html
Comment 28 Christophe Marin 2012-01-31 22:47:32 UTC
+ there https://bugzilla.cyrusimap.org/show_bug.cgi?id=3590