How can a smoke domain be hidden from render? In the 3D-View everything looks as
 expected:



But when rendered the smoke domain covers the whole scene. I tried to place camera inside and outside of the smoke domain but this doesn't work either.





The box is caused by my fault in the smoke domain material:



Then the question should be how to reproduce the 3d-view in the rendered image.
Your problem with the highlited nodes is that the density is affecting the color, but not the density of the volume.  So all areas of the domain are emitting light (at strength 1.1).

To fix this simply plug the density into a math multiply node to change the overall strength, then plug that into the emission strength.  You could also put it through a color ramp or RGB curves node first to adjust the falloff.



This way the areas of the domain with 0 density will be emitting 0 light as they should.

Without density controlling strength:


With above node setup: