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


  Search this Thread
Old 05-10-2006, 10:06 AM   #1
LQ Newbie
Registered: Oct 2005
Location: Lisbon
Distribution: Fedora Core X
Posts: 5

Rep: Reputation: 0
Iptables Configuration for pop3 and smtp access ! help


guys im on a network that uses proxy.. im new on this network and im trying to set up pop3 and SMTP on my localworkstation ( i have access to "gateway" ).

here it goes..

i have the gateway linked to internet
them have eth0.x .. that's my interface ( my gateway ) .

gateway = eth0.5 =
my ip =

how can i use pop3 on my workstation ?

im trying something like this :

# Acesso POP
iptables -t nat -A POSTROUTING -p TCP -s --dport 110 -j SNAT --to
iptables -A FORWARD -p TCP -s --dport 110 -j ACCEPT

thanks in advanced
Old 05-11-2006, 05:35 PM   #2
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
If what you are trying accomplish (correct me if this is wrong) is hosting a POP3 server on your workstation to be able to access it from outside (the Internet), then the iptable rules need to on the gateway since it will see the incoming packets and forward them to your workstation. No special firewall rules would be needed for your workstation.
Old 05-12-2006, 06:29 AM   #3
LQ Newbie
Registered: Oct 2005
Location: Lisbon
Distribution: Fedora Core X
Posts: 5

Original Poster
Rep: Reputation: 0
Hi thanks for the reply..

No im trying to use a client.. like thunderbird or outlook... i wanna pass through the firewall on my gateway...
the problem is that i dont know much about iptables.. and do not have much time to get over this inssue because im doing other tasks...

Maybe ill have to just get into it later ! .
Thanks anyway !
Old 05-13-2006, 12:24 AM   #4
Registered: May 2006
Location: Los Angeles, CA USA
Distribution: RHAS3, RHAS4, RHEL4, RH6, RH7.2, FC2-7, Gentoo, DSL
Posts: 49

Rep: Reputation: 15
Let's see if I understand what you want to do. You have a Linux box on a network. Your box is going to run sendmail (or some other MTA) and permit access to your mailbox via POP3. Is this correct?

If so, you first need to have access to the proxy and have SMTP routed to your box. Additionally, you will need to visit /etc/mail/ and edit that to permit receiving mail.

Then, you must edit the file /etc/dovecot.conf and enable POP3 access. Also, you must start the dovecot daemon with "/etc/rc.d/init.d/dovecot start". This will permit you to connect to your box and retrieve email.

But, bottom line you must have your email routed to your box. To do this, you need to have the proxy route mail to your box. Don't worry about firewall rules until you have done this.

I build firewalls all the time (with iptables), your rules are incomplete. I would be happy to help you with a ruleset that will work, but first I suggest you just get email working.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SMTP/POP3 problems with squid/iptables dragonleech Linux - Security 8 09-23-2010 04:57 AM
SMTP/POP3 iptables problem dragonleech Linux - Security 4 12-12-2005 11:33 AM
Free POP3 and SMTP access UltimaGuy General 2 01-20-2004 07:48 PM
NMF (Network Multi Firewall) 8.2 and SMTP; POP3 access Cayouettem Linux - Networking 0 08-23-2003 11:35 AM
POP3/SMTP-IPTABLES Problems chris Linux - Networking 1 02-28-2003 04:55 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:00 PM.

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