Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Since domain2 is in the virtual mailbox class, postfix will reject mail to recipients not listed in vmaps. The solution is either 1. to list all valid recipients in vmaps (this includes users on both the local machine and the remote domain2 MX), or 2. have a catchall entry in vmaps. The mailbox that you list is just a dummy, since transport_maps determines the final transport in the end.
This looks like a good idea. Are you saying that Postfix checks the recipient first and then selects the transport? If that is the case then this could work. How do you put a catch-all in vmaps?
I should explain the domain1 & 2 issues a bit more clearly.
Domain1 is the local domain. Domain2 is a replica of the actual domain2 which is managed by the second company. We are duplicating it here so that my client can have his own copy of all incoming and outgoing mail on his own server, which is a specified requirement. However, when he sends emails to his colleagues he wants them forwarded to the real domain2 and not have them intercepted by the replica version locally. Is that clearer?
Can you explain why the local sendmail message was routed correctly even though the recipient was not in the vmaps?
OK, I have changed the vmaps as suggested. The local test works fine (as before). I have asked my client to send another email to test if it has solved the problem.
Will update you when that has happened.