Illegal Address Syntax

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
aroze1049
Posts: 1
Joined: Thu Nov 16, 2017 4:18 pm

Illegal Address Syntax

Postby aroze1049 » Thu Nov 16, 2017 5:59 pm

Zimbra Newbie - Running 8.7.0_GA_1659.FOSS on Centos 6.9 Final

Seeing many "Illegal Address Syntax" warnings in mailbox log after which connection gets dropped. Client used is Outlook 2010. It seems due to the apostrophes in the e-mail addresses of the recipients. I'm not quite sure how to either get Zimbra to either accept them or strip them off. Any ideas? (all data in logs anonymized)

00:00:29 mail postfix/smtps/smtpd[30004]: connect from officerouter.myowndomain.com[187.124.139.68]
Nov 16 00:00:29 mail postfix/smtps/smtpd[30004]: Anonymous TLS connection established from officerouter.myowndomain.com[187.124.139.68]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Nov 16 00:00:29 mail postfix/smtps/smtpd[30004]: warning: Illegal address syntax from officerouter.myowndomain.com[187.124.139.68] in RCPT command: <'again@bloomnyc.org'>
Nov 16 00:00:29 mail postfix/smtps/smtpd[30004]: NOQUEUE: filter: RCPT from officerouter.myowndomain.com[187.124.139.68]: <youknowwho@myowndomain.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<youknowwho@myowndomain.com> to=<abe05@aol.com> proto=ESMTP helo=<YOUKNOWWHO>
Nov 16 00:00:29 mail postfix/smtps/smtpd[30004]: CCC426200D2: client=officerouter.myowndomain.com[187.124.139.68], sasl_method=LOGIN, sasl_username=youknowho@myowndomain.com
Nov 16 00:00:29 mail postfix/smtps/smtpd[30004]: warning: Illegal address syntax from officerouter.myowndomain.com[187.124.139.68] in RCPT command: <'afernandez@northwest.org'>
Nov 16 00:00:29 mail postfix/smtps/smtpd[30004]: warning: Illegal address syntax from officerouter.myowndomain.com[187.124.139.68] in RCPT command: <'pqrst@program.com'>
MORE OF THE SAME....
Nov 16 00:00:37 mail postfix/smtps/smtpd[30004]: warning: Illegal address syntax from officerouter.myowndomain.com[187.124.139.68] in RCPT command: <'abcd.efghjk@HELP.ORG'>
Nov 16 00:00:38 mail postfix/smtps/smtpd[30004]: warning: Illegal address syntax from officerouter.myowndomain.com[187.124.139.68] in RCPT command: <'abcdefghi@workusa.com'>
Nov 16 00:00:40 mail postfix/smtps/smtpd[30004]: too many errors after RCPT from officerouter.myowndomain.com[187.124.139.68]
Nov 16 00:00:40 mail postfix/smtps/smtpd[30004]: disconnect from officerouter.myowndomain.com[187.124.139.68] ehlo=1 auth=1 mail=1 rcpt=1/21 commands=4/24


imanudin11
Outstanding Member
Outstanding Member
Posts: 297
Joined: Sat Sep 13, 2014 2:23 am
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64
Contact:

Re: Illegal Address Syntax

Postby imanudin11 » Fri Nov 17, 2017 1:26 am

Hi,
Please try this method

Code: Select all

su - zimbra
vi /opt/zimbra/conf/command_filter.regex

Fill with the following lines

Code: Select all

# eXtremeSHOK.com
 
# Fix Illegal address syntax, malformed emails that are surrounded in single quotes
/^RCPT\s+TO:\s*<'([^[:space:]]+)'>(.*)/ RCPT TO:<$1>$2

Open zmconfigd.cf

Code: Select all

vi /opt/zimbra/conf/zmconfigd.cf

Add this line before RESTART mta

Code: Select all

POSTCONF smtpd_command_filter pcre:/opt/zimbra/conf/command_filter.regex

Save and restart mta

Code: Select all

zmmtactl restart

HTH
Source : https://extremeshok.com/6904/postfix-bu ... ed-emails/

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot] and 17 guests