valeriansaliou / raider

🐎 Affiliates dashboard. Used by affiliates to generate tracking codes and review their balance.
https://crates.io/crates/raider-server
Mozilla Public License 2.0
146 stars 31 forks source link

Mail sending appear to be broken #12

Open tszyszko opened 1 month ago

tszyszko commented 1 month ago

It looks emailing is not working when running in Docker / kubernetes on arm64 environments. I've tried building with the supplied debian image, as well as updating to use bookworm, and updating libssl1.1 -> libssl3 / openssl, but it appears to fail to setup the TLS tunnel when encryption is enabled, and fails to pass authentication parameters when encryption is switched off.

e.g.

│ (DEBUG) - connecting to 34.36.169.126:587                                                                                                                                                                │
│ (DEBUG) - Read: 220 mailosaur.net Mailosaur SMTP service ready<CRLF>                                                                                                                                     │
│ (INFO) - connection established to 34.36.169.126:587                                                                                                                                                     │
│ (DEBUG) - Wrote: EHLO raider-769d4989d8-dqbhf<CRLF>                                                                                                                                                      │
│ (DEBUG) - Read: 250-mailosaur.net<CRLF>250-AUTH LOGIN PLAIN CRAM-MD5<CRLF>250-DSN<CRLF>250-SMTPUTF8<CRLF>250-8BITMIME<CRLF>250 STARTTLS<CRLF>                                                            │
│ (DEBUG) - server mailosaur.net with {StartTls, Authentication(Login), SmtpUtfEight, Authentication(Plain), EightBitMime}                                                                                 │
│ (DEBUG) - Wrote: STARTTLS<CRLF>                                                                                                                                                                          │
│ (DEBUG) - Read: 220 Ready to start TLS<CRLF>                                                                                                                                                             │
│ (DEBUG) - Wrote: QUIT<CRLF>                                                                                                                                                                              │
│ (INFO) - Outcome: Success                                                                                                                                                                                │
│ (DEBUG) - writing head: Http11 SeeOther                                                                                                                                                                  │
│ (DEBUG) - headers [                                                                                                                                                                                      │
│ Headers { Location: /initiate/recover/?result=success                                                                                                                                                    │
│ , Server: Rocket                                                                                                                                                                                         │
│ , Content-Length: 0                                                                                                                                                                                      │
│ , }]                                                                                                                                                                                                     │
│ (INFO) - Response succeeded.

I haven't had a chance to drill down further (I've not worked with rust before), but have also noticed that the rust version is getting a bit old now, had a go to try to build on newer but any tips on where to get started would be much appreciated !