Re: [Vserver] Vserver with Squid/Postfix

From: Baltasar Cevc <>
Date: Sat 21 Oct 2006 - 14:56:16 BST
Message-Id: <>

Hash: SHA1

On 19.10.2006, at 15:59, Alejandro Cabrera Obed wrote:

> Dear all, I've built a vserver on Debian in order to install a Squid
> proxy server to use in my network and a Postfix mail server for local
> mail only. Squid has the squid.conf configuration file with some lines
> involving "localhost" and Postfix has the configuration file
> involving the network block.
> In my vserver I've created just this dummy interfaces:
> eth0:vs1 ----
> eth0:vs2 ---- (non-ruteable)
> and in /etc/hosts I map localhost to
> My questions are:
> 1) Is the mapping localhost to a solution for squid.conf
> and lines involving localhost ???
You have to change the lines that have the IP address or IP net
I positively know that Postfix _does not_ need an lo interface: I have a
vserver without any lo mapping running with it; you'll just have to move
content filters etc. to the IP of the Vserver and use Iptables to
them from outside use. Anyway: the solution you proposed yourself is
proably even nicer: have one public and one internal IP so that if your
Iptables will not work, you won't have people connect to the reinject
interface of postfix and so on.

> 2) What is the solution for the "my networks =" network
> block set up in the from Postfix ???
You don't need the block. Just change mynetworks = <vserver ip>/24 and
you'll effectively have the same results as a non-vserver with
Vserver will automatically map connects to localhost to the IP of the
vserver then.

I'm not sure for Squid, but I think it does not make any assumptions
the existance of lo; so it'll probably either run or you will be able
to make it run with small modifications (change all the
occurences in the squid.conf to some other IP).
In case you experience trouble with you can mail me via PM or you may
want to
contact the Postfix/Squid mailing list - I'm quite sure there will be a
solution for both services.


((( Baltasar Cevc

) World wide web:
   * (a project for the local youth; German
   * (programming and admin projects)
   * (private homepage)
) Phone:
   +49 176 232 20 822
Version: GnuPG v1.2.4 (Darwin)


Vserver mailing list
Received on Sat Oct 21 14:57:26 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 21 Oct 2006 - 14:57:32 BST by hypermail 2.1.8