home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] sending mail from home to rogers.com using postfix (or anything)

  • Subject: Re: [OCLUG-Tech] sending mail from home to rogers.com using postfix (or anything)
  • From: R RENAUD <rjrenaud [ at ] rogers [ dot ] com>
  • Date: Fri, 28 Nov 2008 14:56:38 -0800 (PST)
Mark Little writes:
| > file /etc/postfix/main.cf
| > 
| >    myhostname = cpe0050180174de-cm0019475e1ed2.cpe.net.cable.rogers.com
| >    relayhost = [smtp.broadband.rogers.com]
| > 
| 
| Take the relayhost line out and your postfix should act like a proper MTA
| and do a DNS lookup for the correct MX servers and then send via:
| 
| rogers.com.             60      IN      MX      10 mx1.rog.mail.yahoo.com.
| rogers.com.             60      IN      MX      20 mx2.rog.mail.yahoo.com.

Hi Mark,
Thanks for the quick and useful response.

SUMMARY:
- Your suggestion worked fine but now I need to fix my return address
  so rogers doesn't think I'm a spammer.


DETAILS:
I also received the results of the test you describe below although I
wasn't able to duplicate the results (see below).

I still have send this via the rogers web page to ensure it gets sent.

I was thrilled when removing the relayhost line seemed to fix the
problem immediately.  I sent a few test messages but subsequent
messages failed with "Connection timed out" errors.

They seem to think that my messages are spam, possibly because I have
set this in emacs
    (setq user-mail-address "rjrenaud [ at ] rogers [ dot ] com")
it sometimes shows up in the maillog as:
    roland set sender to rjrenaud [ at ] rogers [ dot ] com using -f

However, if I don't set it, my mail ends up in my rogers spam bucket.

Do you know how to set this in main.cf?


rjrlap1% mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
AEAB320A5AC    98614 Fri Nov 28 17:21:21  rjrenaud [ at ] rogers [ dot ] com
      (connect to mx2.rog.mail.yahoo.com[66.94.225.171]: Connection timed out)
                                         rjrenaud [ at ] rogers [ dot ] com


Nov 28 17:21:21 rjrlap1 postfix/pickup[24735]: AEAB320A5AC: uid=2054 from=<rjrenaud [ at ] rogers [ dot ] com>
Nov 28 17:21:21 rjrlap1 postfix/cleanup[24738]: AEAB320A5AC: message-id=<18736 [ dot ] 28385 [ dot ] 477632 [ dot ] 520832 [ at ] gargle [ dot ] gargle [ dot ] HOWL>
Nov 28 17:21:21 rjrlap1 postfix/qmgr[24226]: AEAB320A5AC: from=<rjrenaud [ at ] rogers [ dot ] com>, size=98614, nrcpt=1 (queue active)
Nov 28 17:21:51 rjrlap1 postfix/smtp[24723]: connect to mx1.rog.mail.yahoo.com[67.28.113.16]: Connection timed out (port 25)
Nov 28 17:22:21 rjrlap1 postfix/smtp[24723]: connect to mx1.rog.mail.yahoo.com[64.156.215.22]: Connection timed out (port 25)
Nov 28 17:22:21 rjrlap1 postfix/smtp[24723]: AEAB320A5AC: host mx2.rog.mail.yahoo.com[206.190.37.6] refused to talk to me: 421 Message from (99.246.48.234) temporarily deferred - 4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html
Nov 28 17:22:51 rjrlap1 postfix/smtp[24723]: connect to mx2.rog.mail.yahoo.com[66.94.225.171]: Connection timed out (port 25)
Nov 28 17:22:51 rjrlap1 postfix/smtp[24723]: AEAB320A5AC: to=<rjrenaud [ at ] rogers [ dot ] com>, relay=none, delay=90, delays=0.08/0/90/0, dsn=4.4.1, status=deferred (connect to mx2.rog.mail.yahoo.com[66.94.225.171]: Connection timed out)


