OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Connection timeout when trying to send email to gmail address

From: Asif Iqbal (vadud3gmail.com)
Date: Thu Dec 18 2008 - 23:24:36 CST


On Fri, Dec 19, 2008 at 12:04 AM, Sahil Tandon <sahiltandon.net> wrote:
> Asif Iqbal wrote:
>
>> iqbalaimprovise:~$ echo this is a test | mailx -s email vadud3gmail.com
>> iqbalaimprovise:~$ tail -f /var/log/mail.info
>> Dec 18 23:01:16 improvise nullmailer[4322]: Rescanning queue.
>> Dec 18 23:02:48 improvise postfix/master[5024]: daemon started --
>> version 2.5.5, configuration /etc/postfix
>> Dec 18 23:04:26 improvise postfix/pickup[5025]: CB66F10E395: uid=1000
>> from=<iqbala>
>> Dec 18 23:04:26 improvise postfix/cleanup[5236]: CB66F10E395:
>> message-id=<20081219040426.CB66F10E395improvise.lan>
>> Dec 18 23:04:26 improvise postfix/qmgr[5027]: CB66F10E395:
>> from=<iqbalaimprovise.lan>, size=348, nrcpt=1 (queue active)
>> Dec 18 23:04:56 improvise postfix/smtp[5238]: connect to
>> gmail-smtp-in.l.google.com[74.125.47.27]:25: Connection timed out
>> Dec 18 23:05:26 improvise postfix/smtp[5238]: connect to
>> alt1.gmail-smtp-in.l.google.com[209.85.133.27]:25: Connection timed
>> out
>> Dec 18 23:05:56 improvise postfix/smtp[5238]: connect to
>> alt2.gmail-smtp-in.l.google.com[209.85.135.27]:25: Connection timed
>
> It appears your ISP blocks outgoing connections on port 25 to IPs other
> than its own MX. Can you telnet to those gmail MXs? You should see
> something like:

You are right I cannot talk to any domain's MX. My ISP is cox and I cannot
even talk to their two MXs on port 25. I guess I could do a nmap to find
what port they are using for MX. They might require some authentication.
I have no idea what my login is to my cox account.

>
> % telnet 209.85.133.27 25
> Trying 209.85.133.27...
> Connected to an-in-f27.google.com.
> Escape character is '^]'.
> 220 mx.google.com ESMTP d38si5830405and.43
>
> Also see:
> http://www.postfix.org/postconf.5.html#relayhost

Relay Host would probably be my only option. However using postfix relay with
gmail seems to be a *lot* of work

>
> --
> Sahil Tandon <sahiltandon.net>
>

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu