YunoHost-Apps / sogo_ynh

SOGo Groupware for YunoHost.
https://sogo.nu/
GNU General Public License v3.0
6 stars 4 forks source link

Error: Not allowed in state 1 when trying to send mails via Webmail #20

Closed vsatmydynipnet closed 3 months ago

vsatmydynipnet commented 1 year ago

Fresh installed V11 Yunohost with all updates since today.

Everything works, also sending mails via Android, IOS, Outlook and Thunderbird. There is only the problem, if one sends e-mail via webmail/sogo then immediately "a red box telling me - not allowed in stage 1 - only with a close button" shows up.

Is there a workaround?

Thank yqu very much.

gcollin commented 1 year ago

I had the same issue (it used to work and suddenly I got the same error), so if someone is still interested, here is the fix:

sogo is using stunnel4 service to connect to smtp. stunnel4 must be start for sending messages to work.

to check if it's started, just login to your server, and do a systemctl status stunnel4

if it says it's not started, you can just

systemctl start stunnel4 and check it has been started.

Then go to sogo website and try to send the message. It should work

To support restart, one can do the usual systemctl enable stunnel4

Hope this helps

clicit commented 1 year ago

@gcollin thanks that fixes the problem!

0utl4w commented 1 year ago

Thx, had the same issue and you fixed it!

Martin-bl commented 10 months ago

Thank @gcollin :smiley: The question : what is missing in Sogo package to fix it :upside_down_face: ? thanks everybody for all your jobs

gcollin commented 10 months ago

I guess the installation script should ensure stunnel4 is enabled at boot and Sogo is dependent on stunnel4 in systemctl

Pentaonia commented 9 months ago

Hey all,

same issue for me (not allowed in state 1) after a server migration. But restarting either stunnel4 and/or Sogo does not fix the error. In the log the following error appears:

[ERROR] <0x0x5574e5f91b30[SOGoMailer]> Could not connect to the SMTP server smtp://127.0.0.1:20001

But from outside with a mail client I can send mails.

All the best and thanks in advance Loubert

Jeeboot commented 8 months ago

Same issue on my side, due to the same reason probably since I just finished my server migration. Any tip? Thanks in advance :) Jeeboot

gcollin commented 8 months ago

I don't have this issue so it's a bit difficult to help. I assume postfix is running and listening at port 20001?

Josue-T commented 3 months ago

Closing as it should be fixed by #29