Bernd Nies: > Hi, > > Is it possible to rewrite an email address that contains invalid characters? > > Example: Rewrite ":u...@domain.com" to "u...@domain.com" -- stripping > of the leading ":" (colon). > > I read through the Postfix Address Rewriting README [1] but did not > find a hint.
Postfix address rewriting is based on table lookup, therefore you can use any Postfix lookup table for address rewriting. Documentation: http://www.postfix.org/pcre_table.html http://www.postfix.org/canonical.5.html Example: /etc/postfix/main.cf: canonical_maps = pcre:/etc/postfix.canonical.pcre /etc/postfix.canonical.pcre /^:(....@example\.com)$/ $1 Wietse