LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   POP3 & SMTP Proxy (https://www.linuxquestions.org/questions/linux-networking-3/pop3-and-smtp-proxy-66075/)

arun79 06-16-2003 11:12 PM

POP3 & SMTP Proxy
 
My home network consists of one Mandrake 9.1 box and one windows 98 box. I corently have 602Pro Lan Suite as my proxy server on the windows 98 box.

Now I plan to use one of my old machines as a firewall/proxy/print server running Mandrake.

Is there a pop3/smtp proxy available on linux that I can use to connect to my ISP's pop3 and smtp servers? My whole family has accounts on this server and we are dependent on these accounts for our work.

Please Help!!!

jvannucci 06-16-2003 11:17 PM

sendmail, procmail, and fetchmail.

fetchmail will access your ISP's POP3 server and grab the mail. sendmail / procmail will route it to various places on the internal network. sendmail will also send mail to your ISP''s SMTP server.

Try the man pages, and tldp.org HOWTOs for starters.

spurious 06-17-2003 07:44 PM

Actually, you probably don't need any proxy. I had a similar set-up to yours when I first started with Linux. I had a Win98 box as my gateway with Internet Connection Sharing and AnalogX proxy.

In Linux, you don't need anything like AnalogX or 602Pro to access your POP3/SMTP accounts with your ISP. You only need fetchmail and sendmail if you are actually going to use your gateway/firewall as a mail server.

If you are merely accessing your ISP for email and internet, then you need to configure the iptables firewall on your gateway box.

Here's my meagre, simple iptables script (note: I am a newbie, so if you want to improve it, do some research into iptables on this site and through Google):

# !/bin/sh
# rudimentary iptables script for RedHat 7.3
# copy this script to /etc/rc.d/init.d and chmod +x
# eth0 is the internet facing network card
# eth1 is the home LAN facing network card

# load iptables modules
modprobe iptable_nat
modprobe ip_conntrack

# enable ip forwarding; I added this line to rc.local too
echo 1 > /proc/sys/net/ipv4/ip_forward

# flush tables
iptables -F
iptables -X

# enable masquerading to allow LAN internet access
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

# forward LAN traffic from eth1 to eth0 for e-mail;
# the following should be one line
iptables -A FORWARD -i eth1 -o eth0 -m state --state NEW,ESTABLISHED -j ACCEPT

# block out internet intrusion on eth0

#the following should be one line
iptables -A INPUT -i eth0 -m state --state NEW,INVALID -j DROP

#the following should be one line
iptables -A FORWARD -i eth0 -m state --state NEW,INVALID -j DROP

# end of iptables script


All times are GMT -5. The time now is 08:43 PM.