Frankly, I have no idea since I do not know the inner workings of phpBB. I am using a default installation of phpBB though, it that helps.
And I think phpBB uses the mail() function of the 3, if I'm not mistaken. I just saw another thread on the first page where another user is complaining about...