Michal Soltys:
[ Charset ISO-8859-2 unsupported, converting... ]
> 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).
A domain-less username becomes user@$myorigin. This is documented.
Wietse
|