Yes. This works on my system also.

Is there also easy way to rewrite envelope sender field?

”from that shows in email?” sorry for such a stupid question..

Eero

On Fri 9. Aug 2024 at 12.45, Matthias Fechner <ide...@fechner.net> wrote:

> Hi,
>
> On 09.08.24 09:17, Eero Volotinen via Postfix-users wrote:
> > Reconfiguring all clients is a huge workload.
> >
> > So various senders are sending alerts mails with various from fields
> > these are all internal domains.
>
>
> I use for this a generic map:
>
> main.cf:
> smtp_generic_maps = pcre:/usr/local/etc/postfix/generic
>
> generic:
> /^(.*)@([^@]+\.)?internal\.domain$/ $1@external.domain
>
> This rewrites the domain part to match your external.domain
>
>
> Matthias
>
>
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to