On Thu, Sep 24, 2015 at 6:59 PM, Viktor Dukhovni <
[email protected]> wrote:

> On Thu, Sep 24, 2015 at 05:15:03PM -0400, Il Neofita wrote:
>
> > When the server receive an email, the TO field is changed using the
> domain
> > from the system and not the domain configured in postfix.
> > Therefore, if the server receive an email with the field [email protected]
> is
> > changed in [email protected], which AAAAA.AA is the nis domain.
>
> Postfix does not rewrite the "To:" message header unless you've
> configured "canonical_maps", or similar.
>
>     http://www.postfix.org/ADDRESS_REWRITING_README.html#william
>     http://www.postfix.org/ADDRESS_REWRITING_README.html#canonical
>
>
I have configured canonical for the sender and receiver

recipient_canonical_maps = hash:/etc/postfix/recipient_canonical
sender_canonical_maps = hash:/etc/postfix/sender_canonical

like this
@AAAAA.AA             @aaaaaaa.aa

I did the postmap, but nothing was working, then I did
[email protected]         [email protected]

and with the postmap -q [email protected]  /etc/postfix/sender_canonical
and the result was
[email protected]
however, when I received an email or I send I still have capital domain for
the user1


You're not using canonical maps.  Postfix will append the local
> domain to locally submitted mail in which the recipient is not
> qualified with a domain.  However, you report a configuration in
> which myorigin = $mydomain is lower case.
>
>
$mydomain is the variable configured as mydomain=aaaaaa.aa


> Therefore, Postfix is not the origin of any upper case recipient
> domains you're observing in mail headers.  Over and out.
>
> --
>         Viktor.
>

Reply via email to