postfix-users

local and trivial-rewrite

Subject: local and trivial-rewrite
From: Michal Soltys <nozo AT ziu DOT info>
To: postfix-users AT postfix DOT org
Date: Wed, 08 Aug 2007 14:31:10 +0200
Some time ago, I discovered that local daemon calls trivial-rewrite, for the purpose of rewriting addresses found in local sendmail-style aliases (I had a bit unusual setup with changed myorigin, and all short names in aliases file were completed with wrong @domain part).

Anyway, rewrite_service_name is clearly respected by local - I added spearate rewrite daemon for local in master.cf and watched how it behaved, i.e.

local           unix    -       n       n   -   -       local
        -o rewrite_service_name=rewritel
        -v
rewritel        unix    -       -       y   -           trivial-rewrite
        -o myorigin=$myhostname
        -o syslog_name=rewloc
        -v

Originally I though, that once some address is deemed local, and it's found in aliases - then it could only be aliased to local accounts (of course, unless an alias has a domain part).

Anyway, as there's no info in overview or address_rewriting_readme about it (nor in local's man about rewrite_service_name) - so is this intended behaviour ?

<Prev in Thread] Current Thread [Next in Thread>