On Tue, Nov 19, 2013 at 01:22:12PM +1100, [email protected] wrote:

> I've tried adding to /etc/main.cf like:
> 
> relay_domains = dom.org.au
> transport_maps = hash:$config_directory/transport

This is correct, provided the domain is removed from any other
address class.

> and /etc/transport
> 
> dom.org.au  smtp:[emu.sbt.net.au]

Provided this is postmapped and matches the actual domain.

> that returned a warning
> Nov 19 12:06:49 postfix/trivial-rewrite[24520]: warning: do not list
> domain dom.org.au in BOTH virtual_mailbox_domains and relay_domains

As expected.

> I've removed dom.org.au from the sql, that removed the error, but, mail
> still gets delivered localy
> 
> Nov 19 12:22:46 geko postfix/lmtp[29684]: 8770E382B93: to=<[email protected]>,
> orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024,
> delay=70, delays=1.4/42/0.26/27, dsn=2.0.0, status=sent (250 2.0.0 from
> MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 44247382BA8)

Virtual alias rewriting happens first!  This recipient got rewritten
to an unrelated domain.  Your test is flawed.

When you post logs, read them.  Saves public humiliation. :-)

-- 
        Viktor.

Reply via email to