Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: dtech on July 26, 2006, 01:04:41 AM

Title: [SME7] Forward outgoing mail and browsing to remote server
Post by: dtech on July 26, 2006, 01:04:41 AM
Hi all;

I've searched around for the answer to this and have been able to do it on my FC5 machines, but I'm interested in doing this on my SME7 server so the whole network gets automatically forwarded. Some details;

I want to forward outgoing email and web browsing to a remote server that has anonymizing functions for email and web browsing. I've generated ssh keys so I can log in without being prompted for a password. I connect via ssh, like this:

ssh -2 -N -f -lmyname -L 1025:smtp.myservice.com:25 -L 80:proxy.myservice.com:3129 server.myservice.com

For outgoing email I set the smtp server as localhost:1025 . I do this to avoid a conflict with sendmail. I've created a script that runs this ssh command at boot on my FC5 machines.

Any ideas how I might move this over to my SME server so that all machines behind SME, which is running in gateway and server mode, are forced through this forward?

Thanks in advance,

-P
Title: Re: [SME7] Forward outgoing mail and browsing to remote serv
Post by: gordonr on July 26, 2006, 06:17:41 AM
Quote from: "dtech"

Any ideas how I might move this over to my SME server so that all machines behind SME, which is running in gateway and server mode, are forced through this forward?

For SMTP you just need a default /var/qmail/control/smtproutes entry - have a look at what happens when you enable SMTP AUTH to the ISP for an example.

For web, you should be able to direct squid to use an upstream HTTP proxy with appropriate  template additions.