Check your DNS and resolver settings like /etc/resolv.conf if a resolver is present and working.
Check with the nslookup command if its working.
Also be sure port 25 outgoing is open and not blocked by your service provider. But looking at the above piece of log, not being able to reach...