LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2003, 11:12 PM   #1
arun79
Member
 
Registered: Apr 2003
Location: Bangalore
Distribution: Mandrake 9.1
Posts: 66

Rep: Reputation: 15
Question 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!!!
 
Old 06-16-2003, 11:17 PM   #2
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
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.
 
Old 06-17-2003, 07:44 PM   #3
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pop3 smtp ftp proxy ?? pettar Linux - Networking 7 10-25-2005 06:12 AM
Squid POP3 & SMTP issues mcatman Linux - Networking 5 02-28-2005 10:12 AM
pop3, smtp and ftp proxy pettar Fedora 1 02-23-2005 10:24 AM
SMTP and POP3 Proxy step Linux - Newbie 4 03-14-2003 07:19 AM
pop3 & smtp through ssh sqn Slackware 9 01-07-2003 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration