Edinburgh (10) 32
Cairns, Godman, Ford, Kelly
Godman, Paterson 2
Castres (14) 14
Godman's try set Edinburgh on their way to victory
Edinburgh recovered from a half-time deficit to record an impressive bonus-point win over Heineken Cup opponents Castres at Murrayfield.
Tries from Romain Terrain and Iosefa Tekori helped the visitors into a 14-10 half-time lead, with Ben Cairns crossing the line for the home side.
But Phil Godman's try and a penalty by Chris Paterson edged Edinburgh ahead.
Ross Ford and Andy Kelly added further tries for Edinburgh, who recorded their second pool win over the French side.
Both sides had already been eliminated from the competition before kick-off.
Godman atoned for an earlier miss when he kicked Edinburgh ahead with a penalty after Simon Cross had been bodychecked off the ball.
But a superb passing move by Castres ended with Terrain touching down in the corner, Romain Teulet adding the conversion.
Wing Andy Turnbull almost replied for the hosts but was denied a by a tackle near the try line.
Edinburgh, who were without several second-row regulars, continued to apply the pressure and it paid off when Cairns raced through following some excellent handling and offloading. Godman converted.
Castres withstood more Edinburgh attacks and scored their second try of the match on the breakaway.
Castres' Paul Bonnefond (left) tackles Hugo Southwell
Captain Rodrigo Ortega overcame the challenge of Nick De Luca as he powered through the middle and sent Iosefa Tekori over. Teulet converted once again.
Terrain was then sin-binned for killing the ball.
After the restart, Edinburgh continued to dominate possession and eventually broke Castres' resistance to regain the led.
Southwell found a gap in the visiting defence and sent Godman in for a superb try.
Godman was soon replaced at stand-off by Paterson, whose penalty put Edinburgh 18-10 ahead on the hour mark.
Scott Newlands' charge allowed Ford the chance to score another well-worked touchdown, which was converted by Paterson.
Paterson then set up Ford's replacement Kelly for the bonus-point effort and added a further conversion.
Edinburgh flanker Scott Newlands:
"We played some good rugby and scored some good tries, so that's pleasing.
"We know if we play good rugby, we're going to score tries. If we're confident in that, hit hard lines and look for space, we're going to create opportunities to score tries.
"Obviously, there were a few mistakes tonight when we did go through at times but if we can cut them out then I think we can be a real force in Europe for next year.
"I thought Phil Godman did really well in the opening part to the game, he's good at unlocking defences.
"And it's good to have players like Chris Paterson coming on and finding spaces late on in the game, using his pace and his side-step."
Southwell, A. Turnbull, Cairns, De Luca, Webster, Godman, Laidlaw, Jacobsen, Ford, Kerr, C. Hamilton, Gissing, Newlands, S. Cross, Hogg.
Houston for De Luca (35), Paterson for Godman (50), M. Blair for Laidlaw (50), Kelly for Ford (74), Traynor for Kerr (50), Reid for S. Cross (67). Not Used: Lawrie.
Bouquie, Milford, C. Sika, Sanchou, Bourret, Teulet, Senio, G. Lensing, Terrain, Staibano, Capo, Gaston, Tomiki, Malonga, I. Tekori.
Kefu for C. Sika (64), Bonnefond for Bourret (25), Hoeft for G. Lensing (55), Saayman for Staibano (49), Koulemine for Gaston (55), Giorgadze for Tomiki (67), C. Masoe for Malonga (49).
James Jones (WRFU)