View Issue Details

IDProjectCategoryView StatusLast Update
0004270SOGoActiveSyncpublic2022-12-14 11:46
Reportermodir Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platform[Client] MicrosoftOSWindowsOS Version7
Product Version3.2.10 
Summary0004270: Mails stay forever in outbox of Outlook 2016
Description

We have a few clients which connect the Outlook 2016 with ActiveSync to our server. In general it is working fine but sometimes they have the problem that the emails get stuck in the outbox. It is not even possible to delete those emails in Outlook anymore. When syncing they seem to sync but are never sent.

Any ideas how to troubleshoot this situation the best?

TagsNo tags attached.

Activities

tfu

tfu

2017-09-05 10:58

reporter   ~0012256

  • Check whether the stuck mails have something in common. (size/attachments/receipients...)
  • Search for errors in sogo.log around: ... POST /SOGo/Microsoft-Server-ActiveSync?Cmd=SendMail&DeviceType=....
john.cameron

john.cameron

2017-10-19 12:44

reporter   ~0012384

Last edited: 2022-05-09 12:35

We are having this issue with all ActiveSync clients.

Sendmail returns “user unknown”, but the ActiveSync client keeps retrying.

e.g

Oct 19 11:13:29 mail sendmail[1278]: v9J9DT6i001278: <user@example.com>... User unknown
Oct 19 11:25:37 mail sendmail[4673]: v9J9Pbod004673: <user-at-example.com>... User unknown

This happens when sending to a non-existent mailbox hosted locally and any invalid email address.

To resolve this we create a temporary alias to an existing mailbox or ask the user to remove
The invalid email address from the email.

Philipp

Philipp

2017-12-28 09:50

reporter   ~0012492

Last edited: 2022-05-09 12:35

I have same problem. That's for sure bug in SOGo - when mail is sent (via webmail or EAS) it is passed to SMTP server, which can accept or reject it depending on configuration. For example Postfix has option smtpd_recipient_restrictions=reject_unknown_recipient_domain which rejects inbound SMTP from SOGo when non-existent recipient domain in To: field. When SOGo webmail don't even allow to send this message (saying invalid recipient), EAS implementation ignores SMTP rejection and mail sits in Outbox forever and, depending on client, delivery attempts continue.

To work around this, you can create separate submission service without any checks. Heres excerpt from my Postfix master.cf:

# wmsub_relay
5877       inet n       -       y       -       -       smtpd
  -o syslog_name=postfix/wmsub_relay
  -o smtpd_sasl_auth_enable=no
  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_client_restrictions=
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=
  -o mynetworks=127.0.0.1/32
  -o smtpd_relay_restrictions=permit_mynetworks,reject
  -o milter_macro_daemon_name=ORIGINATING

This way instead of rejecting, MTA accepts mail (after that it disapears from EAS outbox) and then after delivery attempt sends non-delivery notification back to sender.

But I hope this issue will be fixed in SOGo in future.

sofox

sofox

2022-05-09 10:13

reporter   ~0016036

I can confirm this problem as well.

If you send an eMail to an internal user, who does not exist.

Log:
"sogod[67:67] SMTP(RCPT TO) error: 5.1.1 <destination@mail.mail>: Recipient address rejected: User unknown in virtual mailbox table

How can i support, that this problem can be fixed?

sofox

sofox

2022-05-09 11:13

reporter   ~0016037

this problems only exists, if you send to an internal not-existant email address. if it is an external not-existant email address, the email gets out....

sofox

sofox

2022-05-09 12:03

reporter   ~0016038

workaround is to disable smtpd_reject_unlisted_recipient in postfix.

sofox

sofox

2022-05-09 12:04

reporter   ~0016039

Last edited: 2022-05-09 12:35

with:

 -o smtpd_reject_unlisted_recipient=no # SoGo EAS Fix
AndreyEver

AndreyEver

2022-06-30 13:34

reporter   ~0016108

Last edited: 2022-06-30 13:52

We are facing the same problem. However I've noticed one strange thing in logs:

&quot;User unknown&quot; in postfix  --->> &quot;Could not connect to the SMTP server&quot; in SOGO -->> Outlook

Jun 30 12:02:34 mail postfix/submission/smtpd[399412]: connect from localhost[127.0.0.1]
Jun 30 12:02:34 mail postfix/submission/smtpd[399412]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
Jun 30 12:02:34 mail postfix/submission/smtpd[399412]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 &lt;sdfdjfdshj@zim-service.xxx>: Recipient address rejected: User unknown; from=&lt;support@zim-service.xxx> to=&lt;sdfdjfdshj@zim-ser
vice.xxx> proto=ESMTP helo=&lt;localhost>
Jun 30 12:02:34 mail postfix/submission/smtpd[399412]: lost connection after RCPT from localhost[127.0.0.1]
Jun 30 12:02:34 mail postfix/submission/smtpd[399412]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 commands=5/6

2022-06-30 12:02:34.874 sogod[201406:201406] SMTP: STARTTLS successfully performed 
2022-06-30 12:02:34.898 sogod[201406:201406] SMTP(RCPT TO) error: 5.1.1 sdfdjfdshj@zim-service.xxx: Recipient address rejected: User unknown 
Jun 30 12:02:34 sogod [201406]: [ERROR] &lt;0x0x564794b995c0[SOGoMailer]> Could not connect to the SMTP server smtp://127.0.0.1:587/?tls=YES&tlsVerifyMode=allowInsecureLocalhost 
Jun 30 12:02:34 sogod [201406]: localhost &quot;POST /SOGo/Microsoft-Server-ActiveSync?Cmd=SendMail&User=support@zim-service.xxx&DeviceId=76D251AB1CDC4CC7801AD175138AF169&DeviceType=WindowsOutlook15 HTTP/1.0&quot; 200 15/2631 0.039 - - 0 - 25 
Jun 30 12:02:35 sogod [1144]: [WARN] &lt;0x0x56479361ba10[WOWatchDogChild]> pid 301948 has been hanging in the same request for 10 minutes 
Jun 30 12:02:35 sogod [1144]: [WARN] &lt;0x0x56479363ae70[WOWatchDogChild]> pid 371783 has been hanging in the same request for 55 minutes
modir

modir

2022-12-14 11:46

reporter   ~0016500

Now that new guys have been taking over this project. Can you please look into this again?

Issue History

Date Modified Username Field Change
2017-09-04 14:18 modir New Issue
2017-09-05 10:58 tfu Note Added: 0012256
2017-10-19 12:44 john.cameron Note Added: 0012384
2017-12-28 09:50 Philipp Note Added: 0012492
2022-05-09 10:13 sofox Note Added: 0016036
2022-05-09 11:13 sofox Note Added: 0016037
2022-05-09 12:03 sofox Note Added: 0016038
2022-05-09 12:04 sofox Note Added: 0016039
2022-05-09 12:35 francis Note Edited: 0016039
2022-05-09 12:35 francis Note Edited: 0012492
2022-05-09 12:35 francis Note Edited: 0012384
2022-05-09 12:35 francis Note Edited: 0012384
2022-06-30 13:34 AndreyEver Note Added: 0016108
2022-06-30 13:52 francis Note Edited: 0016108
2022-12-14 11:46 modir Note Added: 0016500