1

Topic: Illegal address syntax / Bad Recipient Address Syntax

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v2020082501
- Deployed with iRedMail Easy or the downloadable installer?:  iRedMail Easy
- Linux/BSD distribution name and version: CentOS Linux release 8.2.2004
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Sep 21 15:20:11 mail1 postfix/submission/smtpd[2679075]: 4Bw7RH1v9xzGFDJ9: client=c-73-14-134-214.hsd1.co.comcast.net[73.14.134.214], sasl_method=PLAIN, sasl_username=mark@changedscreening.com
Sep 21 15:20:11 mail1 postfix/submission/smtpd[2679075]: warning: Illegal address syntax from c-73-14-134-214.hsd1.co.comcast.net[73.14.134.214] in RCPT command: <mark@changedscreening.com; tomc@changedchus.com>
=====


Hello Everyone

I am requesting some suggestions on the above error. My client is using QuickBooks and the mails are rejecting with the error "Bad Recipient Address Syntax". Upon checking the log, I can see the error "Illegal address syntax" on mail log.



Here is the content of the file /etc/postfix/command_filter.pcre

# cat /etc/postfix/command_filter.pcre
#
# This file is managed by iRedMail Team "support@iredmail.org" with Ansible,
# please do __NOT__ modify it manually.
#

# Work around clients that send `RCPT TO:<'user@domain'>` (Outlook 2003/2007).
# WARNING: do not lose the parameters that follow the address.

/^(RCPT\s+TO:\s*<)'([^[:space:]]+)'(>.*)/   $1$2$3
[root@mail1 log]#


Any idea what changes needs to be done to above Regex?

----

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

2

Re: Illegal address syntax / Bad Recipient Address Syntax

I'm not a regex expert (so I'm not going to try touching that part of the question), but why is Quickbooks sending email with bad syntax? That's the thing that actually needs fixing here.


Craig

3

Re: Illegal address syntax / Bad Recipient Address Syntax

abdulwahabkdi wrote:

<mark@changedscreening.com; tomc@changedchus.com>

This is illegal email address because it combines 2 addresses in "<>" and it's treated as one address.

My suggestion is contacting your client to fix this address in the QuickBooks.

4

Re: Illegal address syntax / Bad Recipient Address Syntax

Thank you for your suggestions.

Let me inform the client.

Unfortunately, QuickBook is not very helpful in these.