Mail setup in custom installation

Maybe these post discussed previously should help you solve your issue:

Here too:

This one too:

Ant this too: