Mail Apps - Unexpected error during account creation

I have try to connect my mail account to Mail App Nextcloud. I’m using Dockerized NC 20.0.0.9 with PostgreSQL and Mail App version 1.5.0.

image

Here is my data/horde_imap.log

------------------------------
>> Mon, 19 Oct 2020 07:25:44 +0000
>> Connection to: imap://mail.batmandiri.com:993/
>> Server connection took 0.5653 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: nextcloud.admin@batmandiri.com)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY STATUS=SIZE NAMESPACE LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA] Logged in
>> Command 1 took 0.2058 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
>> Slow Command: 5.191 seconds
C: 2 ENABLE QRESYNC
C: 3 LOGOUT
S: * ENABLED QRESYNC
S: 2 OK Enabled (0.001 + 0.000 secs).
>> Command 2 took 0.1878 seconds.
S: * BYE Logging out
S: 3 OK Logout completed (0.001 + 0.000 secs).
>> Command 3 took 0.3749 seconds.

Here is my data/horde_smtp.log

------------------------------
>> Mon, 19 Oct 2020 07:25:45 +0000
>> Connection to: smtp://mail.batmandiri.com:587
>> Slow Command: 5.005 seconds
>> ERROR: Server read/timeout error.

Here is my data/nextcloud.log

{"reqId":"ADFeRjU067ZflWtmMofg","level":4,"time":"2020-10-19T07:25:50+00:00","remoteAddr":"10.11.11.2","user":"batm","app":"mail","method":"POST","url":"/apps/mail/api/accounts","message":"Creating account failed: Error when communicating with the server.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36","version":"20.0.0.9"}

I have try using php-mail, and it’s worked for connect my email account to Apps Mail Nextcloud. But i couldn’t send email.

Could you help me, please

Slow Command: 5.005 seconds
ERROR: Server read/timeout error.

Try increasing the timeout: >> Slow Command: 5.005 seconds

ERROR: Server read/timeout error.

Don’t use this option unless you really know what you’re doing.

So, I just add app.mail.smtp.timeout => 60 on config/config.php and it works!
Thank you @ChristophWurst

1 Like