Omicron:
> Sender address
> "AAA a...@aaa.aaa"@AAA.AAA
> is passed by postfix to the policy daemon as:
> sender=AAA a...@aaa.aaa@AAA.AAA
> which is invalid without the quotes. I would expect to get
> sender="AAA a...@aaa.aaa"@AAA.AAA

The form is valid unqoted form.

As you probably know, one address can be represented in multiple ways.
For example,

        u...@example.com
        "user"@example.com

should be treated as equivalent. RFC 821 and successors allow
more perverse forms, but Postfix does not pay my bills.

Multiple forms of the same thing are not only bad for security,
they also complicate Postfix configuration (Postfix tables would
have to match every equivalent form of the same envelope address).

To avoid such complexity, Postfix handles envelope addresses in the
unquoted form, and produces a canonically quoted form on delivery
which may differ from the original.

> How can I get the original envelope address including the
> quotes around the local part in the policy daemon?

That would require additional code. Or you could quote localparts,
knowing that Postfix always renders them in the unquoted form.

Would you really want to write access rules for every equivalent
form of the same address?

        Wietse

Reply via email to