luc...@dds.nl:
> Hello Group,
> 
> I have configured Postfix as a relay to forward all messages to the AWS
> SES mail service.
> 
> One sending application is sending mail with a From: header containing a
> semicolon-separated list of addresses. This is not according to the
> standard (https://tools.ietf.org/html/rfc2822#section-3.6.3) and is
> rejected by SES:
> status=bounced (host email-smtp.eu-west-1.amazonaws.com[52.215.26.159]
> said: 554 Transaction failed: Illegal semicolon, not in group (in reply
> to end of DATA command))
> 
> Unfortunately I have little influence on the sending application and it
> is not easy to correct this erratic behavior.
> 
> To solve this I was looking for a REPLACE in the header_checks but I did
> not find a way to replace the original header with a modified version of
> itself (i.e., the original string with all semicolons replaced by
> commas).
> 
> Is there a solution to replace semicolons with commas in the To: header
> of incoming mail?
> Is it possible to avoid using a milter for this purpose?

Why not extract the sender from the garbage, and output that instead?

/^From: garbage (sender) garbage/       REPLACE From: $1

        Wietse

Reply via email to