Pointing cron MAILTO at localhost

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

This is all happening behind a router on systems I have beside me at home. The thing I'm wondering about is whether mail sent to username@localhost is going outside of my home network to get delivered. I'm retrieving it via POP3 on another system on the network. I basically just have this setup for the cron emails so they don't have to be routed through my ISPs SMTP relay and then to my gmail account.

Here's the headers from a cron job email I've retrieved via POP3, does it look like the communication is staying behind the router ?
It does to me, but the mention of rr.com has me unsure.

Code: [ Select ]
Return-path: <joebert@hostname.city.rr.com>
X-Original-To: joebert@localhost
Delivered-To: joebert@localhost
Received: by hostname.city.rr.com (Postfix, from userid 1000) id
1ABCD12345; Sat, 29 May 2010 23:00:06 -0400 (EDT)
From: "Cron Daemon" <root@hostname.city.rr.com>
To: joebert@localhost
Subject: Cron <joebert@hostname> /path/to/script
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <MAILTO=joebert@localhost>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/joebert>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=joebert>
Message-ID: <20100512345678.1ABCD12345@hostname.city.rr.com>
Date: Sat, 29 May 2010 23:00:05 -0400
  1. Return-path: <joebert@hostname.city.rr.com>
  2. X-Original-To: joebert@localhost
  3. Delivered-To: joebert@localhost
  4. Received: by hostname.city.rr.com (Postfix, from userid 1000) id
  5. 1ABCD12345; Sat, 29 May 2010 23:00:06 -0400 (EDT)
  6. From: "Cron Daemon" <root@hostname.city.rr.com>
  7. To: joebert@localhost
  8. Subject: Cron <joebert@hostname> /path/to/script
  9. Content-Type: text/plain; charset=UTF-8
  10. X-Cron-Env: <MAILTO=joebert@localhost>
  11. X-Cron-Env: <SHELL=/bin/sh>
  12. X-Cron-Env: <HOME=/home/joebert>
  13. X-Cron-Env: <PATH=/usr/bin:/bin>
  14. X-Cron-Env: <LOGNAME=joebert>
  15. Message-ID: <20100512345678.1ABCD12345@hostname.city.rr.com>
  16. Date: Sat, 29 May 2010 23:00:05 -0400
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

There is no way it can be going outside your LAN. Localhost is not routable.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

I figured that was the case with localhost, it was the mention of the hostname my ISP assigns that had me unsure.
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

DO you use DHCP from your RR to your gateway? In turn, does that device provide dhcp addresses internally?

If so, what you aee if credentials being passed back from the gateway. In much the same was as forwarded DNS resolvers, if your gateway 'belongs' to a specific lookup domain, then all your machines behind that will also become part of that domain, unless otherwise specified in the dchpd.conf.

Nothing to worry about Joe. ;)
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

The router provides IP addresses via DHCP internally, yes. I just double checked the router settings and the router is set to obtain an IP from my ISP automatically as well. (My router and the cable modem my ISP issued me are two separate units)

For awhile I just had MAILTO pointing to a gmail account. All of a sudden Google quit accepting it and the KB article they included in the failure notices told me to route it out through my ISP SMTP relay.

It turned out to be easier for me to setup POP3 on this server than it was to figure out how to route the mail through my ISP SMTP relay. lol

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 32 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.