Don't get registration mail, but smtp server works fine

Did you check your spam folder?

When I first set up Discourse on one of my sites it went to spam because the email was coming from forum.domain.com instead of domain.com, once I fixed that the emails came through fine.