Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    iphone (IOS) not able to send mails

    Z-Push when using other backends
    6
    41
    5622
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • maedball
      maedball last edited by

      Just in case someone has the same issue.

      I changed the imap settings to SSL and suddenly IOS was able to send mails.

      Now i just need to find out why z-push is disconnecting once outlook is connected:

      [WARN] [michael.klein] /usr/share/z-push/backend/imap/imap.php:127 imap_open(): Couldn't open stream {mailserver:993/imap/ssl} (2)
      [ERROR] [michael.klein] BackendIMAP->Logon(): can't connect as user 'michael.klein' on '{mailserver:993/imap/ssl}': Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate)
      [FATAL] [michael.klein] Exception: (AuthenticationRequiredException) - Access denied. Username or password incorrect
      [michael.klein] IP: 10.20.0.4 failed to authenticate user 'michael.klein'
      [WARN] [michael.klein] Unknown:0 Unknown: Can not authenticate to IMAP server: [CLOSED] IMAP connection broken (authenticate) (errflg=2) (8)
      
      1 Reply Last reply Reply Quote 0
      • AndreasB
        AndreasB @maedball last edited by

        Hello,

        does anyone have founf a solution for this behavior?
        I have the same problem a described in the initial post. The connection to my IMAP Backend with all Android Client are still working. All IOS device are not be able to send mails. In this account the did not have a mail adress, and are notifing the user with "Cannot Send Mail | Check the settings for the outgoing servers in settings -> Mail -> Accounts.
        I tried different task to solve the problem, in example:

        • All connection to the IMAP and SMTP backend are based on ssl/tls

        • Changed the provisioning to false

        • I deleted the account setting after every change and resets the device on the Z-Push frontend

        Kind regards Andreas

        maedball 1 Reply Last reply Reply Quote 0
        • maedball
          maedball @AndreasB last edited by

          @andreasb I was never able to get it working with the native IOS app. Instead i switched to the outlook app on IOS… It is not ideal but at least it works

          AndreasB 1 Reply Last reply Reply Quote 0
          • AndreasB
            AndreasB @maedball last edited by

            @maedball
            I found a solution.
            After a couple of days in investigation what is the root cause for the strange behavior, I tried to setup the native IOS Mail APP with my full mail address as login name and now I can send mails as expected.
            Maybe the missing AD is the problem in the Active Sync with communication in with a native IMAP backend.
            Can you check this in your setup?

            maedball 1 Reply Last reply Reply Quote 0
            • maedball
              maedball @AndreasB last edited by

              @andreasb Sounds promising, unfortunately will this lead to a complete rebuild of my setup. I need to change dovecot aswell as nextcloud to work with emails instead of userids ;). However i will try, just not right away ;-). If this is however the reason, by what can it be caused, any idea?

              1 Reply Last reply Reply Quote 0
              • JungleMarc
                JungleMarc last edited by JungleMarc

                I can get latest iOS working on Z-Push without issues.

                It requires that the server is setup proper on SSL certs for the http server you use.

                Is there a specific reason why you choose Nginx as opposed to Apache?
                The packages install defaults Z-Push and Webapp through Apache. It works well.

                Beware of iOS Outlook app. This app is not using exchange directly, instead it uses cloud service that connects back to Z-Push (lol why!!) and it stores account related data in cloud services.

                If you care about your privacy, stick to other mail clients. I invite you to read about that. And also keep a good eye on your Kopano access logs, you’ll be surprised of how much data is being accessed by the MS cloud.

                Very old iOS versions would allow self-signed certs for email, but that changed since iOS 13.

                maedball 1 Reply Last reply Reply Quote 0
                • maedball
                  maedball @JungleMarc last edited by

                  @junglemarc: I had it also not working also with apache and tried nginx also with no luck.

                  The certificates are Lets encrypt certificates. I know about the outlook app (and i am also not happy with it) but been able to send mails on the go is kind of needed ;-).

                  JungleMarc 1 Reply Last reply Reply Quote 0
                  • JungleMarc
                    JungleMarc @maedball last edited by

                    pretty sure we can help you out get it working

                    When you setup the account in iOS Settings,

                    leave the domain section blank

                    only use the username / password and server fields.

                    What do you see in the logs if you give it a try?

                    maedball 1 Reply Last reply Reply Quote 0
                    • maedball
                      maedball @JungleMarc last edited by maedball

                      @junglemarc I just did resetup the account still the same as i would set it up with autodiscover so doing it manual -> username, password, server, description, email. Everything works except sending mails :-(. Nothing in the log, not in the normal nor in the error log. It looks to me like something is not getting configured on IOS side. Kind of like a missing smtp setup (which is not needed i know ;-))

                      Photo 22-01-18 23-48-56 8386.png

                      JungleMarc 1 Reply Last reply Reply Quote 0
                      • JungleMarc
                        JungleMarc @maedball last edited by

                        Ok so you are able to get the account to sync at first, good good.

                        Damn we are so very close to have it all working.

                        What about your postfix logs?

                        maedball JungleMarc 2 Replies Last reply Reply Quote 0
                        • maedball
                          maedball @JungleMarc last edited by

                          @junglemarc Well everything we achieved was already working before ;-).

                          Postfix also does not show any messages. As stated my feeling is that IOS is not setting up the sending part internal.

                          I have currently two clues which i have on my plate:

                          • Disable IPV6 on my server to check if it is an IPV6 based issues
                          • switch logon to email address instead of username
                          JungleMarc 1 Reply Last reply Reply Quote 0
                          • JungleMarc
                            JungleMarc @JungleMarc last edited by

                            I’ve never used the autodiscover stuff - always done the profiles manually.

                            What distro are you on, and I assume you are using latest openssl?

                            1 Reply Last reply Reply Quote 0
                            • JungleMarc
                              JungleMarc @maedball last edited by JungleMarc

                              Testing ipv4 only could be as simple as setting up a spare wifi router, that has ipv6 disabled at the dhcp server - without having to change anything on the server end.

                              Ohh, also, what if you specify the port number at the server field in iOS? yourdomain.something:port <-- i doubt that would influence something since you are already able to sync the profile… but worth the shot.

                              I wonder if any of the Kopano ninjas heard of a bug like this before?

                              maedball 1 Reply Last reply Reply Quote 0
                              • maedball
                                maedball @JungleMarc last edited by

                                I have disabled IPV6 (on the server ;-)) Still the problem persists.

                                But during testing i found out that there is a small window during setup when it is actually working (i know it really sounds strange). So for me it looks like the provisioning seems to be causing this.

                                Still i am on my way in testing the email address of username theory.

                                JungleMarc 1 Reply Last reply Reply Quote 0
                                • JungleMarc
                                  JungleMarc @maedball last edited by

                                  Which distro are you using, and how was it installed?

                                  I am using Ubuntu and installed through the packages - paid subscription.

                                  Very interesting it works for a brief amount of time.

                                  1 Reply Last reply Reply Quote 0
                                  • maedball
                                    maedball last edited by

                                    Ubuntu LTS 20.xx, also with the normal repo via packages.

                                    Do you use usernames or emails to login?

                                    JungleMarc 1 Reply Last reply Reply Quote 0
                                    • JungleMarc
                                      JungleMarc @maedball last edited by

                                      I’m on Ubuntu as well.

                                      I do with usernames as a personal preference. I like how it cannot be easily guessed, it adds security, not anyone can easily challenge authentication. Helps maintain quiet logs.

                                      maedball 1 Reply Last reply Reply Quote 0
                                      • maedball
                                        maedball @JungleMarc last edited by

                                        @junglemarc I have now changed the setup of dovecot and postfix to virtual users / Email address logins. Now i can send Emails from IOS without any issues. So from my side it is working. Not sure thou why it is happening… :-(

                                        JungleMarc 1 Reply Last reply Reply Quote 0
                                        • JungleMarc
                                          JungleMarc @maedball last edited by

                                          This is excellent news!

                                          Yes postfix should always be setup to let Kopano handle virtual users. This is part of documentation. Glad you got it sorted :)

                                          lol byebye iOS Outlook - make sure to replace your passwords once you move users out of that app. Happy for you and your users that you will be able to gain back proper privacy over your email accounts.

                                          Marc

                                          1 Reply Last reply Reply Quote 0
                                          • aubergine
                                            aubergine last edited by

                                            I had the same problem too.

                                            Using virtual users for dovecot (full email address as username) together with the setting below solved the problem.

                                            define('USE_FULLEMAIL_FOR_LOGIN', true);
                                            

                                            Using the short username without domain as login name or having the above option set to false makes iOS with Z-Push believe (for whatever reason) the email address is just the username. Changing the email address for the account in the mail settings is not possible - it always changes back automatically to the short username only. Therefore the send email function doesn’t work.

                                            bob4os 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post