On 07/04/16 20:19, Juerg Reimann wrote:
> Sorry if this has been asked a 1000 times (but I couldn't find a hint). I
> need to relay the majority of users of one domain to another postfix host,
> except two users. How would I accomplish this?
> 
> Like: us...@example.com and us...@example.com local, all other users relay
> to another host.
> 
> Thanks!
> Juerg
> 

In /etc/postfix/main.cf:

virtual_alias_maps = hash:/etc/postfix/virtual

In /etc/postfix/virtual:

us...@example.com       user1
us...@example.com       user2

in which the 2nd column contains the local users to which to deliver
these emails.

Once you've created /etc/postfix/virtual and whenever you subsequently
change it, execute postmap /etc/postfix/virtual .

HTH, Jan

Reply via email to