290179Re: delivering mail to separate users
- Dec 20, 2012On Thu, Dec 20, 2012 at 12:25:03PM -0500, Simon Brereton wrote:
> >> I did postmap the virtual_alias_maps. Is there something else I should I do?So you have two tables mysql and a hash table.
> > No, but you've likely misconfigured other elements of the system.
> I think this is ok. Output is:
> mail:/etc/postfix# postconf -h virtual_alias_maps
> proxy:mysql:/etc/postfix/Mail-Alias.cf, hash:/etc/postfix/virtual_user_aliases
> > $ postmap -fq newuser@... $mapsAfter setting "maps" to the exact list tables you configured.
$ postmap -fq newuser@... \
You almost certainly have an entry for "newuser@..."
in the mysql table that hides any data in the hash table. Perhaps
you should list the hash table first, if you want it to take
precedence over mysql.
> >I'm disappointed you could not then figure it out by reading the manpage,
> > To check that the result of the expansion of the user via
> > $virtual_alias_maps.
> Here I ran into problems.
> mail:/etc/postfix# postmap -fq newuser@... $maps
> postmap: fatal: usage: postmap [-Nfinoprsvw] [-c config_dir] [-d key]
> [-q key] [map_type:]file...
> postfix/postmap: fatal: usage: postmap [-Nfinoprsvw] [-c
> config_dir] [-d key] [-q key] [map_type:]file...
or parsing the "usage:" message.
postmap -q key map [optionally more maps]
- << Previous post in topic Next post in topic >>