On Saturday, July 31, 2010 at 15:58 CEST,
     "Zhou, Yan" <[email protected]> wrote:

> The error is gone after I set   local_recipient_maps
> <http://www.postfix.org/postconf.5.html#local_recipient_maps>  =

Don't do that. Postfix must know which recipient addresses are valid.
Luckily Postfix supports a number of lookup mechanisms for determining
which recipients that are valid.

> But relay is not happening, it still goes to local delivery agent.
> Cannot find why ...
>
> Jul 31 13:52:07 mustang postfix/local[18709]: 512DC150238:
> to=<addr...@mydomain >, relay=local, delay=0.16,
> delays=0.14/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user:
> "<user>")

The transport table lookup is not not working properly. What's the
output of

   postmap -q example.com hash:/etc/postfix/transport

where example.com is your domain?

[...]

> In main.cf:
>
> relay_domains = <my domain, this is the local domain>

Yes, but you're obviously also listing the domain in mydestination
(which is why it's routed to local(8)). Pick one address class for
the domains and stick to it.

> transport_maps = hash:/etc/postfix/transport
>
> In /etc/postfix/transport
>
> <my domain>         connector

Don't know if the transport name needs to be followed by a colon,
but that's at least what transport(5) suggests. So:

example.com             connector:

[...]

-- 
Magnus Bäck
[email protected]

Reply via email to