Hi.<br><br>  First of all check the connectivity from that server to the external domains like gmail,<a href="http://yahoo.com">yahoo.com</a> by doing telnet on port 25.if  u get connected then then ur firewall is not blocking any outgoing port 25 connection.<br>
<br>  Then you have to check one more parmeter.If your domain  on ur sendmail server is registered with the internet then only you can send a mail to any external domains.If you are not registered your ip wil get blacklisted in the spam database.<br>
<br><br> Incase if your are registered if it is an direct mx then no need to set any relay server parameter in sendmail.Incase your MX is pointed to some third party then you have to tell the relay server ip in sendmail mc <a href="http://file.it">file.it</a> wll be some thing like below<br>
 <br>dnl define(`SMART_HOST', `smtp.your.provider')dnl<br><br>Replace smtp.your.provider with <a href="http://mx2.example.com">mx2.example.com</a>,this is where your mx get pointed so that all of your outgoing mails will relayed via this server.<br>
<br>dnl define(`SMART_HOST', `<a href="http://mx2.example.com">mx2.example.com</a>')dnl<br><br>Note: check the connectivity from that centos sendmail server to <a href="http://mx2.example.com">mx2.example.com</a> first for port 25 connection.<br>
<br><br>Regards,<br>lingu<br><br><br><div class="gmail_quote">On Tue, Jul 1, 2008 at 7:05 PM, Alfred von Campe <<a href="mailto:alfred@von-campe.com">alfred@von-campe.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a stock CentOS 5 system as far as email (sendmail) is concerned that is on our corporate LAN.  I am not trying to set up a mail server; I merely want our CentOS systems to be able to send out emails.  This works as long as the recipient's domain is our local domain.  Any email send to recipients that are not in our local domain get stuck in the queue:<br>

<br>
# mailq<br>
                /var/spool/mqueue (2 requests)<br>
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------<br>
m61D6wC1029257       16 Tue Jul  1 09:06 <<a href="mailto:XXXX@XXXX.XXXX.com" target="_blank">XXXX@XXXX.XXXX.com</a>><br>
                 (Deferred: Connection timed out with <a href="http://mx2.emailsrvr.com" target="_blank">mx2.emailsrvr.com</a>.)<br>
                                         <<a href="mailto:alfred@von-campe.com" target="_blank">alfred@von-campe.com</a>><br>
<br>
It appears that our firewall is not allowing connection to outside MX hosts.  I think I need to configure sendmail to forward emails to our local smtp host, but I am not sure how to do that.<br>
<br>
Alfred<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org" target="_blank">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br>