Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Appflowy_cloud tried to connect to SMTP server without any reason. #951

Open
henri9813 opened this issue Oct 29, 2024 · 5 comments
Open
Assignees

Comments

@henri9813
Copy link

Describe the bug

REgulary, the container appflowy_cloud tried to connect to my TLS smtp server ( port 587 ) but does nothing ?

Oct 29 22:29:13 fesfes.gladhost.cloud postfix/smtpd[491727]: connect from gxo-1001.gladhost.cloud[1.1.1.1]
Oct 29 22:29:13 fesfes.gladhost.cloud postfix/smtpd[491727]: lost connection after UNKNOWN from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 22:29:13 fesfes.gladhost.cloud postfix/smtpd[491727]: disconnect from gxo-1001.gladhost.cloud[1.1.1.1] unknown=0/2 commands=0/2

To Reproduce
Steps to reproduce the behavior:

  1. Run appflowy_cloud

Expected behavior
A clear and concise description of what you expected to happen.

The connection is either not started while no mail has to be sent.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context

  • Environment [e.g. flutter doctor -v or rustup show]
    Add any other context about the problem here.
@henri9813
Copy link
Author

The connection attempt occurred every minutes.

Oct 29 21:58:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: connect from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 21:58:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: lost connection after UNKNOWN from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 21:58:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: disconnect from gxo-1001.gladhost.cloud[137.74.157.41] unknown=0/2 commands=0/2
ct 29 21:59:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: connect from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 21:59:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: lost connection after UNKNOWN from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 21:59:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: disconnect from gxo-1001.gladhost.cloud[137.74.157.41] unknown=0/2 commands=0/2
Oct 29 22:00:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: connect from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 22:00:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: lost connection after UNKNOWN from gxo-1001.gladhost.cloud[137.74.157.41]
Oct 29 22:00:08 gxo-1005.gladhost.cloud postfix/smtpd[490077]: disconnect from gxo-1001.gladhost.cloud[137.74.157.41] unknown=0/2 commands=0/2

@khorshuheng
Copy link
Collaborator

khorshuheng commented Nov 8, 2024

One situation where i have seen this happening, is when AppFlowy Cloud performs any action (magic link, invite user to workspace, invite user to appflowy, notify user when notion import is completed) that requires smtp server, but unable to connect to the server (eg. if the port supports STARTTLS instead of TLS). In which case, the server will keep retrying, in roughly a minute interval.

I am not familiar with postfix myself, so i will have to research more about it.

@henri9813
Copy link
Author

henri9813 commented Nov 8, 2024

Hello,

The smtp connection is okay because when I invite someone for example, the mail is successfully sent...

However, I have no logs on appflowy side. Which container should I look ?

@khorshuheng
Copy link
Collaborator

khorshuheng commented Nov 8, 2024

If there is any log, it should be on Appflowy cloud. Could you give more information on the SMTP setup (i.e. configuration of postfix), so that I can try to see if I can reproduce the issue?

@henri9813
Copy link
Author

Hello,

Postfix is configured in TLS ( port 587 ) with authentication.

There is not any special configuration.

My problem is I don't have any logs in appflowy_cloud.( except a warning which happen every hours ) but nothing which trigger every minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants