<[EMAIL PROTECTED]> wrote: 
Original Article: http://www.egroups.com/list/djb-qmail/?start=24126
> Paul Halliday writes:
> > Therefore all mail to the internet would be stamped '@ourdomain', but all 
> > company mail to companydomain stamped '@ourhost.companydomain'; this is to 
> > avoid replied to sensitive company mail being routed via the internet. 
> 
> With the experimental ofmipd program in the mess822 package you can
> easily set up a gateway that accepts messages from authorized hosts and
> rewrites @ourhost.companydomain as @ourdomain. The other qmail hosts can
> use smtproutes to forward outgoing mail to that gateway.
> 
> ---Dan

Hmmmm.  I've been trying to do this for a couple of days and, even with
a bit of help from MW have not managed to work out how to do it.

I'm experimenting at home with a single linux box, hostname "grafter". 
I've got qmail running on port 25 and ofmitpd on port 26.

My internal domain is "home.internal", my external domain is
dsch.freeserve.co.uk.  I'd like to re-write all outgoing mail to use my
external domain.

My qmail/control files are:

defaultdomain:
home.internal

locals:
localhost.home.internal
grafter.home.internal
dsch.freeserve.co.uk

me:
grafter.home.internal

plusdomain:
home.internal

rcpthosts:
localhost.home.internal
grafter.home.internal
dsch.freeserve.co.uk

rewrite
-home.internal:dsch.freeserve.co.uk

smtproutes
home.internal:
.home.internal:
dsch.freeserve.co.uk:grafter.home.internal
:grafter.home.internal:26

With this setup, the re-direction to ofmipd works ie the mail gets
forwarded and re-written but it then loops.  It would appear that ofmipd
is using the same smtproutes as qmail-smtpd and re-forwards the mail to
itself.

I'd be really grateful if you could tell me where I'm going wrong.

Thanks,

R
-- 
Two rules to success in life: 
  1. Don't tell people everything you know.
     -- Sassan Tat

Reply via email to