1 (edited by AndreyEver 2022-06-30 21:14:09)

Topic: Mail with wrong RCPT address stays in outgoing folder (EAS+Outlook)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0
- Deployed with iRedMail Easy or the downloadable installer?  Installer
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

With default configuration mails with wrong RCPT address sent by Outlook stay in Outlook outgoing folder forever.

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) ser
ver-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 <sdfdjfdshj@zim-service.xxx>: Recipient address rejected: User unknown; from=<support@zim-service.xxx> to=<sdfdjfdshj@zim-ser
vice.xxx> proto=ESMTP helo=<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] <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 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=SendMail&User=support@zim-service.xxx&DeviceId=76D251AB1CDC4CC7801AD175138AF169&DeviceType=WindowsOutlook15 HTTP/1.0" 200 15/2631 0.039 - - 0 - 25
Jun 30 12:02:35 sogod [1144]: [WARN] <0x0x56479361ba10[WOWatchDogChild]> pid 301948 has been hanging in the same request for 10 minutes
Jun 30 12:02:35 sogod [1144]: [WARN] <0x0x56479363ae70[WOWatchDogChild]> pid 371783 has been hanging in the same request for 55 minutes


zim-service.xxx - is my domain
support - authorized user
email client: Outlook 2019 via EAS (Sogo)

Any ideas how to fix out this behavior?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by AndreyEver 2022-06-30 21:38:07)

Re: Mail with wrong RCPT address stays in outgoing folder (EAS+Outlook)

I found similar report on Sogo bugtracker:
https://www.sogo.nu/bugs/view.php?id=4270

however changing  /etc/postfix/main.cf on iRedMail server to

smtpd_recipient_restrictions =
    reject_non_fqdn_recipient
#    reject_unlisted_recipient
    permit_mynetworks
    check_policy_service inet:127.0.0.1:7777
    permit_sasl_authenticated
    reject_unauth_destination
    check_policy_service inet:127.0.0.1:12340

didnt help...

3

Re: Mail with wrong RCPT address stays in outgoing folder (EAS+Outlook)

Also tried change SMTP in sogo.conf to:

SOGoSMTPServer = "smtp://127.0.0.1:10025"

But with this setting Sogo does not ever tries to connect to Postfix.

What would you recommend to do?

4

Re: Mail with wrong RCPT address stays in outgoing folder (EAS+Outlook)

AndreyEver wrote:

With default configuration mails with wrong RCPT address sent by Outlook stay in Outlook outgoing folder forever.

If RCPT address is wrong, the email should not be queued by Postfix at all. Maybe you should re-edit the email in Outlook and fix the wrong address?

5

Re: Mail with wrong RCPT address stays in outgoing folder (EAS+Outlook)

ZhangHuangbin wrote:
AndreyEver wrote:

With default configuration mails with wrong RCPT address sent by Outlook stay in Outlook outgoing folder forever.

If RCPT address is wrong, the email should not be queued by Postfix at all. Maybe you should re-edit the email in Outlook and fix the wrong address?

The problem is that mail stays in outbox (in Outlook) forever without any message to user
(reason why iredmail does not procced could be fount only in syslog - not really user friendly)