Maróy Ákos wrote:
> Brian,
>
>> This is very wrong.. see my previous posts.
>
> now I've set:
>
> relay_domains = $mydestination, example.com
> relay_transport = smtp:[newserver.foo.bar]
> relayhost = [newserver.foo.bar]
>
>
> and it forwards mail destined for example.com fine - but not my mail
> server does not work as an outgoing mail server - so if I send e-mail
> as an authenticated smtp client, I get a relay denied message.
>
> so how can I make it work both ways?
Do not set relayhost on the edge machine.
relayhost means where to default route every mail.

You should not need $mydestination in relay_domains unless you want
those in mydestination to go to newserver.foo.bar
Also, setup relay_recipient_maps to stop BackScatter.

You did not show 'postconf -n', so I cannot say what should go where
when talking about your local domains (aka mydestination).

The reason for all of this is to separate the Address Classes.
http://www.postfix.org/ADDRESS_CLASS_README.html

Reply via email to