Hello all,
I am having trouble with a virtual alias that is being run through a
Postfix (2.2.12) installation that uses MySQL for virtual domain
mappings. I get an error in my maillog that says the alias is an
unknown user after I send mail to that alias.
We'll assume virtual domain of example.com, and the alias is
"alias@example.com" and the destination is "realmail@example.com"
I have my main.cf as follows:
virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf
When I run a
#postmap -q "alias@example.com" mysql:/etc/postfix/sql/
virtual_alias_maps.cf
I get
realmail@example.com
So the mappings seem to be working correctly.
But when I
#mail
alias@example.com
and send mail on to the
alias@example.com address, this shows up in my
maillog:
Apr 29 15:26:03 example postfix/virtual[17937]: C771D11CC61B:
to=<alias@example.com>, relay=virtual, delay=1, status=bounced
(unknown user: "alias@example.com")
And then it is, obviously, lost :(
I can send mail directly to
realmail@example.com without any issues so
I know that example.com is configured correctly (or at least,
correctly enough?)
Anyone have any ideas I could try to get aliases working?
Thanks,
Wesley