globaleaks / globaleaks-whistleblowing-software

GlobaLeaks is free, open-source whistleblowing software enabling anyone to easily set up and maintain a secure reporting platform.
https://www.globaleaks.org
Other
1.23k stars 271 forks source link

Unexpected exception in sendmail: can only concatenate str (not "NoneType") to str #4077

Open giacomouberti opened 5 months ago

giacomouberti commented 5 months ago

What version of GlobaLeaks are you using?

4.15.3

What browser(s) are you seeing the problem on?

All

What operating system(s) are you seeing the problem on?

Linux

Describe the issue

We oftern receive notification from our users that the activation email for new receiver or admin account doesn't get to their inbox. We checked and emails are not being hold in quarantine or spam it appears like they are never sent by globaleaks. If we try and test notification settings we get in the logs the following error while testing a custom SMTP server Unexpected exception in sendmail: can only concatenate str (not "NoneType") to str

if we test with standard parameter we get another error as follows Starting factory <twisted.mail.smtp.ESMTPSenderFactory object at 0x7fc7d4c5eb90> Starting factory <globaleaks.utils.socks.SOCKS5ClientFactory object at 0x7fc800435870> Stopping factory <twisted.mail.smtp.ESMTPSenderFactory object at 0x7fc7d4c5eb90> Stopping factory <globaleaks.utils.socks.SOCKS5ClientFactory object at 0x7fc800435870>

The errors has happened also before the most recent upgrade and when rebooting the server all emails that appear to be "stacked" got sent in bulk also with some expired notification causing some misunderstaing with clients.

Proposed solution

No response

evilaliv3 commented 2 weeks ago

Thank you @giacomouberti

I'm sorry for the delay in this answer, apparently this ticket remained unchecked.

Are you still encountering this issue? Are you able to test release 5 and see if it does still apply?

giacomouberti commented 5 days ago

Hi there @evilaliv3 by october 31st we have a scheduled maintenance planned and we'll upgrade to release 5 in the testing environment and I'll come back to you and update if we have benn able to solve the issue or still need assistance. Thanks