RE: consolidate virtual and relay_recipients files

2019-03-11 Thread Samuel Torton
Thanks a lot Viktor, That's heavy, but safe ! -- Samuel Torton -Original Message- From: owner-postfix-us...@postfix.org On Behalf Of Viktor Dukhovni Sent: 08 March 2019 16:20 To: postfix-users@postfix.org Subject: Re: consolidate virtual and relay_recipients files On Wed, Mar 06

Re: consolidate virtual and relay_recipients files

2019-03-08 Thread Viktor Dukhovni
On Wed, Mar 06, 2019 at 05:34:03PM +, Samuel Torton wrote: > virtual_alias_maps = hash:/etc/postfix/virtual > relay_recipient_maps = hash:/etc/postfix/relay_recipients > transport_maps = hash:/etc/postfix/transport > ... > > > Here is my /etc/postfix/virtual: > > ... > @domain2.com

Re: consolidate virtual and relay_recipients files

2019-03-08 Thread Curtis Maurand
I would think about using the transport file for this.  It's pretty flexible.  Check the docs, but I found this: *"TABLE SEARCH ORDER* With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, patterns are tried in the order as

consolidate virtual and relay_recipients files

2019-03-06 Thread Samuel Torton
Hi, I have a postfix server configured as a incoming mail relay for my customers. One of my customers has several domain names: domain1.com (main), domain2.com, domain3.com, domain4.com. My server can receive emails on whatever domain1/2/3/4.com, but can accept emails for declared email