Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: iPhone z-push 2.3.1

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    4

    iPhone z-push 2.3.1

    Hi,

    I upgraded to z-push 2.3.1 today. It's running fine so far but there is one issue I couldn't solve so far.
    Once the device is connected to the new version the z-push server overrides the clients "Account => E-Mail" setting. The E-Mail setting is always set to the username.
    Since user accounts "aubergine" and sender address "[email protected]" are different, this behaviour forces that a wrong sender address is set while sending an email.

    Can I stop z-push from setting the value for the client?

    Thanks and Regards

  2. #2
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    I guess you are talking about sending email? When sending from the mobile the email address gets replaced?

    Which backend are you using? With Kopano/Zarafa the primary email set in LDAP (or db plugin) is always used as sender address, independently what you set on the phone. This has always been like this (since version 1.0).
    If you use another backend, like IMAP, check your configuration because the sender address can be configured there.

    Cheers,
    Sebastian

  3. #3
    Junior Member
    Join Date
    Apr 2014
    Posts
    4
    I'm using the IMAP backend with no default sender address set, because there are diffferent users. The problem mainly is that Z-Push 2.3 forces the iPhone to use the login name as E-Mail address setting for this iPhone mail account. It seems that you can't specific it locally anymore. If Z-Push wouldn't force the email address setting I'm fine again.

  4. #4
    Junior Member
    Join Date
    Oct 2016
    Posts
    4
    I had a similar issue but with the Combined backend. It had to do with the GetUserDetails function which was not returning the proper value. For the IMAP backend, the function looks good *provided* you specify a domain (so probably set the optional domain field on your iPhone). I did something similar for the Combined backend (added a domain field) and it worked fine. You may have to remove and re-add the account or wait for it to fully sync again for the changes to take effect though.

    Hope this helps.

  5. #5
    Junior Member
    Join Date
    Feb 2017
    Posts
    4
    I'm facing the same issue when using the IMAP backend (Dovecot IMAPd) since upgrading to 2.3.x. In 2.2.x this worked fine. But now, with 2.3.x the iOS device does set the account logon name as e-mail address in account settings, instead of the previously entered e-mail address. When sending mails, the "<logon-name>" is then expanded to "<logon-name>@<server-name>" by the sending MTA. Setting a domain name on the iOS account settings does not have any effect.

    Any further ideas? Thanks.

  6. #6
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi khambrecht,

    could you post the initial WBXML log when setting up the account? It should contain Settings and Provisioning commands.

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  7. #7
    Junior Member
    Join Date
    Feb 2017
    Posts
    4
    Hi Manfred,

    did send a PM to not expose too much sensitive data ;-)

    Thanks,
    Kai.

    ---------- Post added ----------

    looks like this one is causing the problem:

    04/03/2017 16:34:45 [17865] [DEBUG] [khambrecht] WBXMLEncoder->startWBXML() type: vnd.ms-sync.wbxml
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:Settings>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:Status>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O 1
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:Status>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:UserInformation>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:Status>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O 1
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:Status>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:Get>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:EmailAddresses>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:SmtpAddress>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O khambrecht
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:SmtpAddress>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:EmailAddresses>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:Get>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:UserInformation>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <SettingseviceInformation>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O <Settings:Status>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O 1
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:Status>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </SettingseviceInformation>
    04/03/2017 16:34:45 [17865] [WBXML] [khambrecht] O </Settings:Settings>
    04/03/2017 16:34:45 [17865] [DEBUG] [khambrecht] WBXMLEncoder->endTag() WBXML output completed


    Settings:SmtpAddress is set to "khambrecht" however, this is the account username for accessing the mail account, but it's not the email address I did set in the mail account settings on the iPhone.

  8. #8
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi khambrecht,

    that's probably why the iphone sets the email address to the username.

    Could you replace the function settingsUserInformation in imap.php (around line 2600) with the one I posted below? Make sure that you set the domain value in the account's settings on the iPhone.

    If it will fix your issue, I'll add the code to the upstream, so that it's available in the next Z-Push version.
    I don't have a setup to test it, so be aware that it might not work.

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  9. #9
    Junior Member
    Join Date
    Feb 2017
    Posts
    4
    Hi Manfred,

    thanks for your reply. I did replace settingsUserInformation with the given code, but unfortunately this does not solve the issue - at least in my case. This would work for the OP, but for me, just appending the domain name to the username will not result in the proper email address. Although my username is "khambrecht", my email address is not "[email protected]" but "[email protected]" instead.

    So to really solve this, z-push should either not force the iPhone to use the supplied (and wrong) email address from server but the iPhone should just use the manually entered one. Or we should have a simple way for mapping usernames to valid email addresses on server side for getting the proper values for provisioning (as a first guess, the LDAP and SQL options for IMAP_DEFAULTFROM in imap backend settings will not work here??)

    Thanks,
    Kai.

  10. #10
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi Kai,

    the problem is that the manually entered email isn't available anywhere and Z-Push doesn't know about it. Z-Push can only try to guess a possible email address for the settings based on the username and domain. In a setup like yours it of course won't work.

    I guess if you have properly configured LDAP or SQL search, it will work as it will get the "From" header from LDAP or SQL. You have to be aware that it will query LDAP or SQL on every SendMail request.

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

Page 1 of 2 12 LastLast

Similar Threads

  1. z-push and iPhone IOS 8.X
    By basty in forum Z-Push when using Kopano/Zarafa
    Replies: 1
    Last Post: 08-10-2014, 01:53 AM
  2. Z-Push 2.0.7 with iPhone 5 iOS 6.1.2
    By durox in forum Z-Push when using Kopano/Zarafa
    Replies: 1
    Last Post: 26-03-2013, 07:16 AM
  3. iPhone push not working
    By Scns in forum Z-Push when using Kopano/Zarafa
    Replies: 4
    Last Post: 22-01-2013, 12:57 PM
  4. IPhone - z-Push
    By mschwadorf in forum Mobile devices Archives
    Replies: 1
    Last Post: 01-12-2010, 08:51 AM
  5. Z-Push 1.2.2RC2 with iPhone OS 3.0
    By basty in forum Mobile devices Archives
    Replies: 7
    Last Post: 25-06-2009, 08:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •