2009/7/24 Postfix <postfix_l...@ibcnetwork.com>:
> I have an alias setup
> testalias:    ema...@mydomain.com, ema...@mydomain.com
>
> I also use virtual mappings, so I have a line like this:
> someem...@mydomain.com testalias

That sounds about right.

> However, when I email someem...@mydomain.com, it gets bounced back as:
> unkown user "testalias"

Show log entries for when this happens, the exact details are
important (you typo'd "unknown" :P)

> The alias map is getting built with newaliases and all the other virtual
> mappings work, I just can't seem to get the aliases to work.
>
> In main.cf I have:
>
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases

Please show the output of `postconf -n`. While everything you've
described so far sounds like it should work in a "normal setup", it's
entirely likely something else is causing problems. While I don't have
an answer, one possibility is that the active values of
alias_{maps|database} aren't what you think they are, or perhaps
mydomain.com isn't properly "local".

As a note, the right-hand side of your virtual map (that *is* a
virtual_alias_map, right?) doesn't specify a domain. If memory serves,
postfix will automatically appead "@$myorigin", which may not be what
you expect. It's never caused me any problems, but it's generally
recommended to put full addresses on the right-hand side, eg.:
someem...@mydomain.com    testal...@fqdn.of.host

That RHS needs to be considered a "local" address, so it'll use your
/etc/aliases

Reply via email to