Bug 338237 - Feature Request: Account Wizard Detect google apps by DNS query
Summary: Feature Request: Account Wizard Detect google apps by DNS query
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: 4.13.2
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-13 13:45 UTC by Pete
Modified: 2014-08-13 13:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pete 2014-08-13 13:45:47 UTC
Hi, 

I was trying to setup kmail for my google apps account on my own domain (you can use gmail with your own domain name) but the server details could not be retrieved. Technically the account details and servers are the same as for gmail.com, just the username is different (user@yourdomain.com instead of user@gmail.com). 

I worked around by entering details for a real gmail account and then change the user to my google apps domain username as I was too lazy to get all the config details from googles help pages. 

However it is easily detectable if a domain is using google apps by querying the mx dns records which are the same for all google apps accounts and look like this: 

pete@lokalhorst:~$ nslookup -query=mx kthxbye.us
Server:         127.0.1.1
Address:        127.0.1.1#53

Non-authoritative answer:
kthxbye.us      mail exchanger = 20 alt1.aspmx.l.google.com.
kthxbye.us      mail exchanger = 10 aspmx.l.google.com.
kthxbye.us      mail exchanger = 30 aspmx4.googlemail.com.
kthxbye.us      mail exchanger = 20 alt2.aspmx.l.google.com.
kthxbye.us      mail exchanger = 30 aspmx5.googlemail.com.
kthxbye.us      mail exchanger = 30 aspmx3.googlemail.com.
kthxbye.us      mail exchanger = 30 aspmx2.googlemail.com.

Authoritative answers can be found from:
aspmx.l.google.com      internet address = 74.125.136.27
alt2.aspmx.l.google.com internet address = 173.194.64.26
aspmx3.googlemail.com   internet address = 173.194.64.27
aspmx2.googlemail.com   internet address = 74.125.25.26

With these details the standard config for gmail could be pre-selected for the account config in the wizard. 

This is not really a big deal but it would be nice to see the config magically appearing after entering a google apps mail address. 

Keep up the great work. By the way, I couldn't select 4.13.3 as version number which is shipped with Kubuntu 14.04. 

Best regards, Pete