https://github.com/lldap/lldap logo
bsncubed - Hi All, has anyone seen this error b...
# troubleshooting
b
Hi All, has anyone seen this error before? I was trying to sent a test email to myself via the command
./lldap send_test_email --to bsncubed@randomemaildomain.com
Could not send email: Connection error: Connection error: received corrupt message: Connection error: received corrupt message: received corrupt message
When I tired to set the verbose flag, something caught my eye, the
send_test_email
tool was sending the email as
nobody@lldap
. Not sure why, but it seems odd.
:bug: [debug]: Sending email to 'bsncubed@randomemaildomain.com' as 'LLDAP <nobody@lldap>' via 'no-reply@randomemaildomain.com'@'smtp.zoho.com.au':'587'
please note that the email addresses provided are placeholders
n
That's usually a ssl/starttls problem
b
Fun. I do need TLS enabled, and it is in my config https://pastebin.com/s0njCtXe
Hang on, I think i've found my mistake
I managed to get a bit further with the following command, but it still has errors
./lldap send_test_email -v --to "bsncubed@randmomemail.com" --smtp-server "smtp.zoho.com.au" --smtp-port 587 --smtp-user "no-reply@randmomemail.com" --smtp-password "PasswordGoesHere" --smtp-encryption "TLS" --smtp-from "no-reply <no-reply@randmomemail.com>"
Errors: https://pastebin.com/XRY3F2K2
n
Try port 465
b
Thanks! That worked a treat. Whats interesting though is the documentation for my providers smtp settings state that 465 is for SSL rather than TLS https://cdn.discordapp.com/attachments/1226120569314082846/1226131273203060736/Screenshot_2024-04-06_at_22.26.19.png?ex=6623a6bb&is=661131bb&hm=330336c31210207cbcd6c6b543efffda11ecb86dcc9970c0254242b23ef58017&
Well, it worked with the
send_test_email
command, but not via the web ui. Same settings, but no discernible error message come though the docker log
n
TLS and SSL are similar, and in email they're often confused.
In email, SSL means "directly open a secure connection", as opposed to TLS which is misused to mean STARTTLS which means "open a plaintext connection and then ask for upgrade to secure"
b
Got it fully working just now. For some reason, when entering the SMTP information into the config, it didn't work. It did work, however, setting the
LLDAP_SMTP_OPTIONS
via the docker environment did work.
Thanks for the help!
@nitnelave just sent "3 cups of Tea" your way
n
If you need to debug your config, using the verbose mode is the best: it dumps the config that it read at the beginning of the logs
Glad you figured it out!
2 Views