It sounds like you are using mydomain.com as your internal domain name....no necessarily the wisest of choice....mydomain.local is a better practice. Anyway make an "A" record on your SBS server un DNS Management for both the www and mail host names under the zone mydomain.com and set the ip addresses there.