--- On Tue, 6/16/09, Barney Desmond <barneydesm...@gmail.com> wrote:
> From: Barney Desmond <barneydesm...@gmail.com>
> Subject: Re: Limitations of setting mydestination with virtual domains
> To: "postfix users list" <postfix-users@postfix.org>
> Date: Tuesday, June 16, 2009, 7:32 PM
> 2009/6/17 Tim Legg <kc0...@yahoo.com>:
> >
> > Jun 16 17:54:40 genex postfix/smtpd[1665]: NOQUEUE:
> reject: RCPT from
> web38701.mail.mud.yahoo.com[209.191.125.77]: 550 5.1.1
> <l...@example1.com>:
> Recipient address rejected: User unknown in virtual alias
> table; from=<kc0...@yahoo.com>
> to=<l...@example1.com>
> proto=SMTP helo=<web38701.mail.mud.yahoo.com>
>
> Unless I'm mistaken, l...@example1.com
> is indeed missing from your
> virtual alias table:
>
> > I did modify the /etc/postfix/virtual as Noel
> suggested.
> >
> > /etc/postfix/virtual
> > c...@example2.org
> l...@localhost.localdomain
> > pon...@example1.com
> pon...@localhost.localdomain
> >
> > /etc/postfix/virtual (Without Viktor's suggestion)
> > example1.com anything
> > example2.org anything
> > c...@example2.org
> l...@localhost.localdomain
> > pon...@example1.com
> pon...@localhost.localdomain
>
> As you've specified example1.com as a virtual domain
> (directly in your
> main.cf), Postfix will only accept mail for addresses in
> the
> virtual_alias_maps table. (Ignoring the possibility for
> multiple
> recursive rewrites) an address in virtual_alias_maps must
> map to a
> non-virtual address. As Noel mentioned, it's usually a
> "local"
> address. A local address in this case would be something
> in
> $mydestination.
>
> Your entries there for cnt@ and ponton@ are correct. You
> need to add
> one for l...@example1.com,
> postmap the file, then reload postfix (or
> wait a couple minutes until the changes are picked up
> automatically).
>
> As a guess, were you perhaps expecting an implicit map for
> l...@example1 -> l...@localhost..?
>