Re: Postfix advice requested

2021-02-02 Thread Bob Proulx
david wrote: > 1) mydomain = d1.tld > 2) mydestination= localhost.$mydomain localhost $mydomain > 3) virtual_alias_domains= d2.tld > 4) virtual_alias_maps = hash:/etc/postfix/virtualusers What's the value of myorigin for you? I expect it will be the s

Re: Postfix advice requested

2021-02-02 Thread Bob Proulx
david wrote: > To accomplish this, I set values in /etc/postfix/main.cf: > > mydomain = d1.tld > mydestination = localhost.$mydomain localhost $mydomain > virtual_alias_domains = d2.tld > virtual_alias_maps = hash:/etc/postfix/virtualusers > > The file /etc/aliases contains: > root: owner_d1 >

Re: Postfix advice requested

2021-02-02 Thread david
At 08:33 PM 2/2/2021, you wrote: Quoting Viktor Dukhovni : On Tue, Feb 02, 2021 at 06:12:01PM -0800, david wrote: At 06:07 PM 2/2/2021, Viktor Dukhovni wrote: >On Tue, Feb 02, 2021 at 06:46:32PM -0700, Bob Proulx wrote: > > > > > > > a...@d1.tldd1_a > > > b...@d1.tldd1_b > > > @d1.tl

Re: Postfix advice requested

2021-02-02 Thread Viktor Dukhovni
On Wed, Feb 03, 2021 at 03:33:01PM +1100, Mike Guelfi wrote: > > This is an easy question, that I was hoping someone else would field for > > a change. > > > > 1. Rewriting via virtual(5) is recursive, with recursion stopping > >either when there's no result, or a key maps to itself. >

Re: Postfix advice requested

2021-02-02 Thread Mike Guelfi
Quoting Viktor Dukhovni : On Tue, Feb 02, 2021 at 06:12:01PM -0800, david wrote: At 06:07 PM 2/2/2021, Viktor Dukhovni wrote: >On Tue, Feb 02, 2021 at 06:46:32PM -0700, Bob Proulx wrote: > > > > > > > a...@d1.tldd1_a > > > b...@d1.tldd1_b > > > @d1.tld owner_d1 > > > @d2.tld

Re: Postfix advice requested

2021-02-02 Thread Viktor Dukhovni
On Tue, Feb 02, 2021 at 06:12:01PM -0800, david wrote: > At 06:07 PM 2/2/2021, Viktor Dukhovni wrote: > >On Tue, Feb 02, 2021 at 06:46:32PM -0700, Bob Proulx wrote: > > > > > > > > > > a...@d1.tldd1_a > > > > b...@d1.tldd1_b > > > > @d1.tld owner_d1 > > > > @d2.tld owner_d2 > > > >

Re: Postfix advice requested

2021-02-02 Thread Viktor Dukhovni
On Tue, Feb 02, 2021 at 06:46:32PM -0700, Bob Proulx wrote: > > > > a...@d1.tld d1_a > > b...@d1.tld d1_b > > @d1.tld owner_d1 > > @d2.tld owner_d2 > > I don't see anything wrong as such with the above. Seems like it > should work. And for me I have a very similar arrangement here. So

Re: Postfix advice requested

2021-02-02 Thread david
At 06:07 PM 2/2/2021, Viktor Dukhovni wrote: On Tue, Feb 02, 2021 at 06:46:32PM -0700, Bob Proulx wrote: > > > > a...@d1.tldd1_a > > b...@d1.tldd1_b > > @d1.tld owner_d1 > > @d2.tld owner_d2 > > I don't see anything wrong as such with the above. Seems like it > should work. And

Re: Postfix advice requested

2021-02-02 Thread Bob Proulx
david wrote: > To accomplish this, I set values in /etc/postfix/main.cf: > > mydomain = d1.tld > mydestination = localhost.$mydomain localhost $mydomain > virtual_alias_domains = d2.tld > virtual_alias_maps = hash:/etc/postfix/virtualusers > > The file /etc/aliases contains: > root: owner_d1

Re: Postfix advice requested

2021-02-02 Thread Viktor Dukhovni
On Tue, Feb 02, 2021 at 07:02:02PM -0500, Bryan L. Gay wrote: > Did you happen to try putting the catch-all addresses at the TOP of > the virtualusers hashmap file? Just a guess. > It's been a long time since I've manually setup Postfix... The order of entries makes no difference. -- Viktor.

Re: Postfix advice requested

2021-02-02 Thread Bryan L. Gay
Did you happen to try putting the catch-all addresses at the TOP of the virtualusers hashmap file? Just a guess. It's been a long time since I've manually setup Postfix... On Tue, Feb 2, 2021 at 6:53 PM david wrote: > > Dear Gurus > > I'm having a problem configuring Postfix on Ubuntu server 20.0

Postfix advice requested

2021-02-02 Thread david
Dear Gurus I'm having a problem configuring Postfix on Ubuntu server 20.04, to perform as follows: I want to accept mail for several domains, let's say: d1.tld, d2.tld, with 'd1.tld' being 'mydomain'. Mail for some specific destinations are supposed to be delivered locally to designated