Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Possible with Postfix?
PostPosted: Tue Sep 08, 2009 1:59 am 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
I've been quite happily running Postfix for a few years, but now I'm looking to do something possibly unconventional.

At the moment, I have a machine sitting beside me that works as my primary mail server (amongst other things.) I have a Linode set up as a secondary MX.

If my primary is, for whatever reason, unreachable the Linode takes over and then sends the mail on when the primary is back in action.

I'm looking to work around a scenario like this:

* DSL connection dies
* DSL connection doesn't look like it's coming back any time soon (backhoe through the cable, telephone exchange stolen by space aliens, something like that.)
* I set up a wireless (3G) broadband connection.
* Rather than the secondary MX PUSHING mail through, I want my server to PULL it.

I know that I could make the IP address of the primary dynamic and then switch over to whatever I get on the wireless connection, but I don't want to do it that way.

I want to set up an SSH tunnel to my Linode, say "hey, give me my mail," and down it comes.

Is this possible? If so, how?


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 2:30 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Sounds like you just want the mail to be stored locally on the Linode, as though it were the primary MX.


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 2:34 am 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
Store and forward, which is what it is doing at the moment. But with the ability to pull down to my primary as opposed to pushing to the primary via its regular IP address (which we will assume to be out of action.)


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 2:43 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Actually, I don't see much of a point to a secondary MX like this. For brief outages, the sending mail servers will retry. For longer outages, I'd much rather have the senders find out that their mail didn't go through, rather than have it go to a secondary MX and be subject to a relatively untested configuration, which may not even be looked at until the primary is back up and running anyway.


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 7:27 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Assuming the primary mail server's IP address is correct from the viewpoint of the secondary mail server (e.g. the DNS has been updated and TTLs have expired), look into using the ETRN command over SMTP. That's the "standard" way for a primary mail server to request a secondary mail server dump mail. It requires some configuration under Postfix, but I can't remember what...[/code]


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 7:37 pm 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
The address from which the request is coming actually *won't* be correct as it will be coming from the dynamic address of the wireless broadband connection and I'm trying to avoid changing DNS records.

However, I'm wondering if this might be the way to go if I can, say, use a VPN.

I will now go read the Postfix ETRN README. Thanks for the suggestion.


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 10:37 pm 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
Why does this sound like a job for UUCP?


Top
   
 Post subject:
PostPosted: Tue Sep 08, 2009 10:52 pm 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
Why does *all* e-mail sound like a job for UUCP?

You, kids, get off my lawn!


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 8:12 am 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
I wasn't trolling (this time). I set up UUCP for a project where I needed to deliver mail over an unreliable WAN, where the receiving server (external) couldn't actually connect to the destination server (internal). I had the internal server calling up the external server over UUCP, it could pick up its mail, worked like a charm.


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 6:05 pm 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
Wow, that's cool! Sorry if I thought you were just knocking this newfangled SMTP stuff ;-)

This I will investigate. If this fixes my problem I will be quite delighted. Bit like a story an old farmer once told me when he got his tractor so stuck the only way he could get it out was by hitching it up to a pair of horses.


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 8:50 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
mwalling wrote:
Why does this sound like a job for UUCP?

Code:
% uustat -m
linode         09-09 20:47 Conversation complete
dastardly      09-09 20:01 Conversation complete
tinho          09-09 20:01 Conversation complete

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 8:52 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
mwalling wrote:
I wasn't trolling (this time). I set up UUCP for a project where I needed to deliver mail over an unreliable WAN, where the receiving server (external) couldn't actually connect to the destination server (internal). I had the internal server calling up the external server over UUCP, it could pick up its mail, worked like a charm.


My UUCP setup (which I use on my linode) is uucp-over-ssl-over-IP, with stunnel and s_client providing the necessary glue.

Mostly works great!

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 9:04 pm 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
Thanks. Becoming increasingly convinced that good ol' UUCP needs to be dusted off and returned to active duty.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group