Koozali.org: home of the SME Server

Email authentication format

Offline bobbyaus

  • 3
  • +0/-0
Email authentication format
« on: May 03, 2016, 12:51:20 AM »
Hi,

We have a production SME version 9 environment

We are looking to migrating email off the SME server to google

Google requires us to change the email username authentication format from <username> to <username>@<domain>.<tld>

I was wondering if anyone on this forum has had to do this before and could provide any documentation on how we can achieve this?

Thanks


-Bobby

guest22

Re: Email authentication format
« Reply #1 on: May 03, 2016, 09:17:55 AM »
Hi,

We have a production SME version 9 environment

We are looking to migrating email off the SME server to google


Hi and welcome. Why would you do that?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email authentication format
« Reply #2 on: May 03, 2016, 04:11:50 PM »
just curious.. if you're moving to google, in which way is SME involved? and, regarding login, explain us what are you thinking about, thank you

Offline bobbyaus

  • 3
  • +0/-0
Re: Email authentication format
« Reply #3 on: May 05, 2016, 12:05:48 AM »
RequestedDeletion>
thanks :)
unfortunately what the boss wants

Stefano>
We are using the IMAP data migration service, unfortunately google will reject simple <user> authentication now, it requires <user>@<domain> authentication now

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: Email authentication format
« Reply #4 on: May 05, 2016, 01:50:24 AM »
Google... well good luck with that ! No accounting for taste I guess !

Still perplexed at what you actually want ?

What has Googles requirements got to do with SME ?

You haven't really explained where you are stuck ?

Changing authentication format where ? If you mean on the client then that's a client issue, not SME.

Without being a bit clearer no one can really help you I'm aftaid.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline bobbyaus

  • 3
  • +0/-0
Re: Email authentication format
« Reply #5 on: May 06, 2016, 12:21:46 AM »
Hi ReetP,

What we are trying to do is change the IMAP username authentication format on the SME server
Currently, when users connect to the SME server's IMAP port, they can only authenticate with <username>, we need to change to the username authentication format to <username>@<domain> when users are authenticating with IMAP

From what I have read, I need to modify 10-auth.conf and add auth_username_format = %n-AT-%d

I was thinking of creating the following to try achieve this

/etc/e-smith/templates-custom/etc/dovecot/conf.d/10-auth.conf/auth_username_format

{
    $OUT .= "    auth_username_format     \%n\-AT\-\%d"
}

Do you think this will work?

Thanks

Kind Regards,
Bobby

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email authentication format
« Reply #6 on: May 06, 2016, 08:56:49 AM »
if you're moving to google I don't understand in which way SME is still involved..

anyway, since this looks like a X Y problem case:
- please tell us the whole thing, with all the details
- please tell us about your problem and not your solution

thank you

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: Email authentication format
« Reply #7 on: May 06, 2016, 09:40:36 AM »
Indeed. Modifying logins to your SME server doesn't make any sense at all.

As Stefano said, please describe EXACTLY what you are doing as I think you are currently trying to fix an issue that does not exist... and will likely make things worse.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Email authentication format
« Reply #8 on: May 06, 2016, 12:17:33 PM »
Bobbyaus said he's using Google's IMAP migration service (see https://support.google.com/a/answer/6003169?hl=en), presumably to move mail from the SME server to Google.  Obviously this would require giving the service the credentials of users on the SME machine.  Apparently this service requires logins in the form of complete email addresses, rather than simple usernames.  He wants to configure his SME server to accept email addresses as IMAP logins, rather than simple usernames.  Was that so hard?
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email authentication format
« Reply #9 on: May 06, 2016, 12:21:28 PM »
I was not aware about that tool..

to move email from/to SME via imap I always suggest imapsync, which gave me the full control on what's going on..

I strongly suggest to OP to use imapsync without touching SME as I guess that the editing he's doing will not work (while imapsync will)

anyway, thanks Dan for your clarification :-)

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: Email authentication format
« Reply #10 on: May 06, 2016, 12:41:04 PM »
Obviously.....

No, not obvious.....

Unfortunately I have no knowledge of that service and the poster didn't really make himself clear on that (he made the assumption we knew what he was talking about) or give us a link to read.....

I have absolutely no idea of the big Gs services, how they function or what is required, hence asking exactly what he was doing..... a couple of links may have helped !
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Email authentication format
« Reply #11 on: May 06, 2016, 12:46:49 PM »
With or without any knowledge of Google's services, I think it's obvious that any service or tool that migrates IMAP data from one place to another will need login credentials for both ends, and that's all my "obviously" was attached to.  I have no knowledge of that service either, other than what about 15 seconds of web searching found.
......

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email authentication format
« Reply #12 on: May 06, 2016, 05:27:13 PM »
With or without any knowledge of Google's services, I think it's obvious that any service or tool that migrates IMAP data from one place to another will need login credentials for both ends, ...

And "obviously" that tool would be deficient if it couldn't use the existing authentication format of the source location.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email authentication format
« Reply #13 on: May 06, 2016, 05:31:12 PM »
I suspect that you just need a CSV file which doesn't have '@old.domain.name' in the Legacy Email ID field.

https://support.google.com/a/answer/6244351

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Email authentication format
« Reply #14 on: May 06, 2016, 05:36:10 PM »
Yes, I'd agree with that as well. If it's actually the case that Google's tool only accepts logins in the form of full email addresses, it seems it's rather badly broken.
......