polonel / trudesk

:coffee: :seedling: Trudesk is an open-source help desk/ticketing solution.
http://trudesk.io
Other
1.29k stars 430 forks source link

Mailer Fails with Gmail #639

Closed SteadyStatus21 closed 9 months ago

SteadyStatus21 commented 9 months ago

Is this a BUG REPORT or FEATURE REQUEST?:

What happened: Attempting to use Mailer with a Google Gmail account (Using 2FA Password for Less Secure Apps) can send correctly, but for recieving and parsing emails it doesn't work at all. What did you expect to happen: The test email that I sent to be created as a ticket would be parsed and created in a new ticket. (From email Trudesk has never seen before) How to reproduce it (as minimally and precisely as possible): Setup Gmail account. Enable 2FA. Enable App Password. Configure Trudesk to use said credentials. image

Anything else we need to know?: Running from Portainer. Running as Swarm. Shouldn't affect it, but I think it's alright. image

Not sure if my config is incorrect, but it should be alright. Logs are as follows:

11-26-2023 18:35:40 [20] error:     self signed certificate - Error: self signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
    at TLSSocket.emit (node:events:526:28)
    at TLSSocket._finishInit (node:_tls_wrap:944:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
    at Socket.ondata (node:internal/js_stream_socket:77:22)
    at Socket.emit (node:events:526:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

Environment:

polonel commented 9 months ago

Out of curiosity, can you enable "Allow Self-Signed Cert" and check if the error still occurs?

SteadyStatus21 commented 9 months ago

Hello Chris,

Enabling Self-Signed Cert still gives me the same error, which is quite strange... Could Google have changed something?

Thank you, SteadyStatus21

On Tue, Nov 28, 2023 at 10:10 AM Chris @.***> wrote:

Out of curiosity, can you enable "Allow Self-Signed Cert" and check if the error still occurs?

— Reply to this email directly, view it on GitHub https://github.com/polonel/trudesk/issues/639#issuecomment-1830414033, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTLVGHTTI2G5S7FDBXVLVTYGYSITAVCNFSM6AAAAAA73BHGDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZQGQYTIMBTGM . You are receiving this because you authored the thread.Message ID: @.***>

polonel commented 9 months ago

I believe this is related to Google no longer supporting "Less Secure Apps".

https://support.google.com/accounts/answer/6010255?hl=en

The new inbound mailer will not utilize imap the same way, so I'm hoping it will resolve this issue.

SteadyStatus21 commented 9 months ago

Awesome! Thank you so much!