I think I am close to getting the whole set up right. Although, when I send an email to the email address in RocketChat I now get this:
Error receiving Email: Sorry, no online agents [no-agent-online]
in the logs. I was logged in testing the mail, so something is not quite right yet.
P.S. I have upgraded to v 3.16.1 in the meantime, may that be relevant.
ADDED: I have just tried turning on the directly reply to check if that might have been the problem, but I got the following error:
Exception in callback of async function: Error: Expected array for search criteria at Connection._search (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Connection.js:573:11) at Connection.search (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Connection.js:566:8) at IMAPIntercepter.getEmails (server/email/IMAPInterceptor.ts:99:13) at server/email/IMAPInterceptor.ts:46:11 at Connection. (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Connection.js:432:7) at Connection._resTagged (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Connection.js:1535:22) at Parser. (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Connection.js:194:10) at Parser.emit (events.js:314:20) at Parser.EventEmitter.emit (domain.js:483:12) at Parser._resTagged (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Parser.js:175:10) at Parser._parse (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Parser.js:139:16) at Parser._tryread (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Parser.js:82:15) at TLSSocket.Parser.cbReadable (/opt/Rocket.Chat/programs/server/npm/node_modules/imap/lib/Parser.js:53:12) at TLSSocket.emit (events.js:314:20) at TLSSocket.EventEmitter.emit (domain.js:483:12) at emitReadable (_stream_readable.js:557:12) at processTicksAndRejections (internal/process/task_queues.js:83:21)
PPS. I have the processes
SyncedCron ➔ info Starting “Generate download files for user data”.
SyncedCron ➔ info Finished “Generate download files for user data”.
running automatically every two minutes. I am not sure what they referring to, is it related to the emails? In my server logs I see a lot of node processes that get killed because of an Out Of Memory error, and these made the server crashed a few times this week. Looking at the logbooks in the RocketChat, the only processes happening on regular base are these SyncedCron, so I guess there is a good chance that those are the issues.
ADDED: I just got an automatic reply to one of the mails from my mail in the RocketChat to which I have sent the email asking what email I had sent the email to. I found it a bit funny
. Things seem now to be working, I just have to figure out how to use them suitably, but that should not be a problem. The main thing I need to figure out is how to have the email shown inside the RocketChat, so that I can reed it there, but both IMAP and SMTP seem to be working fine. Thanks a lot for the help with the setup. I think the main difficulty I had my the old email server was due to their settings, because with the email server I have set up myself I did not have any problem of that sort (just failed the first couple of time because of wrong username/password combination, but after that it was fine).
EDIT: Sorry, the email reply was not automatic, was just sent by my assistant who is working remotely and saw the email before me
. Everything is working fine, she did see the email inside the RocketChat.