Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: Louis on October 15, 2009, 06:03:03 AM

Title: How to make outlook express send and receive mails through squid?
Post by: Louis on October 15, 2009, 06:03:03 AM
Hello.....
   
i had a problem in sending and receiving mail through Squid using outlook express..My mailserver is outside the intranet.I need to make the client machines to access that mail server through proxy. I am able to telnet into the mail server directly from the proxy server but not from behind(the clients).I dont have any firewalls..Can anyone help me.????
Title: Re: How to make outlook express send and receive mails through squid?
Post by: kaushalpatel1982 on October 21, 2009, 05:10:15 AM
Louis,

Squid is HTTP Proxy server. It is allowed to pass your HTTP traffic only. Mail traffic using port 25 and 110 which is not possible to pass through the proxy server.

You need to configure Firewall for that. Just open your proxy port, SMTP and POP3 port in Firewall from your LAN side.
Title: Re: How to make outlook express send and receive mails through squid?
Post by: Louis on October 22, 2009, 10:08:48 AM
Hi..Kaush..

If you don't mind. Can you help me out ,configuring it?

thanks...

Title: Re: How to make outlook express send and receive mails through squid?
Post by: kaushalpatel1982 on October 22, 2009, 01:14:16 PM
Just use the following steps to configure iptables as per your requirement.
======================================================
iptables -P INPUT DROP 
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i <LAN Interface> -p tcp -m tcp --dport 22 -j ACCCEPT
iptables -A INPUT -i <LAN Interface> -p tcp -m tcp --dport 3128 -j ACCCEPT
iptables -A INPUT -i <LAN Interface> -p tcp -m tcp --dport 25 -j ACCCEPT
iptables -A INPUT -i <LAN Interface> -p tcp -m tcp --dport 110 -j ACCCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -t nat -A POSTROUTING -i <LAN Interface> -o <WAN Interface> -j MASQUERADE
======================================================
Line 1 will drop all the traffic. make sure you will have physical access of the server
Line 2 will inspect the traffic statefully.
Line 3 will allow SSH, Line 4 Proxy, Line 5 SMTP , and Line 6 will allow POP3.
Line 7 will allow all local generated traffic.
Line 8 will masquerade all traffic of SMTP and POP3 to the desalinated server.

Note :
1. Before applying these rules make sure you have physical access of server
2. Make sure you have no other services like HTTP or FTP or SMB served by the server. If any service are running on this server should be allowed in IPTABLES.
3. Make sure you are not overriding your current IPTABLES rules.
4. Make sure You test all rules before saving it permanently.
Title: Re: How to make outlook express send and receive mails through squid?
Post by: Louis on November 13, 2009, 10:41:49 AM
hi..kaush

There's some complication...will dwell into it and will let you know..

Thanks..