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: Magnus Bäck (magnusdsek.lth.se)
Date: Tue Jul 11 2006 - 15:44:49 CDT


On Tuesday, July 11, 2006 at 14:39 CEST,
     Sandy Drobic <postfix-usersjapantest.homelinux.com> wrote:

> Jeff Peng wrote:
>
> > 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.

Okay, Postfix accepts the message at first but rejects it upon
resubmission. Are you setting local_recipient_maps to something
funky for the resubmission smtpd(8) listener in master.cf?

Where's the log entry of the content filter trying to resubmit the
message back into Postfix?

> "xxxlocalhost" is not a fully qualified domain name, so Postfix remedies
> that and adds the value of $myorigin to the alias.

mydomain, not myorigin.

> Use a FQDN in virtual, that will get rid of your problem.

No, that has nothing to do with his problem.

--
Magnus Bäck
magnusdsek.lth.se