Re: Q: configuring Postfix as a front for Exchange 365

2022-04-06 Thread Matus UHLAR - fantomas
On Tue, Mar 22, 2022 at 08:38:39AM +0100, Arrigo Triulzi wrote: I was hoping to be able to use a transport re-write but if I set it up it is ignored because of the virtual domain settings. Please show real configs. On 05.04.22 17:32, Arrigo Triulzi wrote: Yes, I apologise, I should have

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Arrigo Triulzi
On 5 Apr 2022, at 22:17, Viktor Dukhovni wrote: > > On Tue, Apr 05, 2022 at 08:35:55PM +0200, Arrigo Triulzi wrote: >> On 5 Apr 2022, at 18:38, Bastian Blank >> wrote: >> >> Indeed, you did not but the virtual_alias_map is being ignored. Mmh, must >> have done something stupid. > > The

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Viktor Dukhovni
On Tue, Apr 05, 2022 at 08:35:55PM +0200, Arrigo Triulzi wrote: > On 5 Apr 2022, at 18:38, Bastian Blank > wrote: > > Indeed, you did not but the virtual_alias_map is being ignored. Mmh, must > have done something stupid. The parameter name is "virtual_alias_maps". -- Viktor.

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Arrigo Triulzi
On 5 Apr 2022, at 18:38, Bastian Blank wrote: > > On Tue, Apr 05, 2022 at 06:15:49PM +0200, Arrigo Triulzi wrote: >> In retrospect the above doesn’t work - I set up some valid relay recipients >> in the map and the virtual_alias_map is never used because you cannot have >> both a relay_domain

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Viktor Dukhovni
On Tue, Mar 22, 2022 at 08:38:39AM +0100, Arrigo Triulzi wrote: > Unfortunately I have a slight complication: for a subset of valid > email addresses I need to “bleed them” out to a different domain (and > also archive all email but that is simply done with always_bcc). > > For example: > >

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Bastian Blank
On Tue, Apr 05, 2022 at 06:15:49PM +0200, Arrigo Triulzi wrote: > In retrospect the above doesn’t work - I set up some valid relay recipients > in the map and the virtual_alias_map is never used because you cannot have > both a relay_domain and a virtual_domain set. Where exactly did I show

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Arrigo Triulzi
> > Well. > > main.cf: > parent_domain_matches_subdomains = > > relay_domains: > example.com exists > > relay_rcipient_maps: > b...@example.com exists > f...@example.com exists > > transport_maps: > example.com smtp:exchange > list.example.com smtp:list > > virtual_alias_maps: >

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Arrigo Triulzi
On 22 Mar 2022, at 12:51, Matus UHLAR - fantomas wrote: > > virtual_alias_maps can do this. > >> So far my idea was to use virtual domains and re-write users but I fall > > I have done this by setting up the domain into relay_domains and configuring > transport_maps: "example.com

Re: Q: configuring Postfix as a front for Exchange 365

2022-04-05 Thread Arrigo Triulzi
> On Tue, Mar 22, 2022 at 08:38:39AM +0100, Arrigo Triulzi wrote: >> I was hoping to be able to use a transport re-write but if I set it up it is >> ignored because of the virtual domain settings. > > Please show real configs. Yes, I apologise, I should have done this. Please also excuse the

Re: Q: configuring Postfix as a front for Exchange 365

2022-03-22 Thread Matus UHLAR - fantomas
On 22.03.22 08:38, Arrigo Triulzi wrote: I am configuring multiple Postfix systems as a front-end for an Exchange 365 setup so that the MX records being published are only for the Postfix systems which then take care of speaking to Exchange (in both directions, i.e. outbound and inbound).

Re: Q: configuring Postfix as a front for Exchange 365

2022-03-22 Thread Bastian Blank
On Tue, Mar 22, 2022 at 08:38:39AM +0100, Arrigo Triulzi wrote: > I was hoping to be able to use a transport re-write but if I set it up it is > ignored because of the virtual domain settings. Please show real configs. > Does anyone have any recommendations on how to go about with this? Well.

Q: configuring Postfix as a front for Exchange 365

2022-03-22 Thread Arrigo Triulzi
Dear all, I am configuring multiple Postfix systems as a front-end for an Exchange 365 setup so that the MX records being published are only for the Postfix systems which then take care of speaking to Exchange (in both directions, i.e. outbound and inbound). Unfortunately I have a slight