[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-30 Thread Jaroslaw Rafa via Postfix-users
Dnia 30.08.2023 o godz. 22:30:02 Danil Smirnov via Postfix-users pisze: > > I tried this first - I've added "@domain2.tld @domain1.tld" to my > virtual_alias_maps > source file but I got this error: > > Aug 30 19:20:39 some postfix/smtpd[141]: NOQUEUE: reject: RCPT from > mailhost[mailhost IP]:

[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-30 Thread Wietse Venema via Postfix-users
Danil Smirnov via Postfix-users: > Hi Wietse, > > Thank you for your response! > > On Wed, Aug 30, 2023 at 8:07?PM Wietse Venema via Postfix-users < > postfix-users@postfix.org> wrote: > > > This is one of the purposes of virtual_alias_maps. > > > > I tried this first - I've added

[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-30 Thread Danil Smirnov via Postfix-users
Hi Wietse, Thank you for your response! On Wed, Aug 30, 2023 at 8:07 PM Wietse Venema via Postfix-users < postfix-users@postfix.org> wrote: > This is one of the purposes of virtual_alias_maps. > I tried this first - I've added "@domain2.tld @domain1.tld" to my virtual_alias_maps source file

[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-30 Thread Benny Pedersen via Postfix-users
Danil Smirnov via Postfix-users skrev den 2023-08-30 18:32: I've tried some approaches with no luck, this seems rather tricky. Is it possible to achieve this at all without using the second Postfix server? virtual_alias: f...@example.org f...@example.net postmap this file basicly what you

[pfx] Re: how to rewrite domain on the fly before relaying

2023-08-30 Thread Wietse Venema via Postfix-users
Danil Smirnov via Postfix-users: > Hi, > > I have a Postfix server that serves domain1.tld > using transport_maps, local_recipient_maps, and relay_domains parameters in > order to relay all incoming emails to the local LMPT listener. > > Now I want to receive emails @domain2.tld in the same

[pfx] how to rewrite domain on the fly before relaying

2023-08-30 Thread Danil Smirnov via Postfix-users
Hi, I have a Postfix server that serves domain1.tld using transport_maps, local_recipient_maps, and relay_domains parameters in order to relay all incoming emails to the local LMPT listener. Now I want to receive emails @domain2.tld in the same Postfix server and rewrite them all to domain1.tld