Re: POP Proxy Help
From: Adaptrx (adaptr@adaptr.xs4all.nl)Date: 01/31/02
- Next message: Johan Kiviniemi: "Re: cannot restore original file after attack"
- Previous message: Adaptrx: "Re: LINUX PROS ONLY-UID Question"
- In reply to: Stacey Sharp: "POP Proxy Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Adaptrx" <adaptr@adaptr.xs4all.nl> Date: Thu, 31 Jan 2002 21:47:12 +0100
"Stacey Sharp" <stacey@emservicesinc.com> wrote in message
news:LSc68.5433$E4.375829@e3500-atl2.usenetserver.com...
> Hey Guys,
>
> I hope this question isn't too complex, I need serious help and fast.
I've
> built a Proxy Server with RHL7.2 and Squid 2.4STABLE2. The server works
> perfect and it's authenticating users. All workstations are Win 98/NT
> (Outlook & Express). But I can't get email to pass thru the proxy. I've
> found a couple programs like pop3.proxy, tcpproxy, and smtpproxy, but the
> instructions are really vague and short. I can't make them work. I
really
> need this problem solved today, but as soon as possible will be just fine.
> How can I get email proxied thru this proxy? I'm really under the gun
here.
> Help!
Well, Stacey, let' see....
First off, let me set a bit of background by explaining that you generally
DO NOT send mail thru a proxy of any kind - this has no meaning, you either
:
a. ) forward the mail from the clients to the internet, or
b.) simply connect directly to an outside mailserver from your Windows
clients, bypassing the proxyserver altogether.
You DO need to have NAT routing configured to do this, though.. which is a
different subject entirely.
since a mail (smtp or pop3) connection is a dedicated 2-way link (both
parties need to know who they're talking to)
you cannot use any kind of web or ftp proxy that usually allows semi- or
completely-anonymous connections - as is the case with Squid.
So, it boils down to this :
- do you use the proxy-server (or gateway might be a better term) to
actually send and receive e-mail itself, i.e. does it have (and use!) its
own mailserver ?
if so, you need to configure THAT - and it might or might not be a simple
matter - depending on several factors such as : do you have a real domain
you can use ?
do you have a permanent connection that can accept e-mail from outside ?
if so, setting up sendmail (shipped with RH7.2) is quite a simple matter -
use mailconf for that, and be sure to fill in both the forwarding smtp
server, i.e. your ISp's smtp-relay, as well as the machines that may send
you mail, which would generally be the same server at your ISP's side
when this works, any user on the proxyserver can send and receive mail VIA
the proxy server's mailserver - no proxying required or wanted
if you don't run your own mailserver, you have to have a way of sending
packets from the client machines thru to the internet to reach the
mailserver(s) you use
the easiest way to do this would be to use the kernel iptables packet
filtering framework - it's VERY powerful
if you're not scared of a little experimentation, you might try the
following :
iptables -t nat -P DENY
iptables -t nat -A POSTROUTING -s INTERNAL_NET -d ! INTERNAL_NET -dport
25 -o EXTERNAL_INTERFACE -j SNAT --to-source EXTERNAL_IPADDRESS
iptables -t nat -A POSTROUTING -s INTERNAL_NET -d ! INTERNAL_NET -dport
110 -o EXTERNAL_INTERFACE -j SNAT --to-source EXTERNAL_IPADDRESS
where : INTERNAL_NET is the designation (aaa.bbb.ccc.ddd/mask) of your
internal network
EXTERNAL_INTERFACE is the interface that connects to the
internet (e.g. eth1 or ppp0)
EXTERNAL_IPADDRESS is the address of the interface that connects
to the outside world
mind you, this ONLY allows smtp and pop3 connections from INSIDE to
OUTSIDE - no other connections thru the proxy will be possible for your
clients
but this is not really a problem, as the table you modify with these
commands only affects ROUTED packets, not packets that come from or go to
the proxy itself..
>
> Thanks in Advance
>
> Stacey Sharp
>
You're welcome ;-)
- Next message: Johan Kiviniemi: "Re: cannot restore original file after attack"
- Previous message: Adaptrx: "Re: LINUX PROS ONLY-UID Question"
- In reply to: Stacey Sharp: "POP Proxy Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|