Topic: This should be in iredmail by default (/etc/postfix/main.cf)
==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: CentOS 7
- Related log if you're reporting an issue:
====
I been fighting with users using Outlook for sending mail's, and theirs claims that mails are not received by thoose to whom are sent...
In log's I have bunch of entires like this....
postfix/smtpd[32424]: warning: Illegal address syntax from xxxxx in RCPT command: <'some.mail@mailserver'>
Well, for some reason Outlook add apostrophes... All other mail clients are OK and they don't do that.
FIX:
In main.cf (/etc/postfix/main.cf) add at bottom line
smtpd_command_filter = pcre:/usr/local/etc/postfix/command_filter
and create file /usr/local/etc/postfix/command_filter with this contect
/^RCPT\s+TO:\s*<'([^[:space:]]+)'>(.*)/ RCPT TO:<$1>$2
Source of fix is http://yvanrodrigues.com/content/server … ess-syntax
Afther that fix in log I have now:
Feb 9 09:08:50 iredmail postfix/smtpd[32424]: warning: Illegal address syntax from xxxxx[xxxxxx] in RCPT command: <'some.mail@mailserver'>
Feb 9 09:09:52 iredmail postfix/smtpd[780]: xxxx[xxxxxx]: replacing command "RCPT TO: <'some.mail@mailserver'>" with "RCPT TO:<some.mail@mailserver>"
Feb 9 09:10:00 iredmail amavis[944]: (00944-01) Passed CLEAN {RelayedInternal}, MYNETS/MYUSERS LOCAL [xxxxxxx]:52167 <xxxxxx@xxxxx.hr> -> <some.mail@mailserver>, Queue-ID: 5294D201031F4F, Message-ID: <009401d0443f$c9500f40$5bf02dc0$@xxxx.hr>, mail_id: sMgZzKezQ5hF, Hits: -, size: 8708, queued_as: F258C201031F66, dkim_new=dkim:xxx.hr, 250 ms
Me happy, users happy
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.