LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting up email on an ip masqueraded box (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-email-on-an-ip-masqueraded-box-174104/)

bulliver 04-24-2004 02:02 PM

Setting up email on an ip masqueraded box
 
Hello all,

I managed to get myself an old K6 450 which I have set up as an ip masquerading busybox. The machine now runs my web and mail server (Exim). My workstation (the masqued box) does not directly face the internet, and my question is how do I get mail delivered from the server to my inbox on the workstation?

I really don't want to install a pop server to get the mail.

I am thinking that the best way to do this is to keep another MTA on the workstation and set up the server's MTA to relay the mail, but it also seems redundant to have two MTAs running.

Is there a way to access mail on the server from the workstation without running a second MTA or using POP?

I am not asking for explicit instructions on how to set this up, just some theory on the best way to do this....

Both the server and workstation run gentoo, and they both have exim installed currently.

OFF TOPIC:

I also just wanted to say that ip masquerade is the coolest thing...it was totally easy to set up and I recommend it if you have an old box sitting in the closet. Finally I can mess around with new kernels and distros without my website going down!

Cheers.

zaphodiv 04-24-2004 09:59 PM

How about configuring the server to forwarding incoming port25 connections to port 25 on the workstation? You can do that with an iptables rule.

bulliver 04-24-2004 10:07 PM

I don't want the workstation to be the main mail server though... it may not always be up, what I need is a way to get the mail from the server to my mailbox on the workstation on demand, so to speak.

bulliver 05-31-2004 07:16 PM

Well, I just ended up installing a pop server on the server...and used iptables to only allow packets for port 110 from the private interface. Works like a charm...you can't even tell i'm running pop from the outside.

I did this because I just couldn't get my head around the exim docs on forwarding mail to the workstation without another mta running (if indeed it is even possible).

kbcnetau 06-01-2004 05:48 AM

Have you looked at fetchmail?

<http://www.catb.org/~esr/fetchmail/>

Cheers

bulliver 06-01-2004 06:03 AM

Geez, I'm an idiot. I totally knew about fetchmail but didn't even think about it. I will install it and give it a try just 'cause ESR is so cool. Plus no pop server running :)


All times are GMT -5. The time now is 11:44 PM.