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: Reply-To:, From: and Return-Path: funnies
From: Alexander Hoogerhuis (alexhlapper.hillington.grahamtech.co.uk)
Date: Fri Feb 25 2000 - 08:44:52 CST


This eludes me. Here are the relevant bits form the config:

mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = site.internal.co.uk
myhostname = server.site.internal.co.uk
mynetworks = 10.77.0.0/16, 127.0.0.0/8
myorigin = $mydomain
sender_canonical_maps = dbm:/etc/postfix/sender_canonical

sender_canonical has this, for every user:

shortname Long.Name

I've tried modifying it so that the LHS to make site be equal to
$myorigin:

shortnamesite.internal.co.uk Long.Namesomedomain.com

And both cases produce the same results, Reply-To: being still the
internal address, and the other headers are fine.

Any pointer into what I'm doing wrong here and dont see myself would
be helpful.

cheers,
Alexander

wietseporcupine.org (Wietse Venema) writes:

> Alexander Hoogerhuis:
> >
> > Just did a "reply" and not a "followup" here. Let me get it right this
> > time. :)
> >
> > To followup on myself here, Ive done some checking, what I have in my
> > sender_canonical, per user, is this:
> >
> > shortname Long.Name
> > .
> > .
> > .
>
> I quote the canonical(5) man page:
>
> user address
> usersite is replaced by address when site is equal
> to $myorigin, when site is listed in $mydestina-
> tion, or when it is listed in $inet_interfaces.
>
> This form is useful for replacing login names by
> Firstname.Lastname.
>
> > and at the end:
> >
> > site.internal.co.uk somedomain.com
>
> I quote the canonical(5) man page:
>
> Normally, the file serves as input to the postmap(1) com-
> mand. The result, an indexed file in dbm or db format, is
> used for fast searching by the mail system.
>
> Thus, sequence of entries in the file does not matter.
>
> >
> > This should do the trick, no?
>
> Under the conditions as quoted from the canonical(5) man page.
>
> Wietse
>

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