|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: Re: More virtuals incompatabilities
From: Chuck Dale (bug
aphid.net)Date: Thu Aug 17 2000 - 10:45:52 CDT
- Next message: Chuck Dale: "Re: More virtuals incompatabilities"
- Previous message: Brad Knowles: "Re: Question regarding large distributions...(newbie)"
- In reply to: Michael Tokarev: "Re: More virtuals incompatabilities"
- Next in thread: Liviu Daia: "Re: More virtuals incompatabilities"
- Reply: Chuck Dale: "Re: More virtuals incompatabilities"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear Michael,
Thanks for all your help. The fix at least for the moment has been to
add the following to virtuals for those virtual domains that I run lists
on:
domain.com
$mydestination
I suspect that I should explicitly name all the lists in virtuals like
you said but I'd prefer not to and I don't see too many downsides to
doing it with the whole domain (this is our sendmail has been working
for two years).
Chuck
Wrote Michael Tokarev on Wed, Aug 16, 2000 at 09:21:01PM +0400:
> Chuck Dale wrote:
> >
> []
> > > It should accept mails to eu-it
$mydestination (giving it to mailman),
> > > and to info
sueu.org.au, redirecting it to billbob
yankee.com
> > > (the last is true only if you also have
> > > sueu.org.au something
> > > in virtual).
> > > If you want to have postfix accepts mail to eu-it
sueu.org.au, specify
> > > eu-it
sueu.org.au eu-it
> > > or
> > > eu-it
sueu.org.au eu-it
$mydestination
> > > in virtual.
> >
> > Aw that sucks. That means I have to add double entries for every list I
> > create, in aliases *and* virtuals.
>
> Yes, you should add 'em. Moreover, you may also want to enshure that
> none of your _aliases_ created this way visible from outside.
> And at this point, I will be very glad to see pcre/regexp support
> in aliases. Consider this:
>
> (NOTE: hypotetical example, you can't use regexp in aliases)
>
> in virtual (line split):
> /^((list1|list2|list3)(|-request|-admin|-owner))
dom\.ain$/ \
> virtual-list-$1
> (this will redirect e.g. list1-admin
dom.ain to local address virtual-list-list1-admin)
>
> in internal-aliases (this is _not_ main aliases file):
> /^virtual-list-((list1|list2|list3)(|-request|-admin|-owner))$/: \
> "|/some/path/mailman/wrapper $1"
>
> alias_maps: hash:/some/aliases, pcre:/some/internal-aliases
>
> local_recipient_maps: hash:/some/aliases, unix:passwd.byname
>
> Note that internal-aliases does not listed in local_recipient_maps,
> so that mail to virtual-list-list1
mydestination will bounce with
> `unknown user' error.
>
> > > The two lines you give in your example has not related to each other...
> > > Maybe you just cut&n&pasted the wrong line?
> >
> > No I meant those two. The point is that previously (under the rule of
> > Sendmail) mail sent to eu-it
sueu.org.au just fell through the
> > virtusertable whereas Postfix is now demanding that it gets a positive
> > match.
>
> Positive match!? Where it found this address!? :)
> You have listed info
sueu.org.au, and not eu-it
sueu.org.au. If you
> want it accept _any_ user for virtual domain, you should specify also
>
sueu.org.au
other.dom.ain
> or
>
sueu.org.au user
other.dom.ain
> or even
>
sueu.org.au
sueu.org.au
> (and have listed
sueu.org.au somewhere else, say, in transport map).
>
> >
> > Is there perhaps an option to make virtuals more optional. i.e. if user
> > does not exist in virtuals, fall through to aliases?
>
> Aliases are for _local_ addresses, that are those domains listed in
> $mydestination. With this, aliases has _no_ domain part at all.
> Virtual map can be used for _both_ local and any other addresses,
> hence it have domain part. In aliases, you can specify "|command",
> "/file" as a destination, while in virtual you can't.
>
> []
> > > No, smtpd will permit any _local_ address in this case -- that is
> > > any
$mydestination.
> > [..]
> >
> > Hmm. The interoperation of virtuals and $mydestination is rather
> > confusing.
>
> Nope, confusing is not here. Postfix just have no way (yet) to specify
> _order_ that is used to lookups. It first looks up virtual/transport
> maps (do not know what first), and after that it tries aliases for
> local ($mydestination) domains. If it will try aliases first,
> things will be different.
>
> > I still don't understand why it is so important that virtual
> > domains are not also listed in $mydestination.
> Just to avoid further confusion. :) It is not _so_ important really.
> Postfix will try to lookup all addresses those domains are in $mydestination
> in aliases, where you can't specify domain part, so you can't distinguish
> between local
mydest1 and local
mydest2 _in aliases_ (but can in virtual
> and transport).
>
>
> Regards,
> Michael.
>
> P.S. We have quick fingers that presses keys, Chuck, and
> that fingers produces many letters! ;^))
>
[ charles hamilton dale <bug
aphid.net> ]
- Next message: Chuck Dale: "Re: More virtuals incompatabilities"
- Previous message: Brad Knowles: "Re: Question regarding large distributions...(newbie)"
- In reply to: Michael Tokarev: "Re: More virtuals incompatabilities"
- Next in thread: Liviu Daia: "Re: More virtuals incompatabilities"
- Reply: Chuck Dale: "Re: More virtuals incompatabilities"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]