On 3/23/2015 4:25 PM, Rafał Michalak wrote: > Hello, I have this situation > in one server I have many domains, normally postfix delivers email > direct locally but when user change email hosting, system still sends > emails to old server (don't checks mx and delivers locally). > I read something about postfix "two instances", but when I set it i > have this same error message "Recipient address rejected: User unknown > in virtual mailbox table;" (user create new account on new server but > doesn't in old server) > > What I must change in Postfix to check mx and delivers directly > without locally prioritization. > > Thanks for help >
Domains listed in virtual_mailbox_domains are delivered locally. If a domain moves, the domain must be removed from your virtual_mailbox_domains. Postfix can't do this automatically. I suppose you could write a script to do an MX lookup on each domain and send you an alert if the MX points somewhere else. -- Noel Jones