Le 17/09/2011 17:18, tmac a écrit :
> I Have RHEL6 and am trying to use postfix for the first time.
>
> My host is server1.lab.my.org
>
> The mail server is mailserver.my.org
>
> I also have an alias file being passed around via NIS. This is used
> with sendmail to re-write usernames from [email protected] or
> just user to [email protected]
>
> I would like to have this single host (server1) running postfix
> send/forward all mailto the mailserver (mailserver.my.org).
> I would also like it to re-write the user names with the NIS
> aliases file. If the user does not exist in NIS, append my.org to
> the email address.
>
> I have a setup working now, as long as I specify [email protected].
> Anything else does not work (i.e. user or [email protected])
>
looks like you want to rewrite addresses. if so,
http://www.postfix.org/ADDRESS_REWRITING_README.html
try generic...