Fri Nov 28 17:48:57 EST 2008 --- second test no return address set ---
Nov 28 17:49:08 rjrlap1 postfix/smtp[24863]: connect to mx1.rog.mail.yahoo.com[67.28.113.16]: Connection timed out (port 25)
Nov 28 17:49:10 rjrlap1 postfix/pickup[24735]: 9D16C20A5A9: uid=2054 from=<roland [ at ] cpe0050180174de-cm0019475e1ed2 [ dot ] cpe [ dot ] net [ dot ] cable [ dot ] rogers [ dot ] com.>
Nov 28 17:49:10 rjrlap1 postfix/cleanup[24937]: 9D16C20A5A9: message-id=<20081128224910 [ dot ] 9D16C20A5A9 [ at ] cpe0050180174de-cm0019475e1ed2 [ dot ] cpe [ dot ] net [ dot ] cable [ dot ] rogers [ dot ] com>
Nov 28 17:49:10 rjrlap1 postfix/qmgr[24226]: 9D16C20A5A9: from=<roland [ at ] cpe0050180174de-cm0019475e1ed2 [ dot ] cpe [ dot ] net [ dot ] cable [ dot ] rogers [ dot ] com>, size=492, nrcpt=1 (queue active)
Nov 28 17:49:38 rjrlap1 postfix/smtp[24863]: connect to mx2.rog.mail.yahoo.com[66.94.225.171]: Connection timed out (port 25)
Nov 28 17:49:39 rjrlap1 postfix/smtp[24863]: A2F0420A5A7: to=<rjrenaud [ at ] rogers [ dot ] com>, relay=mx2.rog.mail.yahoo.com[206.190.37.6]:25, delay=91, delays=0.05/0/90/0.39, dsn=2.0.0, status=sent (250 ok dirdel)
Nov 28 17:49:39 rjrlap1 postfix/qmgr[24226]: A2F0420A5A7: removed
Nov 28 17:49:40 rjrlap1 postfix/smtp[24864]: connect to mx1.rog.mail.yahoo.com[67.28.113.16]: Connection timed out (port 25)
Nov 28 17:50:10 rjrlap1 postfix/smtp[24864]: connect to mx1.rog.mail.yahoo.com[64.156.215.22]: Connection timed out (port 25)
Nov 28 17:50:40 rjrlap1 postfix/smtp[24864]: connect to mx2.rog.mail.yahoo.com[66.94.225.171]: Connection timed out (port 25)
Nov 28 17:50:41 rjrlap1 postfix/smtp[24864]: 9D16C20A5A9: to=<rjrenaud [ at ] rogers [ dot ] com>, relay=mx2.rog.mail.yahoo.com[206.190.37.6]:25, delay=91, delays=0.03/0/90/0.36, dsn=2.0.0, status=sent (250 ok dirdel)
Nov 28 17:50:41 rjrlap1 postfix/qmgr[24226]: 9D16C20A5A9: removed


| Although I am not sure if Rogers block outgoing port 25 for customers to
| everything except for their SMTP servers; some ISPs do this to avoid open
| relays on their network.
| 
| You can test it yourself by just a telnet from your box:
 
| [root@mx1:~]# telnet mx1.rog.mail.yahoo.com. 25
| Trying 64.156.215.22...
| Connected to mx1.rog.mail.yahoo.com..
| Escape character is '^]'.
| 220 mta108.rog.mail.scd.yahoo.com ESMTP YSmtp service ready
| helo test
| 250 mta108.rog.mail.scd.yahoo.com
| mail from: <testing [ at ] test [ dot ] com>
| 250 sender <testing [ at ] test [ dot ] com> ok
| rcpt to: <rjrenaud [ at ] rogers [ dot ] com>
| 250 recipient <rjrenaud [ at ] rogers [ dot ] com> ok
| data
| 354 go ahead
| Subject:  Test
| 
| Testing
| 
| .
| 250 ok dirdel
| ^]
| telnet> quit
| Connection closed.
| [root@mx1:~]#

Your test worked but mine didn't.

% telnet smtp.broadband.rogers.com 25
Trying 206.190.36.18...
Connected to smtp.broadband.rogers.com (206.190.36.18).
Escape character is '^]'.
220 smtp101.rog.mail.re2.yahoo.com ESMTP
helo rjrenaud [ at ] rogers [ dot ] com
250 smtp101.rog.mail.re2.yahoo.com
mail from: rjrenaud [ at ] rogers [ dot ] com
530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
Connection closed by foreign host.

Thanks for your help.

roland