On Thu, 19 Nov 2009, J. Bakshi wrote: > Noel Jones wrote: > > You have not sufficiently defined for us what you want postfix to > > do. The solution will probably involve more than just setting some > > flag in main.cf, but we don't really understand the problem yet. > > > > You keep getting conflicting answers because everyone is solving a > > different problem for you. The answers you need are likely listed > > in the docs http://www.postfix.org/documentation.html and we will > > happily guide you to the correct section once we have an idea of > > what you're looking for. > > > > How does this mail enter postfix? SMTP? The sendmail(1) command? > > > > What should postfix do with mail addressed to the wrong domain? > > Reject it? Force delivery to the proper domain? Discard it? > > > > If you try something and don't get the results you expected, you > > need to show the configuration you tried, what you expected to > > happen, and postfix logging of what actually occurred. Reporting > > "it didn't work" just wastes time, both ours and yours. > > > > Before you answer, please read: > > http://www.postfix.org/DEBUG_README.html#mail > > I really don't know why you fell so; but I have come here to solve the > issue with the mastery knowledge you all have. And I really have no > intension to create any conflict, I have already discussed what I am > trying to achieve and here it is once more
You have already been directed to relevant sections of the documentation. And you have repeatedly ignored requests for more information. > I like my postfix server to send email not to all domains but a very > specific domain only; just say gmail.com so if you try to send emails > from this very server to both gmail.com and yahoo.in then the mail > will be successfully delivered to gmail account only and not to yahoo > account. > > I don't know if postfix can do so or not and I like to know it. If > postfix can do it then I am also eager to know the configuration. Postfix can do it; one way is to use transport(5) maps. Untested example: # main.cf transport_maps = cdb:/usr/local/etc/postfix/foo.map # foo.map gmail.com : * error:mail to this destination is prohibited -- Sahil Tandon <sa...@tandon.net>