From: Chris Cosby (no email)
Date: Fri Dec 03 2004 - 11:33:22 EST
OK, I can't dig any deeper for this one. Ralf's idea works for most
of my users, but I have another little problem.
I have a parent domain (@maindom.com) that has all of the users
defined as relay_recipient_maps would like them. That works great. I
also have several other domains (@otherdom.com) that are being used as
domain level aliases using virtual_alias_maps so that you get this:
$ postconf -q @otherdom hash:file
@maindom.com
What I want to do is that validation in this order:
1. mail message arrives addressed to
2. postfix does all of the alias expansion stuff that it needs to do
3. postfix looks up (fail), (pass).
If we reach a pass, it's good. If all alias possibilities are used
up with no pass, then fail.
<ramble>
I've tried various combinations of virtual_alias_maps,
virtual_mailbox_maps, virtual_alias_domains. The only thing I can get
to work is using the virtual_alias_maps, but then it returns true for
any username in @otherdom.com, effectively negating the effects of the
relay_recipient_maps check. Ideas? My maps, btw, are in mysql. If I
need to do some creative SQL I can, I'd just like to avoid it if
there's a better way. Another idea is to use mysql to manage the
accounts and whenever an admin add/drop/creates a user in the
database, fire off a script to build hash files and replicate them
around. That's a big kludge, but it may offer me better performance
and more fine grained control of these things.
</ramble>
On Wed, 1 Dec 2004 09:25:32 +0100, Ralf Hildebrandt
<> wrote:
> * Chris Cosby <>:
>
> > What I would like to do is have the UCE/UBE servers at the edge query
> > the same MySQL database to determine if the user really exists before
> > any of the hard work is done. Which pieces of config should I be
> > looking at for this? Is it address verification or virtual maps or
> > virtual aliases or what...
>
> relay_recipient_maps = proxy:mysql:/etc/postfix/nmystical_query
> --
> Ralf Hildebrandt ()
> http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
> The more I C, the less I see.
>
-- chris -at- microcozm -dot- net Good things come to those who wait. And, I guess, to those who pillage and plunder and take the good things for themselves.
|
|
|