OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Canonical rewriting for whole domain
From: Alexander Hoogerhuis (alexhgtnet.com)
Date: Sun Feb 13 2000 - 09:56:06 CST


Ralf Hildebrandt <R.Hildebrandttu-bs.de> writes:

> On Wed, Feb 09, 2000 at 04:57:57PM +0100, Daniel Roesen wrote:
>
> > office.lan official-domain.de
> >
> > I think that is correct, but I want to avoid to have
> >
> > golem.office.lan official-domain.de
> > client1.office.lan official-domain.de
> > client2.office.lan official-domain.de
> > etc...
>
> Why not use:
>
> /.*\.office\.lan$)/ official-domain.de
>

I have a similar problem here. I've been RTFM'ing for some time now,
but it beats me. I have a number of internal sites which all come out
as <site>.domain.co.uk. When leaving the company and passing
through the mail gateway I would like to have all senders rewritten as
userdomain.com. I've tried adding canonical maps on the mail-gateway
as such:

/*.\.domain\.co\.uk$/ domain.com

with no luck.

from my main.cf:

$myhostname = domain.co.uk
canonical_maps = dbm:/etc/postfix/canonical
masquerade_domains = $mydomain, domain.com
relay_domains = $mydestination, $virtual_domains, domain.com

cheers,

-- 
Alexander Hoogerhuis          | #include <stddisc.h> 
Glasgow - Graham Technology   |