Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I send email from a local machine, sendmail can't connect to the SMTP server at remote sites, e.g. Google Mail, Yahoo Mail. My local sendmail can connect to other machines in my domain just fine.

In /var/log/maillog, with sendmail logging set to 15, I see this:

Dec 17 18:14:11 foobar sendmail[32357]: oBH7EBms032355: makeconnection (aspmx.l.google.com. [74.125.53.27]) failed: Connection refused by aspmx.l.google.com.

Dec 17 18:14:11 foobar sendmail[32357]: oBH7EBms032355: makeconnection (aspmx.l.google.com. [74.125.53.27]) failed: Connection refused by aspmx.l.google.com.

Dec 17 18:14:11 foobar sendmail[32357]: oBH7EBms032355: makeconnection (alt1.aspmx.l.google.com. [74.125.65.27]) failed: Connection refused by alt1.aspmx.l.google.com.

and so on.

What bit of configuration am I missing?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try

telnet aspmx.l.google.com 25

and look for an SMTP banner. If that fails, try

telnet www.teaparty.net 25

and look for the banner. That latter is my mail server, and I know it's not blocking inbound 25 from anyone. If those both fail, your ISP is likely blocking outbound port 25 connections.

share|improve this answer
    
Right. We have a local email relay for outbound mail. I used that machine as the SMARTHUB setting in sendmail, and now I can send out email. –  user42363 Dec 22 '10 at 3:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.