title: Sendmail is unable to send letters to the internet (only local mail is being sent)
body: <p>I'm using centos 5 and sendmail on intranet server. Local mail is being delivered perfectly, but when i try to deliver email to gmail, for example (or any other service outside intranet) i find following errors in my logs:</p>
  
  <pre><code>Jan 16 16:50:32 testlink sendmail[27713]: r0GCoVi5027711: to=&lt;example@gmail.com&gt;,
  ctladdr=&lt;webdev@testlink.ru.corp.domain.com&gt; (502/502), delay=00:00:01,
  xdelay=00:00:01, mailer=esmtp, pri=120332, relay=alt4.gmail-smtp-in.l.google.com.
  [173.194.68.27], dsn=4.0.0, stat=Deferred: 
  Connection refused by alt4.gmail-smtp-in.l.google.com.
  </code></pre>
  
  <p>one more important thing - server is not accessible from internet, but i can access internet from my server..</p>
  
  <p>Please advice where should i search the problem.. i understand that i should setup sendmail somehow (currently i'm using default configuration that was set by yum), but what settings (or at least direction)... Thanks in advance!</p>