There are many bugs which are hard to track down in kmail, sometimes without any useful logs for troubleshooting. Sometimes the bugs are related to supportive applications like Akonadi, ect.
You cant pass google 'Authentication' for the majority of the kdepim applications, The only support which works is via the kde 'online accounts' under 'system settings'. This only supports youtube and google hangouts integration.