Open Tiago-Altus opened 4 years ago
The line about NODE_TLS_REJECT_UNAUTHORIZED
is concerning, that should never be enabled. You can pass --trace-warnings
to node to get a backtrace to locate what is causing that warning.
Are you sure the connection config is correct? Your current configuration is connecting to port 993 with implicit TLS, which is common, but it could be that the server does not have that enabled. It may only be using port 143 and STARTTLS to upgrade the connection via TLS instead.
Error: Timed out while connecting to server
imap version: imap@0.8.19
@mscdex, I am getting the below issue, It is working fine with LocalHost, but it is not working in server. Could anyone help me on this,
My config as below,
{
errno: -104,
code: 'ECONNRESET',
syscall: 'read',
source: 'socket',
level: 'error'
}
{ source: 'timeout', level: 'error' }
{ source: 'timeout', level: 'error' }
{
message: 'Error: Timed out while connecting to server\n' +
' at Timeout._onTimeout (/apps/smartexpense/mailread/node_modules/imap/lib/Connection.js:280:15)\n' +
' at listOnTimeout (internal/timers.js:551:17)\n' +
' at processTimers (internal/timers.js:494:7)',
level: 'error'
}
{ message: 'Process will exit with code: 0', level: 'error' }
{ source: 'timeout', level: 'error' }
my config: export const imapConfig = { imap: { user: 'my@email', password: 'password', host: 'outlook.office365.com', port: 993, tls: true, authTimeout: 10000, connTimeout: 30000, keepalive: true, tlsOptions: { rejectUnauthorized: false } };
imap version: imap@0.8.19
@mscdex, I am getting the below issue, It is working fine with LocalHost, but it is not working in server. My config as below, What should i do, to make it work ?
{
errno: -104,
code: 'ECONNRESET',
syscall: 'read',
source: 'socket',
level: 'error'
}
{ source: 'timeout', level: 'error' }
{ source: 'timeout', level: 'error' }
{
message: 'Error: Timed out while connecting to server\n' +
' at Timeout._onTimeout (/apps/smartexpense/mailread/node_modules/imap/lib/Connection.js:280:15)\n' +
' at listOnTimeout (internal/timers.js:551:17)\n' +
' at processTimers (internal/timers.js:494:7)',
level: 'error'
}
{ message: 'Process will exit with code: 0', level: 'error' }
{ source: 'timeout', level: 'error' }
my config: export const imapConfig = { imap: { user: 'my@email', password: 'password', host: 'outlook.office365.com', port: 993, tls: true, authTimeout: 10000, connTimeout: 30000, keepalive: true, tlsOptions: { rejectUnauthorized: false } };
I am trying to connect to my companies Exchange Server to pull attachments from emails. I am having trouble connecting to the Exchange Server. We use exchange server 2013 sp1.
The setup I have:
Currently I am just using the sample code from documentation, just to see if I can get connection working. When I run the code I get the following error: