OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: A question about virtual_alias

From: Sandy Drobic (postfix-usersjapantest.homelinux.com)
Date: Tue Jul 11 2006 - 07:39:42 CDT


Jeff Peng wrote:
> Hello,
>
> I config Postfix with the virtual_alias method.I create a virtual_alias in
> /etc/postfix,the style is like:
>
> wxinlctest.abc.com test04localhost
> xibdghswstest.abc.com test04localhost
>
> Here test04 is the system account (exist in /etc/passwd file).
>
> Then I use postmap to turn this file to DB.
> In /etc/postfix/main.cf,I add:
>
> virtual_alias_domains = test.abc.com
> virtual_alias_maps = hash:/etc/postfix/virtual_alias
>
> Then reload postfix.But when I send message to wxinlctest.abc.com,I got
> the
> error from maillog:
>
> Jul 11 14:23:12 rcptsvr postfix/lmtp[12688]: AEB417FC003:
> to=<test04localhost.rcptsvr.test.abc.com>, orig_to=<wxinlctest.abc.com>,
> relay=localhost[127.0.0.1], delay=25, status=bounced (host
> localhost[127.0.0.1] said: 550 <test04localhost.rcptsvr.test.abc.com>:
> Recipient address rejected: User unknown in local recipient table (in reply
> to end of DATA command))
>
> Could you tell me why this happen and how to resolve it?Thanks.

"xxxlocalhost" is not a fully qualified domain name, so Postfix remedies
that and adds the value of $myorigin to the alias. Use a FQDN in virtual,
that will get rid of your problem.

Sandy