Carlos L wrote:
> Hello all,
> I'm looking for a bit
of help on a complicated scenario that I can't seem
> to get to
work.
>
> I have mail that comes into a server a server
with both a to and 'original
> to' address
>
>
What i would like to achieve is that mail going to the to addresses to
go
> through a smarthost instead of local maildir delivery
>
> Things I've tried removing the 'original to' domains
from the domains
> database.
> Failed because it still
checks against the table even though the "to"
> domain
is there the "original to" fails.
>
> I've
tried header checks but I can't quite get the false regex to work
> correctly because it evaluates every line of the header of so.
>
> Ive tried the sender_based stuff and neither worked.
>
> So the questions are:
> Any way to have postfix
accept mail for a domain from the internet but
> when
>
local mailboxes relay to those same domains have it route through a
> smarthost or mx record.
transports
someaddr...@somedomain.tld
smtp:smarthost