On Fri, Sep 04, 2009 at 08:04:06AM +0100, Steve Heaven wrote: > We have a domain where some users have local mailboxes and some are > passed on to an MS Exchange box. > In the transport map we have: > > us...@mydomain.co.uk virtual: > us...@mydomain.co.uk virtual: > us...@mydomain.co.uk virtual: > mydomain.co.uk smtp:[remote.mydomain.co.uk] > > We have mydomain.co.uk in virtual_mailbox_domains for the local users > and in relay_domains for those users relayed to the Exchange box. But > then we get > > warning: do not list domain mydomain.co.uk in BOTH > virtual_mailbox_domains and relay_domains > > in the logs. > > If we dont need the domain in both lists which one should it be in?
Go with relay_domains, rewrite virtual mailbox users into u...@virtual.invalid via virtual_alias_maps, and list virtual.invalid in virtual_mailbox_domains. List actual relay users in relay_recipient_maps, and the users aliased to virtual.invaliud virtual_alias_maps. This takes care of recipient validation. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.