Iphone4 cannot get mail while on the local wifi

I've connected a few iphones to the MS SBS 2003 mail system and the problem is with all of them. When I leave the office (get off the wifi) the mail sync's very well both on my home wifi or 3G. As soon as I'm within the wifi of the office I continue to get a message on the iphone that states "Cannot get Mail, the connection to the server failed".
I do get mail sometimes but not always and it hardly ever seems to send when I'm within the wifi.
I have three mail accounts on the phone, they all seem to receive mail randomly while in the wifi zone.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan HardistyCo-OwnerCommented:
AgentViperAuthor Commented:
I've followed the instructions and have added "stopping and restart the DNS service plus turned off wifi and turned it back on again on the phone", yet it still gives me the error. Does it need some time to refresh?

Alan HardistyCo-OwnerCommented:
What is the FQDN of your server or are you using an IP Address?  Is your FQDN something like mail.domain.com and have you created the correct DNS zone / A Records?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AgentViperAuthor Commented:
thanks for your help.
I used owa.domainname.ca instead of my actual mail.domainname.ca. just following blindly without thinking I guess.

Thanks for your help, greatly appreciated.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.